Skip to contentSkip to conversation

ppc64 cross compiler hangs in infinite loop while compiling kernel/posix-timers.c optimised

DISCUSSION Chris Friesen 2 participants 2 messages Aug 24, 2004

lore
Share & tools
lore
#0 lore raw

I'm using a crosstool-generated ppc64 cross compiler for ppc. Specifically, its the 3.4.0 compiler.

Building with "V=1", the full command is:

powerpc64-linux-gnu-gcc -m64 -Wp,-MD,kernel/.posix-timers.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -msoft-float -pipe -Wno-uninitialized -mminimal-toc -mtraceback=none -mtune=power4 -funit-at-a-time -O2 -Wdeclaration-after-statement -DKBUILD_BASENAME=posix_timers -DKBUILD_MODNAME=posix_timers -c -o kernel/.tmp_posix-timers.o kernel/posix-timers.c

This hangs. If I remove the "-O2" portion, it compiles fine. Obviously something is confusing it. Anyone have any ideas?

Chris

#1 lore raw
Quoted 2 lines · Chris Friesen

I'm using a crosstool-generated ppc64 cross compiler for ppc. Specifically, its the 3.4.0 compiler.

Upgrade to gcc 3.4.1, this is a bug in 3.4.1 (and unfortunately not mentioned in the relnotes for 3.4.1)