error build gcc (from cvs)
Stian Skjelstad
stian@nixia.no
Mon Dec 3 05:26:00 GMT 2001
I have the lastets cvs of gcc, and are trying to make a crosscompiler:
host = i586-pc-linux-gnu
target = sparc64-linux-gnu
[my_wave@ludvig my_wave]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-85)
[my_wave@ludvig my_wave]$ uname -a
Linux ludvig.lilo.no 2.4.12 #5 Mon Oct 15 17:20:30 CEST 2001 i586 unknown
[root@olebrum root]# ld -v
GNU ld version 2.11.90.0.8 (with BFD 2.11.90.0.8)
[my_wave@ludvig my_wave]$ /opt/bin/sparc64-linux-gnu-ld -v
GNU ld version 2.11.2 (with BFD 2.11.2)
gcc is configured with:
./configure --enable-shared --target=sparc64-linux-gnu --prefix=/opt/
--enable-languages=c,c++,objc
When I then run make cross, the build hangs at this point:
/home/my_wave/gcc3/build/gcc/xgcc -B/home/my_wave/gcc3/build/gcc/
-B/opt//sparc64-linux-gnu/bin/ -B/opt//sparc64-linux-gnu/lib/ -isystem
/opt//sparc64-linux-gnu/include -O2 -DCROSS_COMPILE -DIN_GCC -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem
./include -fPIC -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc
-I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/config
-I../../gcc/gcc/../include -fexceptions -c ../../gcc/gcc/unwind-dw2.c -o
libgcc/./unwind-dw2.o
In file included from ../../gcc/gcc/unwind-dw2.c:25:
../../gcc/gcc/unwind-pe.h: In function `size_of_encoded_value':
../../gcc/gcc/unwind-pe.h:76: warning: implicit declaration of function
`abort'
../../gcc/gcc/unwind-dw2.c: In function `extract_cie_info':
../../gcc/gcc/unwind-dw2.c:220: warning: implicit declaration of function
`strlen'
With a ps I see that /home/my_wave/gcc3/build/gcc/cc1 is running for about 5
hours, and I attached it with gdb and made a stack traceback:
#0 ultra_find_type (type_mask=4, list=0x83a224c, start=0)
at ../../gcc/gcc/config/sparc/sparc.c:7621
#1 0x081d6816 in ultrasparc_sched_reorder (dump=0x4014e180,
sched_verbose=0,
ready=0x83a224c, n_ready=1) at ../../gcc/gcc/config/sparc/sparc.c:7928
#2 0x081d6b14 in sparc_sched_reorder (dump=0x4014e180, sched_verbose=0,
ready=0x83a224c, n_readyp=0xbfffd79c, clock=0)
at ../../gcc/gcc/config/sparc/sparc.c:8099
#3 0x0820e994 in schedule_block (b=70, rgn_n_insns=3)
at ../../gcc/gcc/haifa-sched.c:1724
#4 0x08233bbb in schedule_region (rgn=70) at
../../gcc/gcc/sched-rgn.c:2735
#5 0x08233fe7 in schedule_insns (dump_file=0x0)
at ../../gcc/gcc/sched-rgn.c:2910
#6 0x081ac645 in rest_of_compilation (decl=0x4038a9b0)
at ../../gcc/gcc/toplev.c:3125
#7 0x080630dc in c_expand_body (fndecl=0x4038a9b0, nested_p=0,
can_defer_p=1)
at ../../gcc/gcc/c-decl.c:6891
#8 0x08062dfb in finish_function (nested=0) at
../../gcc/gcc/c-decl.c:6760
#9 0x0804a020 in yyparse_1 () at c-parse.y:354
#10 0x081aae31 in compile_file () at ../../gcc/gcc/toplev.c:2127
#11 0x081af3bb in do_compile () at ../../gcc/gcc/toplev.c:5156
#12 0x081af408 in toplev_main (argc=74, argv=0xbfffdf04)
at ../../gcc/gcc/toplev.c:5186
#13 0x4003c306 in __libc_start_main (main=0x8090388 <main>, argc=74,
ubp_av=0xbfffdf04, init=0x8049054 <_init>, fini=0x8245c50 <_fini>,
rtld_fini=0x4000d2cc <_dl_fini>, stack_end=0xbfffdefc)
at ../sysdeps/generic/libc-start.c:129
after several next-step, it seems like it never is able to get out of this
block:
#0 ultrasparc_sched_reorder (dump=0x4014e180, sched_verbose=0,
ready=0x83a224c, n_ready=1) at ../../gcc/gcc/config/sparc/sparc.c:7992
#1 0x081d6b14 in sparc_sched_reorder (dump=0x4014e180, sched_verbose=0,
ready=0x83a224c, n_readyp=0xbfffd79c, clock=0)
at ../../gcc/gcc/config/sparc/sparc.c:8099
Thanks for your attention, Stian Skjelstad
stian@nixia.no
More information about the Gcc-bugs
mailing list