Summary: | sys-devel/clang-3.1-r4 - clang: error: unable to execute command: Illegal instruction (in .../work/llvm-3.1.src/tools/clang/runtime/compiler-rt/clang_linux/full-i386/i386/SubDir.lib/gcc_personality_v0.o] Ошибка 254) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | devt <litovsky2009> |
Component: | [OLD] Core system | Assignee: | Gentoo Clang Team (OBSOLETE) <clang+obsolete> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | complete log of building clang |
Description
devt
2012-07-24 01:07:37 UTC
Created attachment 319048 [details]
complete log of building clang
Part of build log: ASSEMBLE: clang_linux/full-i386/i386: /var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/projects/compiler-rt/lib/i386/moddi3.S /var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/Release/bin/clang -Wall -Werror -O3 -fomit-frame-pointer -m32 --sysroot=/var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/projects/compiler-rt/SDKs/linux -c -o /var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/tools/clang/runtime/compiler-rt/clang_linux/full-i386/i386/SubDir.lib__i386/moddi3.o /var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/projects/compiler-rt/lib/i386/moddi3.S 0 libLLVM-3.1.so 0x5581a2e8 1 libLLVM-3.1.so 0x5581a9b4 2 linux-gate.so.1 0x55577400 __kernel_sigreturn + 0 3 libLLVM-3.1.so 0x557436b1 4 libLLVM-3.1.so 0x55745a56 5 libLLVM-3.1.so 0x5574b7f5 6 libLLVM-3.1.so 0x5574d2c6 7 libLLVM-3.1.so 0x55a3233e llvm::LPPassManager::runOnFunction(llvm::Function&) + 942 8 libLLVM-3.1.so 0x55d2632c llvm::FPPassManager::runOnFunction(llvm::Function&) + 556 9 libLLVM-3.1.so 0x55d263ec llvm::FPPassManager::runOnModule(llvm::Module&) + 76 10 libLLVM-3.1.so 0x55d25f65 llvm::MPPassManager::runOnModule(llvm::Module&) + 501 11 libLLVM-3.1.so 0x55d260a0 llvm::PassManagerImpl::run(llvm::Module&) + 128 12 libLLVM-3.1.so 0x55d260f6 llvm::PassManager::run(llvm::Module&) + 38 13 clang 0x082c14bc clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 2028 14 clang 0x082bf360 15 clang 0x08412f40 clang::ParseAST(clang::Sema&, bool, bool) + 512 16 clang 0x08199c57 clang::ASTFrontendAction::ExecuteAction() + 119 Stack dump: 0. Program arguments: /var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/Release/bin/clang -cc1 -triple i386-pc-linux-gnu -emit-obj -disable-free -disable-llvm-verifier -main-file-name gcc_personality_v0.c -pic-level 2 -masm-verbose -mconstructor-aliases -target-cpu pentium4 -target-linker-version 2.22 -momit-leaf-frame-pointer -coverage-file /var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/tools/clang/runtime/compiler-rt/clang_linux/full-i386/i386/SubDir.lib/gcc_personality_v0.o -resource-dir /var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/Release/bin/../lib/clang/3.1 -isysroot /var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/projects/compiler-rt/SDKs/linux -fmodule-cache-path /var/tmp/portage/sys-devel/clang-3.1-r4/temp/clang-module-cache -internal-isystem /var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/projects/compiler-rt/SDKs/linux/usr/local/include -internal-isystem /var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/Release/bin/../lib/clang/3.1/include -internal-externc-isystem /var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/projects/compiler-rt/SDKs/linux/include -internal-externc-isystem /var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/projects/compiler-rt/SDKs/linux/usr/include -O3 -Wall -Werror -fdebug-compilation-dir /var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/tools/clang/runtime/compiler-rt -ferror-limit 19 -fmessage-length 0 -mstackrealign -fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi -fdiagnostics-show-option -o /var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/tools/clang/runtime/compiler-rt/clang_linux/full-i386/i386/SubDir.lib/gcc_personality_v0.o -x c /var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/projects/compiler-rt/lib/gcc_personality_v0.c 1. <eof> parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module '/var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/projects/compiler-rt/lib/gcc_personality_v0.c'. 4. Running pass 'Loop Pass Manager' on function '@__gcc_personality_v0' 5. Running pass 'Loop Strength Reduction' on basic block '%.preheader' clang: error: unable to execute command: Illegal instruction clang: error: clang frontend command failed due to signal (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information. COMPILE: clang_linux/full-i386/i386: /var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/projects/compiler-rt/lib/modsi3.c /var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/Release/bin/clang -Wall -Werror -O3 -fomit-frame-pointer -m32 --sysroot=/var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/projects/compiler-rt/SDKs/linux -c -fPIC -o /var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/tools/clang/runtime/compiler-rt/clang_linux/full-i386/i386/SubDir.lib/modsi3.o /var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/projects/compiler-rt/lib/modsi3.c COMPILE: clang_linux/full-i386/i386: /var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/projects/compiler-rt/lib/modti3.c clang: note: diagnostic msg: Preprocessed source(s) and associated run script(s) are located at: clang: note: diagnostic msg: /var/tmp/portage/sys-devel/clang-3.1-r4/temp/gcc_personality_v0-d43efp.i clang: note: diagnostic msg: /var/tmp/portage/sys-devel/clang-3.1-r4/temp/gcc_personality_v0-d43efp.sh make[4]: *** [/var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/tools/clang/runtime/compiler-rt/clang_linux/full-i386/i386/SubDir.lib/gcc_personality_v0.o] Error 254 make[4]: *** Ожидание завершения заданий... /var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/Release/bin/clang -Wall -Werror -O3 -fomit-frame-pointer -m32 --sysroot=/var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/projects/compiler-rt/SDKs/linux -c -fPIC -o /var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/tools/clang/runtime/compiler-rt/clang_linux/full-i386/i386/SubDir.lib/modti3.o /var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/projects/compiler-rt/lib/modti3.c make[4]: Выход из каталога `/var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/projects/compiler-rt' make[3]: *** [BuildRuntimeLibraries] Error 2 rm /var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/Release/lib/clang/3.1/lib/linux/.dir make[3]: Выход из каталога `/var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/tools/clang/runtime/compiler-rt' make[2]: *** [compiler-rt/.makeall] Error 2 make[2]: Выход из каталога `/var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/tools/clang/runtime' make[1]: *** [all] Error 1 make[1]: Выход из каталога `/var/tmp/portage/sys-devel/clang-3.1-r4/work/llvm-3.1.src/tools/clang' make: *** [all] Error 1 * ERROR: sys-devel/clang-3.1-r4 failed (compile phase): * emake failed Likely, this line of the build log should give you a thought: clang: error: unable to execute command: Illegal instruction While there *is* a chance you've stumbled upon a genuine compiler bug, first try more conservative cflags. (In reply to comment #3) > Likely, this line of the build log should give you a thought: > clang: error: unable to execute command: Illegal instruction > > While there *is* a chance you've stumbled upon a genuine compiler bug, first > try more conservative cflags. Ok, I will try it. But what idea from You? What сflags should be removed in Your think? Хорошо, я попробую. Но какие идеи у Вас? Какие флаги следует убрать по Вашему мнению? Comment on attachment 319048 [details]
complete log of building clang
Please don't put a single file in a tar archive next time.
Wait a moment: Portage 2.2.0_alpha118 (default/linux/x86/10.0/desktop/gnome, gcc-4.6.3, glibc-2.15-r2, 3.4.0-gentoo *i686*) Is that a fresh install or a chroot, cause i686 and core2 is an odd mix otherwise ? (In reply to comment #6) > Wait a moment: > Portage 2.2.0_alpha118 (default/linux/x86/10.0/desktop/gnome, gcc-4.6.3, > glibc-2.15-r2, 3.4.0-gentoo *i686*) > > Is that a fresh install or a chroot, cause i686 and core2 is an odd mix > otherwise ? And in the real system and the virtual - the same error. Yes, when I'd compile clang, I was in chroot, but when I reboot into real system — the same error. And thos system has no X-org and DE. (In reply to comment #5) > Comment on attachment 319048 [details] > complete log of building clang > > Please don't put a single file in a tar archive next time. Ok. Say me please any other idea to sent 1.2 MiB log file. I'm really don't know or wasn't understand. Clang has been compiled without -ftree-vectorize cxxflag! But after trying to compile any program error appears again. Example with compiling llvm using clang as main compiler: llvm[1]: Compiling APFloat.cpp for Release build if clang++ -I/var/tmp/portage/sys-devel/llvm-3.1-r1/work/llvm-3.1.src/include -I/var/tmp/portage/sys-devel/llvm-3.1-r1/work/llvm-3.1.src/lib/Support -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fvisibility-inlines-hidden -fno-exceptions -fPIC -Woverloaded-virtual -Wcast-qual -O2 -march=core2 -pipe -fomit-frame-pointer -msse -msse2 -msse3 -I/usr/lib/libffi-3.0.11/include -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcovered-switch-default -c -MMD -MP -MF "/var/tmp/portage/sys-devel/llvm-3.1-r1/work/llvm-3.1.src/lib/Support/Release/APFloat.d.tmp" -MT "/var/tmp/portage/sys-devel/llvm-3.1-r1/work/llvm-3.1.src/lib/Support/Release/APFloat.o" -MT "/var/tmp/portage/sys-devel/llvm-3.1-r1/work/llvm-3.1.src/lib/Support/Release/APFloat.d" APFloat.cpp -o /var/tmp/portage/sys-devel/llvm-3.1-r1/work/llvm-3.1.src/lib/Support/Release/APFloat.o ; \ then /bin/mv -f "/var/tmp/portage/sys-devel/llvm-3.1-r1/work/llvm-3.1.src/lib/Support/Release/APFloat.d.tmp" "/var/tmp/portage/sys-devel/llvm-3.1-r1/work/llvm-3.1.src/lib/Support/Release/APFloat.d"; else /bin/rm "/var/tmp/portage/sys-devel/llvm-3.1-r1/work/llvm-3.1.src/lib/Support/Release/APFloat.d.tmp"; exit 1; fi 0 libLLVM-3.1.so 0x55827798 1 libLLVM-3.1.so 0x55827e64 2 linux-gate.so.1 0x55577400 __kernel_sigreturn + 0 3 libLLVM-3.1.so 0x55750f41 4 libLLVM-3.1.so 0x557532e6 5 libLLVM-3.1.so 0x55759085 6 libLLVM-3.1.so 0x5575ab56 7 libLLVM-3.1.so 0x55a3f59e llvm::LPPassManager::runOnFunction(llvm::Function&) + 942 8 libLLVM-3.1.so 0x55d3310c llvm::FPPassManager::runOnFunction(llvm::Function&) + 556 9 libLLVM-3.1.so 0x55d331cc llvm::FPPassManager::runOnModule(llvm::Module&) + 76 10 libLLVM-3.1.so 0x55d32d45 llvm::MPPassManager::runOnModule(llvm::Module&) + 501 11 libLLVM-3.1.so 0x55d32e80 llvm::PassManagerImpl::run(llvm::Module&) + 128 12 libLLVM-3.1.so 0x55d32ed6 llvm::PassManager::run(llvm::Module&) + 38 13 clang 0x082ccd8d clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 1965 14 clang 0x082cae3a 15 clang 0x0841aa2f clang::ParseAST(clang::Sema&, bool, bool) + 511 16 clang 0x081a2a48 clang::ASTFrontendAction::ExecuteAction() + 120 Stack dump: 0. Program arguments: /usr/bin/clang -cc1 -triple i386-pc-linux-gnu -emit-obj -disable-free -disable-llvm-verifier -main-file-name APFloat.cpp -pic-level 2 -masm-verbose -mconstructor-aliases -target-cpu core2 -target-feature +sse -target-feature +sse2 -target-feature +sse3 -target-linker-version 2.22 -momit-leaf-frame-pointer -coverage-file /var/tmp/portage/sys-devel/llvm-3.1-r1/work/llvm-3.1.src/lib/Support/Release/APFloat.o -resource-dir /usr/bin/../lib/clang/3.1 -dependency-file /var/tmp/portage/sys-devel/llvm-3.1-r1/work/llvm-3.1.src/lib/Support/Release/APFloat.d.tmp -MP -MT /var/tmp/portage/sys-devel/llvm-3.1-r1/work/llvm-3.1.src/lib/Support/Release/APFloat.o -MT /var/tmp/portage/sys-devel/llvm-3.1-r1/work/llvm-3.1.src/lib/Support/Release/APFloat.d -D NDEBUG -D _GNU_SOURCE -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -I /var/tmp/portage/sys-devel/llvm-3.1-r1/work/llvm-3.1.src/include -I /var/tmp/portage/sys-devel/llvm-3.1-r1/work/llvm-3.1.src/lib/Support -I /usr/lib/libffi-3.0.11/include -fmodule-cache-path /var/tmp/portage/sys-devel/llvm-3.1-r1/temp/clang-module-cache -internal-isystem /usr/lib/gcc/i686-pc-linux-gnu/4.7.1/include/g++-v4 -internal-isystem /usr/lib/gcc/i686-pc-linux-gnu/4.7.1/include/g++-v4/i686-pc-linux-gnu -internal-isystem /usr/lib/gcc/i686-pc-linux-gnu/4.7.1/include/g++-v4/backward -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/clang/3.1/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O2 -Woverloaded-virtual -Wcast-qual -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcovered-switch-default -fconst-strings -fdeprecated-macro -fdebug-compilation-dir /var/tmp/portage/sys-devel/llvm-3.1-r1/work/llvm-3.1.src/lib/Support -ferror-limit 19 -fmessage-length 0 -fvisibility-inlines-hidden -mstackrealign -fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi -fdiagnostics-show-option -o /var/tmp/portage/sys-devel/llvm-3.1-r1/work/llvm-3.1.src/lib/Support/Release/APFloat.o -x c++ APFloat.cpp 1. <eof> parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module 'APFloat.cpp'. 4. Running pass 'Loop Pass Manager' on function '@_ZN4llvm7APFloat28convertFromHexadecimalStringENS_9StringRefENS0_12roundingModeE' 5. Running pass 'Loop Strength Reduction' on basic block '%.preheader.i' clang: error: unable to execute command: Illegal instruction clang: error: clang frontend command failed due to signal (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Preprocessed source(s) and associated run script(s) are located at: clang: note: diagnostic msg: /var/tmp/portage/sys-devel/llvm-3.1-r1/temp/APFloat-7IkRPw.ii clang: note: diagnostic msg: /var/tmp/portage/sys-devel/llvm-3.1-r1/temp/APFloat-7IkRPw.sh /bin/rm: невозможно удалить «/var/tmp/portage/sys-devel/llvm-3.1-r1/work/llvm-3.1.src/lib/Support/Release/APFloat.d.tmp»: Нет такого файла или каталога make[1]: *** [/var/tmp/portage/sys-devel/llvm-3.1-r1/work/llvm-3.1.src/lib/Support/Release/APFloat.o] Ошибка 1 make[1]: Выход из каталога `/var/tmp/portage/sys-devel/llvm-3.1-r1/work/llvm-3.1.src/lib/Support' make: *** [all] Ошибка 1 * ERROR: sys-devel/llvm-3.1-r1 failed (compile phase): * emake failed Cleaning some old llvm/clang bugs, does it still fail to compile with current versions? (3.7.0 was just added in tree) |