4.5-2011.08 internal compiler error

Bug #839959 reported by Rene Berber
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro GCC
Won't Fix
Undecided
Michael Collison

Bug Description

On arch armv5te, cpu arm926ej-s, the compiler builds many packages successfully, but it shows the same internal error with:

1) Binutils 2.21.1

gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.21.1/gas -I. -I../../binutils-2.21.1/gas -I../bfd -I../../binutils-2.21.1/gas/config -I../../binutils-2.21.1/gas/../include -I../../binutils-2.21.1/gas/.. -I../../binutils-2.21.1/gas/../bfd -DLOCALEDIR="\"/opt/share/locale\"" -I/opt/include -fgnu89-inline -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT obj-elf.o -MD -MP -MF .deps/obj-elf.Tpo -c -o obj-elf.o `test -f 'config/obj-elf.c' || echo '../../binutils-2.21.1/gas/'`config/obj-elf.c
../../binutils-2.21.1/gas/config/obj-elf.c: In function 'elf_sec_sym_ok_for_reloc':
../../binutils-2.21.1/gas/config/obj-elf.c:252:1: internal compiler error: in add_clobbers, at config/arm/thumb2.md:1703
Please submit a full bug report,

2) glibc 2.14 :

gcc explodename.c -c -std=gnu99 -fgnu89-inline -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes -fPIC -I../include -I/share/1000/src/objglibc/intl -I/share/1000/src/objglibc -I../ports/sysdeps/arm/elf -I../ports/sysdeps/unix/sysv/linux/arm/eabi/nptl -I../ports/sysdeps/unix/sysv/linux/arm/eabi -I../ports/sysdeps/unix/sysv/linux/arm/nptl -I../ports/sysdeps/unix/sysv/linux/arm -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../ports/sysdeps/unix/sysv/linux -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv -I../ports/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../ports/sysdeps/unix/arm -I../nptl/sysdeps/unix -I../ports/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../ports/sysdeps/arm/eabi -I../ports/sysdeps/arm/fpu -I../ports/sysdeps/arm/nptl -I../ports/sysdeps/arm -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I../ports -I.. -I../libio -I. -nostdinc -isystem /opt/lib/gcc/armv5tejl-unknown-linux-gnueabi/4.5.4/include -isystem /opt/lib/gcc/armv5tejl-unknown-linux-gnueabi/4.5.4/include-fixed -isystem /usr/src/linux/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DPIC -DSHARED -D'LOCALEDIR="/opt/share/locale"' -D'LOCALE_ALIAS_PATH="/opt/share/locale"' -o /share/1000/src/objglibc/intl/explodename.os -MD -MP -MF /share/1000/src/objglibc/intl/explodename.os.dt -MT /share/1000/src/objglibc/intl/explodename.os
explodename.c: In function '_nl_explode_name':
explodename.c:138:1: internal compiler error: in add_clobbers, at config/arm/thumb2.md:1703
Please submit a full bug report,

The first of those packages build without a problem before, with the released gcc 4.5.3 (the original GNU release).

BTW the processor is not 'thumb', its compatible with it, but its 32-bit not 16-bit; I have no idea what is doing using that thumb2.md file.

Revision history for this message
Michael Hope (michaelh1) wrote :

Hi Rene. We build EGLIBC 2.15 with each release in an ARMv7 and ARMv5 configuration so this is an interesting error.

Could you provide the following information so that we can reproduce the fault?
 * Where you obtained the compiler
 * If built from source, how it was configured
 * The verbose driver output
 * Preprocessed source of the failing file

To generate the verbose driver output, add '-v' to the GCC command line. This shows interesting information such as the individual steps taken and how the compiler was configured.

To generate the preprocessed source, add '-save-temps' to the GCC command line. This will produce a .i file that you can compress and attach to this ticket.

Changed in gcc-linaro:
status: New → Incomplete
Revision history for this message
Rene Berber (rene-berber) wrote :

No, sorry. This and installing the kernel headers messed up my system so I trashed it and had to start back from gcc 3.4.4 (still rebuilding).

The only questions I can answer are:

Where? From http://launchpadlibrarian.net/75575062/gcc-linaro-4.5-2011.08.tar.bz2 (the link is no longer at http://www.linaro.org/downloads/ but I did get it from there about 2 weeks ago, I first got 2011.07 which failed not finding ld on the second pass, then I downloaded 2011.08 and it built with no bootstrap).

Configure command: ../gcc-linaro-4.5-2011.08/configure --prefix=/opt --with-cpu=arm926ej-s --with-arch=armv5te --with-mode=arm --with-gnu-as --with-gnu-ld --with-tls=gnu2 --disable-multilib --enable-threads=posix --enable-tls --enable-__cxa_atexit --enable-languages=c,c++ --enable-stage1-languages=c --disable-nls --with-local-prefix=/opt --with-mpc=/opt --with-mpfr=/opt --with-gmp=/opt --with-ppl=/opt --with-cloog=/opt --disable-bootstrap

One final note, I was building glibc not eglibc.

Revision history for this message
Michael Collison (michael-collison) wrote :

Closing due to no test case being provided in three years

Changed in gcc-linaro:
assignee: nobody → Michael Collison (michael-collison)
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.