2004-10-16 15:10:42

by Erwin Schoenmakers

[permalink] [raw]
Subject: PROBLEM: while building kernel 2.6.8.1. for Alpha (Miata)


Dear Kernel Developers,

PROBLEM: while building kernel 2.6.8.1. for Alpha (Miata)

I first have configured the linux kernel using menuconfig option.
When I try to build linux kernel 2.6.8.1. on a DEC Alpha (Miata) on
Debian Linux 3.0r2 the following error occurs:

CC arch/alpha/kernel/traps.o
arch/alpha/kernel/traps.c: In function `opDEC_check':
arch/alpha/kernel/traps.c:55: parse error before `['
make[1]: *** [arch/alpha/kernel/traps.o] Error 1
make: *** [arch/alpha/kernel] Error 2

What could be wrong?

Do I need to install another version of the gnu compiler/assembler?
I have installed:
gcc version 2.95.4
as version 2.12.90.0.1 using BFD version 2.12.90.0.1

Best Regards,

Erwin Schoenmakers










2004-10-16 15:17:28

by Ivan Kokshaysky

[permalink] [raw]
Subject: Re: PROBLEM: while building kernel 2.6.8.1. for Alpha (Miata)

On Sat, Oct 16, 2004 at 05:09:22PM +0200, Erwin Schoenmakers wrote:
> Do I need to install another version of the gnu compiler/assembler?
> I have installed:
> gcc version 2.95.4
> as version 2.12.90.0.1 using BFD version 2.12.90.0.1

Yes. Your toolchain is way too old.

Ivan.

2004-10-16 15:31:44

by Adrian Bunk

[permalink] [raw]
Subject: Re: PROBLEM: while building kernel 2.6.8.1. for Alpha (Miata)

On Sat, Oct 16, 2004 at 07:17:04PM +0400, Ivan Kokshaysky wrote:
> On Sat, Oct 16, 2004 at 05:09:22PM +0200, Erwin Schoenmakers wrote:
> > Do I need to install another version of the gnu compiler/assembler?
> > I have installed:
> > gcc version 2.95.4
> > as version 2.12.90.0.1 using BFD version 2.12.90.0.1
>
> Yes. Your toolchain is way too old.

What are the required versions on Alpha?

According to Documentation/Changes, Erwin's versions were OK.

> Ivan.

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

2004-10-16 15:59:23

by Ivan Kokshaysky

[permalink] [raw]
Subject: Re: PROBLEM: while building kernel 2.6.8.1. for Alpha (Miata)

On Sat, Oct 16, 2004 at 05:30:17PM +0200, Adrian Bunk wrote:
> What are the required versions on Alpha?

IIRC, gcc >= 3.3.4, binutils >= 2.13.

> According to Documentation/Changes, Erwin's versions were OK.

Probably it needs to be updated. I doubt if these versions
work on x86_64 at all, for example.

Ivan.

2004-10-16 17:22:27

by Adrian Bunk

[permalink] [raw]
Subject: Re: PROBLEM: while building kernel 2.6.8.1. for Alpha (Miata)

On Sat, Oct 16, 2004 at 07:58:47PM +0400, Ivan Kokshaysky wrote:
> On Sat, Oct 16, 2004 at 05:30:17PM +0200, Adrian Bunk wrote:
> > What are the required versions on Alpha?
>
> IIRC, gcc >= 3.3.4, binutils >= 2.13.

The gcc dependency sounds pretty tough.

Why isn't even gcc 3.3.3 able to produce a kernel on Alpha?

> > According to Documentation/Changes, Erwin's versions were OK.
>
> Probably it needs to be updated. I doubt if these versions
> work on x86_64 at all, for example.

That's the smaller problem. Since you can't build a gcc 2.95 for amd64
noone can try using it for building the kernel...

> Ivan.

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

2004-10-16 22:07:17

by Ivan Kokshaysky

[permalink] [raw]
Subject: Re: PROBLEM: while building kernel 2.6.8.1. for Alpha (Miata)

On Sat, Oct 16, 2004 at 07:21:54PM +0200, Adrian Bunk wrote:
> The gcc dependency sounds pretty tough.

Sorry, I was thinking of some miscompilation problems unrelated to kernel.

> Why isn't even gcc 3.3.3 able to produce a kernel on Alpha?

Actually, gcc 3.1 should be sufficient.

Ivan.