public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/50947] New: ICE on armhf with llvm-2.x
@ 2011-11-01 20:12 konstantinos.margaritis at linaro dot org
2011-11-01 20:56 ` [Bug target/50947] " rearnsha at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: konstantinos.margaritis at linaro dot org @ 2011-11-01 20:12 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50947
Bug #: 50947
Summary: ICE on armhf with llvm-2.x
Classification: Unclassified
Product: gcc
Version: 4.6.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: konstantinos.margaritis@linaro.org
Created attachment 25678
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25678
minimal testcase produced using delta tool from
lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp in llvm-2.x
llvm-2.x fail to build from source on Debian armhf, all due to a g++ ICE:
http://buildd.debian-ports.org/status/fetch.php?pkg=llvm-2.7&arch=armhf&ver=2.7-6.2&stamp=1311446819
http://buildd.debian-ports.org/status/fetch.php?pkg=llvm-2.8&arch=armhf&ver=2.8-7&stamp=1309205992
http://buildd.debian-ports.org/status/fetch.php?pkg=llvm-2.9&arch=armhf&ver=2.9%2Bdfsg-3&stamp=1309210849
Originally the bug appeared with g++-4.6.1-10 but it still fails with
g++-4.6.2-3 (latest Debian/unstable).
...
llvm[4]: Compiling ExternalFunctions.cpp for Release build
if arm-linux-gnueabihf-g++
-I/build/buildd-llvm-2.8_2.8-7-armhf-yLsjcC/llvm-2.8-2.8/build-llvm/include
-I/build/buildd-llvm-2.8_2.8-7-armhf-yLsjcC/llvm-2.8-2.8/build-llvm/lib/ExecutionEngine/Interpreter
-I/build/buildd-llvm-2.8_2.8-7-armhf-yLsjcC/llvm-2.8-2.8/include
-I/build/buildd-llvm-2.8_2.8-7-armhf-yLsjcC/llvm-2.8-2.8/lib/ExecutionEngine/Interpreter
-DNDEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS
-g -O2 -fomit-frame-pointer -fno-exceptions -fPIC -Woverloaded-virtual
-Wcast-qual -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter
-Wwrite-strings -c -MMD -MP -MF
"/build/buildd-llvm-2.8_2.8-7-armhf-yLsjcC/llvm-2.8-2.8/build-llvm/lib/ExecutionEngine/Interpreter/Release/ExternalFunctions.d.tmp"
-MT
"/build/buildd-llvm-2.8_2.8-7-armhf-yLsjcC/llvm-2.8-2.8/build-llvm/lib/ExecutionEngine/Interpreter/Release/ExternalFunctions.o"
-MT
"/build/buildd-llvm-2.8_2.8-7-armhf-yLsjcC/llvm-2.8-2.8/build-llvm/lib/ExecutionEngine/Interpreter/Release/ExternalFunc
tions.d"
/build/buildd-llvm-2.8_2.8-7-armhf-yLsjcC/llvm-2.8-2.8/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
-o
/build/buildd-llvm-2.8_2.8-7-armhf-yLsjcC/llvm-2.8-2.8/build-llvm/lib/ExecutionEngine/Interpreter/Release/ExternalFunctions.o
; \
then /bin/mv -f
"/build/buildd-llvm-2.8_2.8-7-armhf-yLsjcC/llvm-2.8-2.8/build-llvm/lib/ExecutionEngine/Interpreter/Release/ExternalFunctions.d.tmp"
"/build/buildd-llvm-2.8_2.8-7-armhf-yLsjcC/llvm-2.8-2.8/build-llvm/lib/ExecutionEngine/Interpreter/Release/ExternalFunctions.d";
else /bin/rm
"/build/buildd-llvm-2.8_2.8-7-armhf-yLsjcC/llvm-2.8-2.8/build-llvm/lib/ExecutionEngine/Interpreter/Release/ExternalFunctions.d.tmp";
exit 1; fi
/build/buildd-llvm-2.8_2.8-7-armhf-yLsjcC/llvm-2.8-2.8/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp:
In member function 'llvm::GenericValue
llvm::Interpreter::callExternalFunction(llvm::Function*, const
std::vector<llvm::GenericValue>&)':
/build/buildd-llvm-2.8_2.8-7-armhf-yLsjcC/llvm-2.8-2.8/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp:293:1:
error: insn does not satisfy its constraints:
(insn 3133 3132 3135 306 (set (subreg:SI (reg:DI 1122) 0)
(ior:SI (ashift:SI (reg:SI 1125)
(const_int -24 [0xffffffffffffffe8]))
(subreg:SI (reg:DI 1122) 0)))
/build/buildd-llvm-2.8_2.8-7-armhf-yLsjcC/llvm-2.8-2.8/include/llvm/ADT/APInt.h:139
251 {*arith_shiftsi}
(nil))
/build/buildd-llvm-2.8_2.8-7-armhf-yLsjcC/llvm-2.8-2.8/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp:293:1:
internal compiler error: in extract_constrain_insn_cached, at
recog.c:2024
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
I used the delta package to produce a minimal testcase for the ICE
which I attach.
You can reproduce the ICE with:
g++ -O2 -fpermissive -w llvm_ExternalFunctions-min.i
The bug has also been filed on the Debian BTS:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=642127
Regards
Konstantinos
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/50947] ICE on armhf with llvm-2.x
2011-11-01 20:12 [Bug c++/50947] New: ICE on armhf with llvm-2.x konstantinos.margaritis at linaro dot org
@ 2011-11-01 20:56 ` rearnsha at gcc dot gnu.org
2011-11-01 21:18 ` konstantinos.margaritis at linaro dot org
2011-12-03 15:59 ` doko at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2011-11-01 20:56 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50947
Richard Earnshaw <rearnsha at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2011-11-01
Ever Confirmed|0 |1
--- Comment #1 from Richard Earnshaw <rearnsha at gcc dot gnu.org> 2011-11-01 20:55:39 UTC ---
arm-linux-gnueabihf isn't a configuration supported by FSF GCC; if this is
vendor distribution you need to contact your vendor. Alternatively you need to
show how to produce this on the FSF sources.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/50947] ICE on armhf with llvm-2.x
2011-11-01 20:12 [Bug c++/50947] New: ICE on armhf with llvm-2.x konstantinos.margaritis at linaro dot org
2011-11-01 20:56 ` [Bug target/50947] " rearnsha at gcc dot gnu.org
@ 2011-11-01 21:18 ` konstantinos.margaritis at linaro dot org
2011-12-03 15:59 ` doko at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: konstantinos.margaritis at linaro dot org @ 2011-11-01 21:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50947
--- Comment #2 from Konstantinos Margaritis <konstantinos.margaritis at linaro dot org> 2011-11-01 21:18:19 UTC ---
This is the actual cmd line used:
g++ -O2 -mfpu=vfpv3 -mfloat-abi=hard -march=armv7-a -mthumb -fpermissive -w -c
llvm_ExternalFunctions-min.i
The Debian armhf package is based on SVN 20111028 (r180603) from the
gcc-4_6-branch.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/50947] ICE on armhf with llvm-2.x
2011-11-01 20:12 [Bug c++/50947] New: ICE on armhf with llvm-2.x konstantinos.margaritis at linaro dot org
2011-11-01 20:56 ` [Bug target/50947] " rearnsha at gcc dot gnu.org
2011-11-01 21:18 ` konstantinos.margaritis at linaro dot org
@ 2011-12-03 15:59 ` doko at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: doko at gcc dot gnu.org @ 2011-12-03 15:59 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50947
Matthias Klose <doko at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
CC| |doko at gcc dot gnu.org
Resolution| |DUPLICATE
--- Comment #3 from Matthias Klose <doko at gcc dot gnu.org> 2011-12-03 15:58:45 UTC ---
duplicate of PR50193
*** This bug has been marked as a duplicate of bug 50193 ***
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-12-03 15:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-01 20:12 [Bug c++/50947] New: ICE on armhf with llvm-2.x konstantinos.margaritis at linaro dot org
2011-11-01 20:56 ` [Bug target/50947] " rearnsha at gcc dot gnu.org
2011-11-01 21:18 ` konstantinos.margaritis at linaro dot org
2011-12-03 15:59 ` doko at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).