Skip to contentSkip to conversation

Problem compiling latest gcc (001024 snapshot)

Linux-ia64 Francis Galiegue 3 participants 3 messages Nov 15, 2000

lore
Share & tools
lore
#0 lore raw

I tried to get the latest snapshot of gcc on cygnus to compile... but it fails with this error:

/usr/src/RPM/BUILD/src/builddir/gcc/xgcc -B/usr/src/RPM/BUILD/src/builddir/gcc/ -B/usr/ia64-mandrake-linux/bin/ -I/usr/ia64-mandrake-linux/include -O2
-DIN_GCC -O2 -isystem ./include -fPIC -g1
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I../../gcc -I../../gcc/config -I../../gcc/../include -DL__nonlocal_goto -xassembler-with-cpp -c ../../gcc/config/ia64/lib1funcs.asm -o libgcc/./__nonlocal_goto.o ../../gcc/config/ia64/lib1funcs.asm: Assembler messages:
../../gcc/config/ia64/lib1funcs.asm:655: Error: Unknown opcode `mov.ret.sptk rp=in0,.L0'
make[2]: *** [libgcc/./__nonlocal_goto.o] Error 1

Machine is a BigSur, A0 stepping CPU. Glibc is 2.1.3 (and 2.1.3 patch is applied), gcc is 2.9-ia64-000216-final. Kernel is 2.4.0-test7 with ia64 patch. I also tried to compile with RCS patches present in the snap directory, up to 031, but to no avail, still the same error. READMEs in the sources don't help.

I'm stuck... Do you see what I did wrong? Would the .032 and .033 patches help?

Oh, and BTW, .033 is unreadable, it's 600 on the FTP site.

Signature · 4 lines
Francis Galiegue, [email protected]
"Programming is a race between programmers, who try and make more and more
idiot-proof software, and universe, which produces more and more remarkable
idiots. Until now, universe leads the race"  -- R. Cook
#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Francis" = Francis Galiegue <[email protected]> writes:

Francis> Machine is a BigSur, A0 stepping CPU. Glibc is 2.1.3 (and Francis> 2.1.3 patch is applied), gcc is 2.9-ia64-000216-final. Kernel Francis> is 2.4.0-test7 with ia64 patch. I also tried to compile with Francis> RCS patches present in the snap directory, up to 031, but to Francis> no avail, still the same error. READMEs in the sources don't Francis> help.

Build new gas first, install it and try again.

Jes

#2 lore raw
In reply to Francis Galiegue
Quoted 1 line

../../gcc/config/ia64/lib1funcs.asm:655: Error: Unknown opcode `mov.ret.sptk

Somehow gcc accidentally used an out-of-date assembler.

Quoted 2 lines

/usr/src/RPM/BUILD/src/builddir/gcc/xgcc -B/usr/src/RPM/BUILD/src/builddir/gcc/ -B/usr/ia64-mandrake-linux/bin/ -I/usr/ia64-mandrake-linux/include -O2

The -B options here are in the wrong order. If you have an old assembler in /usr/ia64-mandrake-linux/bin/, then gcc will accidentally use this old assembler instead of the new assembler in /usr/src/.../builddir/gcc. This can be fixed by doing a "make install-gas" as Jes suggested, or by renaming the old /usr/ia64-mandrake-linux tree to move it out of the way as Bill suggested.

We've had a lot of problems with ordering of these -B options. It has been broken and fixed several times this year. The current stable compiler I am maintaining was made from a FSF gcc snapshot when this was broken. This is only a problem when there is an ABI change though, so hopefully you only have to deal with this once.

Quoted 1 line

Oh, and BTW, .033 is unreadable, it's 600 on the FTP site.

Fixed.

Jim