This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc 3.1 failed to bootstrap on Linux/mipsel


With gcc 3.1 from cvs on Sun Mar 24 10:44:11 PST 2002, I got

./xgcc -B./ -B/usr/gcc-3.1/mipsel-pc-linux-gnu/bin/ -isystem /usr/gcc-3.1/mipsel-pc-linux-gnu/include -isystem /usr/gcc-3.1/mipsel-pc-linux-gnu/sys-include -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I/home/hjl/work/gnu/src/gcc/gcc/gcc -I/home/hjl/work/gnu/src/gcc/gcc/gcc/. -I/home/hjl/work/gnu/src/gcc/gcc/gcc/config -I/home/hjl/work/gnu/src/gcc/gcc/gcc/../include  -DL_fixunsdfdi -c /home/hjl/work/gnu/src/gcc/gcc/gcc/libgcc2.c -o libgcc/./_fixunsdfdi.o
/home/hjl/work/gnu/src/gcc/gcc/gcc/libgcc2.c: In function `__fixunsdfdi':
/home/hjl/work/gnu/src/gcc/gcc/gcc/libgcc2.c:939: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[5]: *** [libgcc/./_fixunsdfdi.o] Error 1
make[5]: Leaving directory `/export/build/gnu/gcc/build-mipsel-linux/gcc'
make[4]: *** [libgcc.a] Error 2
make[4]: Leaving directory `/export/build/gnu/gcc/build-mipsel-linux/gcc'
make[3]: *** [stage1_build] Error 2
make[3]: Leaving directory `/export/build/gnu/gcc/build-mipsel-linux/gcc'
make[2]: *** [bootstrap] Error 2
make[2]: Leaving directory `/export/build/gnu/gcc/build-mipsel-linux'
Command exited with non-zero status 2
940.69user 116.65system 18:13.11elapsed 96%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (477132major+821557minor)pagefaults 0swaps
make[1]: *** [bootstrap] Error 2
make[1]: Leaving directory `/export/build/gnu/gcc'
make: *** [all] Error 2

(gdb) r  -fpreprocessed foo.i -quiet -dumpbase foo.i -g -O2 -W -Wall
-Wwrite-strin
gs -Wstrict-prototypes -Wmissing-prototypes -version -fPIC -o foo.s
Starting program: /export/build/gnu/gcc/build-mipsel-linux/gcc/cc1
-fpreprocessed 
foo.i -quiet -dumpbase foo.i -g -O2 -W -Wall -Wwrite-strings
-Wstrict-prototypes -
Wmissing-prototypes -version -fPIC -o foo.s
GNU CPP version 3.1 20020324 (prerelease) (cpplib) (MIPSel GNU/Linux with ELF)
GNU C version 3.1 20020324 (prerelease) (mipsel-pc-linux-gnu)
        compiled by GNU C version 2.96 20000731 (Red Hat Linux 7.2 2.96-107.1).

Program received signal SIGSEGV, Segmentation fault.
0x0055f7f8 in promote_mode (type=0x0, mode=SImode, punsignedp=0x7fff6228, 
    for_call=1) at /home/hjl/work/gnu/src/gcc/gcc/gcc/explow.c:814
814       enum tree_code code = TREE_CODE (type);
(gdb) bt
#0  0x0055f7f8 in promote_mode (type=0x0, mode=SImode, punsignedp=0x7fff6228, 
    for_call=1) at /home/hjl/work/gnu/src/gcc/gcc/gcc/explow.c:814
#1  0x00803de0 in mips_function_value (valtype=0x0, func=0x0, mode=SImode)
    at /home/hjl/work/gnu/src/gcc/gcc/gcc/config/mips/mips.c:7951
#2  0x00561c00 in hard_libcall_value (mode=SImode)
    at /home/hjl/work/gnu/src/gcc/gcc/gcc/explow.c:1647
#3  0x004db284 in emit_library_call_value_1 (retval=0, orgfun=0x2acee0b0, 
    value=0x0, fn_type=LCT_CONST_MAKE_BLOCK, outmode=SImode, nargs=2, 
    p=0x7fff65e8) at /home/hjl/work/gnu/src/gcc/gcc/gcc/calls.c:4027
#4  0x004dbda8 in emit_library_call (orgfun=0x2acee0b0, 
    fn_type=LCT_CONST_MAKE_BLOCK, outmode=SImode, nargs=2)
    at /home/hjl/work/gnu/src/gcc/gcc/gcc/calls.c:4212
#5  0x006bf288 in prepare_cmp_insn (px=0x7fff6668, py=0x7fff666c, 
    pcomparison=0x7fff6688, size=0x0, pmode=0x7fff6690, punsignedp=0x7fff6694, 
    purpose=ccp_jump) at /home/hjl/work/gnu/src/gcc/gcc/gcc/optabs.c:3201
#6  0x006bfcf0 in emit_cmp_and_jump_insns (x=0x2addadf8, y=0x2aac4400, 
    comparison=LT, size=0x0, mode=DImode, unsignedp=0, label=0x2addd180)
    at /home/hjl/work/gnu/src/gcc/gcc/gcc/optabs.c:3373
#7  0x006c30c4 in expand_float (to=0x2addc2b8, from=0x2addadf8, unsignedp=1)
    at /home/hjl/work/gnu/src/gcc/gcc/gcc/optabs.c:4174
#8  0x0059bc6c in expand_expr (exp=0x2adda990, target=0x2addc2b8, 
    tmode=VOIDmode, modifier=EXPAND_NORMAL)
    at /home/hjl/work/gnu/src/gcc/gcc/gcc/expr.c:7785
#9  0x005a04a8 in expand_expr (exp=0x2adda9c0, target=0x2addad98, tmode=DFmode, 
    modifier=EXPAND_NORMAL) at /home/hjl/work/gnu/src/gcc/gcc/gcc/expr.c:8781
#10 0x00589e14 in store_expr (exp=0x2adda9c0, target=0x2addad98, want_value=0)
    at /home/hjl/work/gnu/src/gcc/gcc/gcc/expr.c:4070
#11 0x005890f0 in expand_assignment (to=0x2add9880, from=0x2adda9c0, 
    want_value=0, suggest_reg=1)
    at /home/hjl/work/gnu/src/gcc/gcc/gcc/expr.c:3871
#12 0x0059ec5c in expand_expr (exp=0x2adda9d8, target=0x0, tmode=VOIDmode, 
    modifier=EXPAND_NORMAL) at /home/hjl/work/gnu/src/gcc/gcc/gcc/expr.c:8451
#13 0x007895cc in expand_expr_stmt_value (exp=0x2adda9d8, want_value=0, 
    maybe_last=0) at /home/hjl/work/gnu/src/gcc/gcc/gcc/stmt.c:2247
#14 0x0048d370 in genrtl_expr_stmt_value (expr=0x2adda9d8, want_value=0, 
    maybe_last=0) at /home/hjl/work/gnu/src/gcc/gcc/gcc/c-semantics.c:353
#15 0x0048ebf0 in expand_stmt (t=0x2addaa08)
    at /home/hjl/work/gnu/src/gcc/gcc/gcc/c-semantics.c:786
#16 0x0048e71c in genrtl_compound_stmt (t=0x2adda390)
    at /home/hjl/work/gnu/src/gcc/gcc/gcc/c-semantics.c:699
#17 0x0048ecc8 in expand_stmt (t=0x2adda390)
    at /home/hjl/work/gnu/src/gcc/gcc/gcc/c-semantics.c:813
#18 0x0044c524 in c_expand_body (fndecl=0x2add8e00, nested_p=0, can_defer_p=1)
    at /home/hjl/work/gnu/src/gcc/gcc/gcc/c-decl.c:7085
#19 0x0044c0e8 in finish_function (nested=0)
    at /home/hjl/work/gnu/src/gcc/gcc/gcc/c-decl.c:6978
#20 0x00420428 in yyparse_1 () at c-parse.y:358
#21 0x0042fef4 in yyparse () at /home/hjl/work/gnu/src/gcc/gcc/gcc/c-lex.c:164
#22 0x007a67a0 in compile_file ()
    at /home/hjl/work/gnu/src/gcc/gcc/gcc/toplev.c:2120
#23 0x007b2018 in do_compile ()
    at /home/hjl/work/gnu/src/gcc/gcc/gcc/toplev.c:5175
#24 0x007b2160 in toplev_main (argc=17, argv=0x7fff7964)
    at /home/hjl/work/gnu/src/gcc/gcc/gcc/toplev.c:5207
#25 0x004b30e4 in main (argc=17, argv=0x7fff7964)
    at /home/hjl/work/gnu/src/gcc/gcc/gcc/main.c:35

H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]