internal compiler error: in convert, at lto/lto-lang.c:1292

Bug #990530 reported by Stefan Beller
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro GCC
Fix Released
Medium
Ramana Radhakrishnan
4.6
Fix Released
Medium
Ramana Radhakrishnan
4.7
Fix Released
Medium
Ramana Radhakrishnan
gcc-4.6-armel-cross (Ubuntu)
Fix Released
Undecided
Unassigned
gcc-4.7-armel-cross (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Hello,

When running the command
arm-linux-gnueabi-g++ -flto -march=armv7-a -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp main.cpp -o main.o

I get this output
In file included from main.cpp:21:0,
                 from :1:
/usr/lib/gcc/arm-linux-gnueabi/4.6/include/arm_neon.h: In function ‘main’:
/usr/lib/gcc/arm-linux-gnueabi/4.6/include/arm_neon.h:7908:77: internal compiler error: in convert, at lto/lto-lang.c:1256
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
lto-wrapper: arm-linux-gnueabi-g++ returned 1 exit status
/usr/lib/gcc/arm-linux-gnueabi/4.6/../../../../arm-linux-gnueabi/bin/ld: lto-wrapper failed
collect2: ld returned 1 exit status

Attached there is a program which leads to this bug.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: g++-4.6-arm-linux-gnueabi 4.6.3-1ubuntu5cross1.62
ProcVersionSignature: Ubuntu 3.2.0-24.37-generic 3.2.14
Uname: Linux 3.2.0-24-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
Date: Sat Apr 28 16:24:31 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
SourcePackage: gcc-4.6-armel-cross
UpgradeStatus: Upgraded to precise on 2012-02-18 (69 days ago)

Related branches

Revision history for this message
Stefan Beller (stefanbeller) wrote :
Revision history for this message
Marcin Juszkiewicz (hrw) wrote :
Changed in gcc-4.6-armel-cross (Ubuntu):
status: New → Confirmed
Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

Also affects 4.7:

08:42 hrw@puchatek:tmp$ arm-linux-gnueabi-g++-4.7 -flto -march=armv7-a -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp main.cpp -o main.o
In file included from main.cpp:23:0,
                 from :7:
/usr/lib/gcc/arm-linux-gnueabi/4.7/include/arm_neon.h: In function ‘main’:
/usr/lib/gcc/arm-linux-gnueabi/4.7/include/arm_neon.h:7908:77: internal compiler error: in convert, at lto/lto-lang.c:1292
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
lto-wrapper: arm-linux-gnueabi-g++-4.7 returned 1 exit status
/usr/lib/gcc/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/ld: lto-wrapper failed
collect2: error: ld returned 1 exit status

Works with gcc-linaro 2012.05 cross.

Marcin Juszkiewicz (hrw)
summary: - arm-linux-gnueabi-g++-4.6 -flto option tells me to report a bug
+ arm-linux-gnueabi-g++ -flto option tells me to report a bug
summary: - arm-linux-gnueabi-g++ -flto option tells me to report a bug
+ internal compiler error: in convert, at lto/lto-lang.c:1292
Revision history for this message
Stefan Beller (stefanbeller) wrote :

So the original problem was circumvented by not using the gcc neon instructions,
but writing all needed functionality completely as inline assembly using the neon instructions.

Changed in gcc-linaro:
importance: Undecided → Medium
Marcin Juszkiewicz (hrw)
Changed in gcc-4.7-armel-cross (Ubuntu):
status: New → Confirmed
tags: added: rls-q-incoming
Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

Compiles fine with 4.6 and 4.7 cross compilers in quantal.

Changed in gcc-4.6-armel-cross (Ubuntu):
status: Confirmed → Fix Released
Changed in gcc-4.7-armel-cross (Ubuntu):
status: Confirmed → Fix Released
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.