FYI: glibc compiliation again broken on i686-linux
Andreas Jaeger
aj@suse.de
Thu Dec 20 10:22:00 GMT 2001
Aldy Hernandez <aldyh@redhat.com> writes:
>>>>>> "Andreas" == Andreas Jaeger <aj@suse.de> writes:
>
> > $ /opt/gcc-3.1-devel/bin/gcc -c t.c -g -O3
> > t.c: In function `init':
> > t.c:9: Internal compiler error in add_abstract_origin_attribute, at dwarf2out.c:9296
> > Please submit a full bug report,
> > with preprocessed source if appropriate.
> > See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>
> Can you post a preprocessed source?
I expected that the preprocessed sources are not worth anything since
they do not really add anything.
But no problem here's the bug again in all its glory (including the
output of -v for completeness:
gromit:/tmp:[0]$ /opt/gcc-3.1-devel/bin/gcc -c t.c -gdwarf-2 -O3 -v -save-temps
Reading specs from /opt/gcc-3.1-devel/lib/gcc-lib/i686-pc-linux-gnu/3.1/specs
Configured with: /cvs/gcc/configure --prefix=/opt/gcc-3.1-devel --enable-shared --enable-threads=posix --enable-clocale=gnu --with-gnu-as --with-gnu-ld --disable-nls --with-system-zlib
Thread model: posix
gcc version 3.1 20011219 (experimental)
/opt/gcc-3.1-devel/lib/gcc-lib/i686-pc-linux-gnu/3.1/cpp0 -lang-c -v -D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ t.c t.i
GNU CPP version 3.1 20011219 (experimental) (cpplib) (i386 Linux/ELF)
ignoring nonexistent directory "/opt/gcc-3.1-devel/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/opt/gcc-3.1-devel/include
/opt/gcc-3.1-devel/lib/gcc-lib/i686-pc-linux-gnu/3.1/include
/usr/include
End of search list.
/opt/gcc-3.1-devel/lib/gcc-lib/i686-pc-linux-gnu/3.1/cc1 -fpreprocessed t.i -quiet -dumpbase t.c -gdwarf-2 -O3 -version -o t.s
GNU CPP version 3.1 20011219 (experimental) (cpplib) (i386 Linux/ELF)
GNU C version 3.1 20011219 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 3.1 20011219 (experimental).
t.c: In function `init':
t.c:9: Internal compiler error in add_abstract_origin_attribute, at dwarf2out.c:9296
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
gromit:/tmp:[1]$ cat t.i
# 1 "t.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "t.c"
extern int vinit(int);
int
init (void)
{
extern int vinit(int);
return vinit (5);
}
Note that either of the following is a workaround:
- Remove the second "extern int vinit(int);"
- Do not generated dwarf-2 debug info
- Use -O2
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj
More information about the Gcc
mailing list