This is the mail archive of the gcc-bugs@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] |
Hi Andreas, I'd like to help you fix this - it's my code - but I can't reproduce it with that input on my Linux box. Could you trim the command line as short as possible, maybe to just the -A asserts, so that it still happens. Then send me the command line. Alternatively, if you could tell me which line in _cpp_parse_assertion it's failing on, and the contents of some variables at that point (e.g. token) it would help a *lot*. (so at least we know which -A option it's barfing on). Thanks, Neil. Andreas Jaeger wrote:- > > Compiling the current CVS version on mipsel-linux I get an ICE in cpp > during bootstrap: > > echo "int xxy_us_dummy;" >tmp-dum.c > ./xgcc -B/opt/gcc-2.96/mipsel-unknown-linux-gnu/bin/ -B./ -isystem /opt/gcc-2.96/mipsel-unknown-linux-gnu/include -S tmp-dum.c > xgcc: Internal compiler error: program cpp got fatal signal 11 > > I'm appending below some output from gcc and gdb in the hope that this > gives somebody an idea how to fix this. > > Andreas > > $ ./xgcc -B/opt/gcc-2.96/mipsel-unknown-linux-gnu/bin/ -B./ -isystem /opt/gcc-2.96/mipsel-unknown-linux-gnu/include -S tmp-dum.c -save-temps -v > Reading specs from ./specs > gcc version 2.96 20000704 (experimental) > ./cpp -lang-c -v -iprefix ./../lib/gcc-lib/mipsel-unknown-linux-gnu/2.96/ -isystem ./include -isystem /opt/gcc-2.96/mipsel-unknown-linux-gnu/bin/include -D__GNUC__=2 -D__GNUC_MINOR__=96 -D__GNUC_PATCHLEVEL__=0 -DMIPSEL -D_MIPSEL -Dunix -Dmips -D_mips -DR3000 -D_R3000 -Dlinux -D__ELF__ -D__PIC__ -D__pic__ -D__MIPSEL__ -D_MIPSEL -D__unix__ -D__mips__ -D__mips__ -D__R3000__ -D_R3000 -D__linux__ -D__ELF__ -D__PIC__ -D__pic__ -D__MIPSEL -D__unix -D__mips -D__mips -D__R3000 -D__linux -Asystem(posix) -Acpu(mips) -Amachine(mips) -D__LANGUAGE_C -D_LANGUAGE_C -DLANGUAGE_C -D__SIZE_TYPE__=unsigned int -D__PTRDIFF_TYPE__=int -D_MIPS_FPSET=32 -D_MIPS_ISA=_MIPS_ISA_MIPS3 -D_ABIN32=2 -D_MIPS_SIM=_ABIN32 -D_MIPS_SZINT=32 -D_MIPS_SZLONG=32 -D_MIPS_SZPTR=32 -U__mips -D__mips -U__mips64 -isystem /opt/gcc-2.96/mipsel-unknown-linux-gnu/include tmp-dum.c tmp-dum.i > GNU CPP version 2.96 20000704 (experimental) (cpplib) > (MIPSel GNU/ELF) > ignoring nonexistent directory "/opt/gcc-2.96/mipsel-unknown-linux-gnu/bin/include" > ignoring nonexistent directory "../lib/gcc-lib/mipsel-unknown-linux-gnu/2.96/include" > ignoring nonexistent directory "../mipsel-unknown-linux-gnu/include" > ignoring nonexistent directory "/usr/local/include" > ignoring duplicate directory "/opt/gcc-2.96/mipsel-unknown-linux-gnu/include" > #include "..." search starts here: > #include <...> search starts here: > include > /opt/gcc-2.96/mipsel-unknown-linux-gnu/include > /opt/gcc-2.96/lib/gcc-lib/mipsel-unknown-linux-gnu/2.96/include > /usr/include > End of search list. > xgcc: Internal compiler error: program cpp got fatal signal 11 > > [aj gcc]$ gdb ./cpp core > GNU gdb 4.17 > Copyright 1998 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "mipsel-redhat-linux"... > Core was generated by `./cpp -lang-c -v -iprefix ./../lib/gcc-lib/mipsel-unknown-linux-gnu/2.96/ -isys'. > Program terminated with signal 11, Segmentation fault. > find_solib: Can't read pathname for load map: Input/output error > > > warning: Hit heuristic-fence-post without finding > > warning: enclosing function for address 0x282ab138 > This warning occurs if you are debugging a function without any symbols > (for example, in a stripped executable). In that case, you may wish to > increase the size of the search with the `set heuristic-fence-post' command. > > Otherwise, you told GDB there was a function where there isn't one, or > (more likely) you have encountered a bug in GDB. > #0 0x282ab138 in ?? () > Breakpoint 1 at 0x421af0 > .gdbinit:3: Error in sourced command file: > /home/sites/home/users/aj/cvs/gcc/gcc/.gdbinit:92: Error in sourced command file: > Function "fancy_abort" not defined. > (gdb) bt > #0 0x282ab138 in ?? () > #1 0x41535c in _cpp_parse_assertion (pfile=0x10032a40, answerp=0x7ffff7e0) > at /home/sites/home/users/aj/cvs/gcc/gcc/cpplib.c:1331 > #2 0x4154b8 in do_assert (pfile=0x10032a40) at /home/sites/home/users/aj/cvs/gcc/gcc/cpplib.c:1364 > #3 0x41121c in _cpp_run_directive (pfile=0x10032a40, dir=0x10032580, buf=0x8 "マ", count=3) > at /home/sites/home/users/aj/cvs/gcc/gcc/cpplex.c:3352 > #4 0x4159f4 in cpp_assert (pfile=0x10032a40, str=0x7ffffc8b "machine(mips)") > at /home/sites/home/users/aj/cvs/gcc/gcc/cpplib.c:1487 > #5 0x408dd8 in cpp_start_read (pfile=0x10032a40, print=0x10032b50, fname=0x7ffffdcd "tmp-dum.c") > at /home/sites/home/users/aj/cvs/gcc/gcc/cppinit.c:966 > #6 0x406a04 in main (argc=62, argv=0x10032b50) at /home/sites/home/users/aj/cvs/gcc/gcc/cppmain.c:73 > > -- > Andreas Jaeger > SuSE Labs aj@suse.de > private aj@arthur.inka.de >
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |