Skip to contentSkip to conversation

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

DISCUSSION Erwin Schoenmakers 3 participants 6 messages Oct 16, 2004

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 4 lines · Erwin Schoenmakers

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.

#2 lore raw
Quoted 7 lines · Ivan Kokshaysky
Quoted 4 lines · Erwin Schoenmakers

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.

Quoted 1 line

Ivan.

cu
Adrian

Signature · 4 lines
       "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
#3 lore raw
Quoted 1 line · Adrian Bunk

What are the required versions on Alpha?

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

Quoted 1 line

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.

#4 lore raw
Quoted 4 lines · Ivan Kokshaysky
Quoted 1 line · Adrian Bunk

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?

Quoted 4 lines
Quoted 1 line

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...

Quoted 1 line

Ivan.

cu
Adrian

Signature · 4 lines
       "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
#5 lore raw
Quoted 1 line · Adrian Bunk

The gcc dependency sounds pretty tough.

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

Quoted 1 line

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

Actually, gcc 3.1 should be sufficient.

Ivan.