gcc 4.8 internal compiler error: in add_stores, at var-tracking.c:5918

Bug #1312931 reported by Khem Raj
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Linaro GCC
Confirmed
Undecided
Michael Collison

Bug Description

Attached test case caused gcc ICE when compiling with given options. Another data point is that when -mcpu=cortex-a9 is used then ICE goes away

arm-angstrom-linux-gnueabi-g++ -march=armv7-a -marm -mthumb-interwork -c -O2 -g -std=c++0x -fno-exceptions -fPIE a.cpp

qtbase-opensource-src-5.2.1/src/tools/qdoc/quoter.cpp:139:1: internal compiler error: in add_stores, at var-tracking.c:5918
 }
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Revision history for this message
Khem Raj (khem-raj) wrote :
Revision history for this message
Khem Raj (khem-raj) wrote :

btw this is the version of linaro gcc

gcc version 4.8.3 20140401 (prerelease) (Linaro GCC 4.8-2014.04)

Revision history for this message
Maxim Kuvyrkov (maxim-kuvyrkov) wrote : Re: [Bug 1312931] gcc 4.8 internal compiler error: in add_stores, at var-tracking.c:5918

Hi Khem,

Would you please attach configure line from "arm-angstrom-linux-gnueabi-g++ -v" output?

Thank you,

--
Maxim Kuvyrkov
www.linaro.org

On Apr 26, 2014, at 9:24 AM, Khem Raj <email address hidden> wrote:

> btw this is the version of linaro gcc
>
> gcc version 4.8.3 20140401 (prerelease) (Linaro GCC 4.8-2014.04)
>
> --
> You received this bug notification because you are a member of Linaro
> Toolchain Developers, which is subscribed to Linaro GCC.
> https://bugs.launchpad.net/bugs/1312931
>
> Title:
> gcc 4.8 internal compiler error: in add_stores, at var-tracking.c:5918
>
> Status in Linaro GCC:
> New
>
> Bug description:
> Attached test case caused gcc ICE when compiling with given options.
> Another data point is that when -mcpu=cortex-a9 is used then ICE goes
> away
>
> arm-angstrom-linux-gnueabi-g++ -march=armv7-a -marm -mthumb-interwork
> -c -O2 -g -std=c++0x -fno-exceptions -fPIE a.cpp
>
> qtbase-opensource-src-5.2.1/src/tools/qdoc/quoter.cpp:139:1: internal compiler error: in add_stores, at var-tracking.c:5918
> }
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <http://gcc.gnu.org/bugs.html> for instructions.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/gcc-linaro/+bug/1312931/+subscriptions

Revision history for this message
Khem Raj (khem-raj) wrote :

gcc-linaro-4.8-r2014.04/gcc-linaro-4.8-2014.04/configure --build=x86_64-linux --host=x86_64-linux --target=arm-rdk-linux-gnueabi --prefix=/home/kraj/work/build-rdk/tmp/sysroots/x86_64-linux/usr --exec_prefix=/home/kraj/work/build-rdk/tmp/sysroots/x86_64-linux/usr --bindir=/home/kraj/work/build-rdk/tmp/sysroots/x86_64-linux/usr/bin/armv7at2hf-vfp-neon-rdk-linux-gnueabi --sbindir=/home/kraj/work/build-rdk/tmp/sysroots/x86_64-linux/usr/bin/armv7at2hf-vfp-neon-rdk-linux-gnueabi --libexecdir=/home/kraj/work/build-rdk/tmp/sysroots/x86_64-linux/usr/libexec/armv7at2hf-vfp-neon-rdk-linux-gnueabi --datadir=/home/kraj/work/build-rdk/tmp/sysroots/x86_64-linux/usr/share --sysconfdir=/home/kraj/work/build-rdk/tmp/sysroots/x86_64-linux/etc --sharedstatedir=/home/kraj/work/build-rdk/tmp/sysroots/x86_64-linux/com --localstatedir=/home/kraj/work/entropic/build-rdk/tmp/sysroots/x86_64-linux/var --libdir=/home/kraj/work/build-rdk/tmp/sysroots/x86_64-linux/usr/lib/armv7at2hf-vfp-neon-rdk-linux-gnueabi --includedir=/home/kraj/work/build-rdk/tmp/sysroots/x86_64-linux/usr/include --oldincludedir=/home/kraj/work/build-rdk/tmp/sysroots/x86_64-linux/usr/include --infodir=/home/kraj/work/entropic/build-rdk/tmp/sysroots/x86_64-linux/usr/share/info --mandir=/home/kraj/work/build-rdk/tmp/sysroots/x86_64-linux/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/home/kraj/work/build-rdk/tmp/sysroots/x86_64-linux --enable-clocale=generic --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix --disable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=arm-rdk-linux-gnueabi- --without-local-prefix --enable-target-optspace --enable-lto --enable-libssp --disable-bootstrap --disable-libmudflap --with-system-zlib --with-linker-hash-style=gnu --enable-linker-build-id --with-ppl=no --with-cloog=no --enable-checking=release --enable-cheaders=c_global --with-float=hard --with-gxx-include-dir=/home/kraj/work/build-rdk/tmp/sysroots/rdk/usr/include/c++ --with-sysroot=/home/kraj/work/build-rdk/tmp/sysroots/rdk --with-build-sysroot=/home/kraj/work/build-rdk/tmp/sysroots/rdk --enable-poison-system-directories --disable-libunwind-exceptions --with-mpfr=/home/kraj/work/build-rdk/tmp/sysroots/x86_64-linux/usr --with-system-zlib --disable-nls

Revision history for this message
Gregory Fong (gvfong) wrote :

This seems to be a recent regression; I don't hit the ICE with linaro gcc 4.8-2014.01

Changed in gcc-linaro:
assignee: nobody → Michael Collison (michael-collison)
Revision history for this message
Michael Collison (michael-collison) wrote :

I am unable to confirm this bug with linaro gcc 4.8.3 20140401 prerelease.

Changed in gcc-linaro:
status: New → Triaged
Revision history for this message
Michael Collison (michael-collison) wrote :

Cannot reproduce.

Changed in gcc-linaro:
status: Triaged → Invalid
Revision history for this message
cgorup (crt-gorup) wrote :

I have also hit the same problem during compilation of Angstrom image + QT5 for Apalis iMX6 module. Not sure why exactly the compiler is crashing, but it seems that this patch solves the problem.

http://pkgs.fedoraproject.org/cgit/mingw-qt5-qtbase.git/tree/qt5-workaround-gcc48-arm-build-failure.patch?h=f20

Revision history for this message
Maxim Kuvyrkov (maxim-kuvyrkov) wrote :

This problem is still reproducible on linaro-4.8-branch as of yesterday.

Changed in gcc-linaro:
status: Invalid → Confirmed
Revision history for this message
Viktor (vchong) wrote :

I'm unable to reproduce the problem with:

gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux/bin/arm-linux-gnueabihf-g++ -march=armv7-a -marm -mthumb-interwork -c -O2 -g -std=c++0x -fno-exceptions -fPIE a.cpp

and

gcc-linaro-arm-linux-gnueabihf-4.9-2014.07_linux/bin/arm-linux-gnueabihf-g++ -march=armv7-a -marm -mthumb-interwork -c -O2 -g -std=c++0x -fno-exceptions -fPIE a.cpp

Doing something wrong?

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

I am now able to reproduce with the latest linaro 4.8. I have a patch which I am now testing.

Revision history for this message
Christophe Lyon (christophe-lyon) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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