llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[2.6] llvm-gcc fails to compile

Open llvmbot opened this issue 17 years ago • 21 comments

Bugzilla Link 4972
Resolution FIXED
Resolved on Sep 16, 2009 16:22
Version 2.6
OS Linux
Blocks llvm/llvm-project#5258
Attachments .bc file that is causing the error
Reporter LLVM Bugzilla Contributor
CC @asl,@echristo,@tlattner

Extended Description

While trying to compile llvm-gcc (branches/release_26) against the LLVM 2.6 branch, I encountered the following error:

[..]./gcc/xgcc -shared-libgcc [...] -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -g -O2 -D_GNU_SOURCE -c ../../../../llvm-gcc/libstdc++-v3/libsupc++/eh_personality.cc -fPIC -DPIC -o eh_personality.o Personality function should be set! UNREACHABLE executed at /home/gman/code/codedgers/morpher/src/lib/CodeGen/MachineModuleInfo.cpp:298! ../../../../llvm-gcc/libstdc++-v3/libsupc++/eh_personality.cc:759: internal compiler error: Aborted

This happens both with and without '--disable-bootstrap'. Trunk llc is able to handle the problematic .bc file, though.

llvmbot avatar Sep 14 '09 00:09 llvmbot

great, fixed in 2.6

lattner avatar Sep 16 '09 23:09 lattner

Works for me now with latest LLVM from the 2.6 release branch.

llvmbot avatar Sep 16 '09 13:09 llvmbot

Is this fixed?

llvmbot avatar Sep 16 '09 10:09 llvmbot

Works for me as well. Thanks!

llvmbot avatar Sep 16 '09 06:09 llvmbot

Patch merged to 2.6.

tlattner avatar Sep 16 '09 03:09 tlattner

Works for me when r80153 is applied.

llvmbot avatar Sep 16 '09 00:09 llvmbot

I am using the following to configure llvm:

/Users/buildbot/buildbot/llvm-fixed-src/configure --prefix=/Users/buildbot/buildbot/llvm-fixed-install-81702 --enable-optimized --with-externals=/Users/buildbot/buildbot/benchmarks

And then for llvm-gcc, I am using the build_gcc script:

/Users/buildbot/buildbot/llvm-gcc4.2-fixed-src/build_gcc 'i386 x86_64' 'i386 x86_64 ppc' /Users/buildbot/buildbot/llvm-gcc4.2-fixed-src /usr /Users/buildbot/buildbot/llvm-fixed-install-81702/gcc-dstdir /Users/buildbot/buildbot/llvm-fixed-install-81702/gcc-symdir true yes /Users/buildbot/buildbot/llvm-fixed-install-81702/llvm-build 1000 01

Thanks, Julien

llvmbot avatar Sep 15 '09 23:09 llvmbot

OK. Commit 80153 needs to be brought onto the branch.

echristo avatar Sep 15 '09 22:09 echristo

OK. Found at least a couple of patches that are missing. Bringing over and testing.

echristo avatar Sep 15 '09 22:09 echristo

I can duplicate it with an llvm off of the 2.6 branch and the attached bc file though. Investigating which patches need to be brought over.

echristo avatar Sep 15 '09 22:09 echristo

Julian: What's your configure invocation?

echristo avatar Sep 15 '09 22:09 echristo

Sorry, ToT 2.6 branch on each.

echristo avatar Sep 15 '09 21:09 echristo

A normal darwin bootstrap completed successfully for me on Snow Leopard with ToT llvm-gcc and llvm. I'll try an x86_64 one.

echristo avatar Sep 15 '09 21:09 echristo

OK.

echristo avatar Sep 15 '09 20:09 echristo

My current bootstrap build on normal x86 is working just fine (stage 2 or 3), I'll redo an x86_64 build a bit later. This seems to be during libstdc++ compilation which is after stage3

asl avatar Sep 15 '09 20:09 asl

My current bootstrap build on normal x86 is working just fine (stage 2 or 3), I'll redo an x86_64 build a bit later.

echristo avatar Sep 15 '09 20:09 echristo

Didn't know if Tanya had moved all of the patches over. I'll check out the branch and verify tomorrow. If not, I'll fix.

echristo avatar Sep 15 '09 08:09 echristo

FWIW, I am seeing the same behavior on SnowLeopard, when building for x86_64:

x86_64-apple-darwin10-c++ -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -DHAVE_CONFIG_H -Wno-unused -DTARGET_NAME="i686-apple-darwin10" -frandom-seed=0 -DNDEBUG -I. -I -I/Users/buildbot/buildbot/llvm-fixed-install-81702/gcc-build/src/gcc -I/Users/buildbot/buildbot/llvm-fixed-install-81702/gcc-build/src/gcc/ -I/Users/buildbot/buildbot/llvm-fixed-install-81702/gcc-build/src/gcc/../include -I./../intl -I/Users/buildbot/buildbot/llvm-fixed-install-81702/gcc-build/src/gcc/../libcpp/include -I/Users/buildbot/buildbot/llvm-fixed-install-81702/gcc-build/src/gcc/../libdecnumber -I../libdecnumber -I/Users/buildbot/buildbot/llvm-fixed-install-81702/llvm-build/include -I/Users/buildbot/buildbot/llvm-fixed-src/include -DENABLE_LLVM -I/Users/buildbot/buildbot/llvm-fixed-src/include -I/Users/buildbot/buildbot/llvm-fixed-install-81702/llvm-build/include -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DLLVM_VERSION_INFO='"1000"' -DBUILD_LLVM_APPLE_STYLE -I. -I. -I/Users/buildbot/buildbot/llvm-fixed-install-81702/gcc-build/src/gcc -I/Users/buildbot/buildbot/llvm-fixed-install-81702/gcc-build/src/gcc/. -I/Users/buildbot/buildbot/llvm-fixed-install-81702/gcc-build/src/gcc/../include -I./../intl -I/Users/buildbot/buildbot/llvm-fixed-install-81702/gcc-build/src/gcc/../libcpp/include

-I/Users/buildbot/buildbot/llvm-fixed-install-81702/gcc-build/src/gcc/../libdecnumber -I../libdecnumber -I/Users/buildbot/buildbot/llvm-fixed-install-81702/llvm-build/include -I/Users/buildbot/buildbot/llvm-fixed-src/include -o libllvmgcc.dylib \

/Users/buildbot/buildbot/llvm-fixed-install-81702/gcc-build/src/gcc/llvm-linker-hack.cpp /Users/buildbot/buildbot/llvm-fixed-install-81702/llvm-build/Release/lib/libLLVMBitReader.a /Users/buildbot/buildbot/llvm-fixed-install-81702/llvm-build/Release/lib/libLLVMipo.a /Users/buildbot/buildbot/llvm-fixed-install-81702/llvm-build/Release/lib/libLLVMBitWriter.a /Users/buildbot/buildbot/llvm-fixed-install-81702/llvm-build/Release/lib/libLLVMX86AsmParser.a /Users/buildbot/buildbot/llvm-fixed-install-81702/llvm-build/Release/lib/libLLVMX86AsmPrinter.a /Users/buildbot/buildbot/llvm-fixed-install-81702/llvm-build/Release/lib/libLLVMX86CodeGen.a /Users/buildbot/buildbot/llvm-fixed-install-81702/llvm-build/Release/lib/libLLVMX86Info.a /Users/buildbot/buildbot/llvm-fixed-install-81702/llvm-build/Release/lib/libLLVMPowerPCCodeGen.a /Users/buildbot/buildbot/llvm-fixed-install-81702/llvm-build/Release/lib/libLLVMPowerPCAsmPrinter.a /Users/buildbot/buildbot/llvm-fixed-install-81702/llvm-build/Release/lib/libLLVMPowerPCInfo.a /Users/buildbot/buildbot/llvm-fixed-install-81702/llvm-build/Release/lib/libLLVMARMAsmPrinter.a /Users/buildbot/buildbot/llvm-fixed-install-81702/llvm-build/Release/lib/libLLVMARMCodeGen.a /Users/buildbot/buildbot/llvm-fixed-install-81702/llvm-build/Release/lib/libLLVMSelectionDAG.a /Users/buildbot/buildbot/llvm-fixed-install-81702/llvm-build/Release/lib/libLLVMAsmPrinter.a /Users/buildbot/buildbot/llvm-fixed-install-81702/llvm-build/Release/lib/libLLVMCodeGen.a /Users/buildbot/buildbot/llvm-fixed-install-81702/llvm-build/Release/lib/libLLVMScalarOpts.a /Users/buildbot/buildbot/llvm-fixed-install-81702/llvm-build/Release/lib/libLLVMTransformUtils.a /Users/buildbot/buildbot/llvm-fixed-install-81702/llvm-build/Release/lib/libLLVMipa.a /Users/buildbot/buildbot/llvm-fixed-install-81702/llvm-build/Release/lib/libLLVMAnalysis.a /Users/buildbot/buildbot/llvm-fixed-install-81702/llvm-build/Release/lib/libLLVMTarget.a /Users/buildbot/buildbot/llvm-fixed-install-81702/llvm-build/Release/lib/libLLVMMC.a /Users/buildbot/buildbot/llvm-fixed-install-81702/llvm-build/Release/lib/libLLVMCore.a /Users/buildbot/buildbot/llvm-fixed-install-81702/llvm-build/Release/lib/libLLVMARMInfo.a /Users/buildbot/buildbot/llvm-fixed-install-81702/llvm-build/Release/lib/libLLVMSupport.a /Users/buildbot/buildbot/llvm-fixed-install-81702/llvm-build/Release/lib/libLLVMSystem.a -dynamiclib -single_module
-compatibility_version 1.0.0 -current_version 1.0.0
-install_name @​executable_path/libllvmgcc.dylib
-u _LLVMInitializeARMTarget -u _LLVMInitializeARMAsmPrinter -u _LLVMInitializePowerPCTarget -u _LLVMInitializePowerPCAsmPrinter -u _LLVMInitializeX86Target -u _LLVMInitializeX86AsmPrinter Personality function should be set! UNREACHABLE executed at /Users/buildbot/buildbot/llvm-fixed-src/lib/CodeGen/MachineModuleInfo.cpp:298! /Users/buildbot/buildbot/llvm-fixed-install-81702/gcc-build/src/gcc/llvm-linker-hack.cpp:104: internal compiler error: Abort trap Please submit a full bug report, with preprocessed source if appropriate. See URL:http://developer.apple.com/bugreporter for instructions. make[1]: *** [llvm-linker-hack.o] Error 1 make[1]: *** Waiting for unfinished jobs.... Personality function should be set! UNREACHABLE executed at /Users/buildbot/buildbot/llvm-fixed-src/lib/CodeGen/MachineModuleInfo.cpp:298! /Users/buildbot/buildbot/llvm-fixed-install-81702/gcc-build/src/gcc/llvm-linker-hack.cpp:104: internal compiler error: Abort trap Please submit a full bug report, with preprocessed source if appropriate. See URL:http://developer.apple.com/bugreporter for instructions. make[1]: *** [libllvmgcc.dylib] Error 1 make: *** [all-gcc] Error 2

  • exit 1 ++

Also, on that same branch, rev 81414 was building ok. Rev 81702 and beyond are failing (haven't tested in between).

llvmbot avatar Sep 15 '09 08:09 llvmbot

Eric, Bill, can you guys make this a priority? This is the only significant 2.6 release blocker.

lattner avatar Sep 15 '09 08:09 lattner

I'll take this just in case.

echristo avatar Sep 14 '09 00:09 echristo