Hello,
Building BLFS now and trying to compile llvm with clang, using stable
version of this book
(http://www.linuxfromscratch.org/blfs/view/stable/general/llvm.html) and
have problem with compiling clang. Please review output of error and let
me know is there a possible workaround. Looks like it's gcc bug or even
clang. Since build time is very big it's better to consult with someone
instead of smashing my head against the wall:
llvm[2]: Compiling ToolChains.cpp for Release build
llvm[2]: Compiling WhitespaceManager.cpp for Release build
g++: internal compiler error: Killed (program cc1plus)
0x40c88c execute
../../gcc-4.9.2/gcc/gcc.c:2854
0x40cc54 do_spec_1
../../gcc-4.9.2/gcc/gcc.c:4658
0x40f516 process_brace_body
../../gcc-4.9.2/gcc/gcc.c:5941
0x40f516 handle_braces
../../gcc-4.9.2/gcc/gcc.c:5855
0x40dac9 do_spec_1
../../gcc-4.9.2/gcc/gcc.c:5312
0x40f516 process_brace_body
../../gcc-4.9.2/gcc/gcc.c:5941
0x40f516 handle_braces
../../gcc-4.9.2/gcc/gcc.c:5855
0x40dac9 do_spec_1
../../gcc-4.9.2/gcc/gcc.c:5312
0x40d833 do_spec_1
../../gcc-4.9.2/gcc/gcc.c:5427
0x40f516 process_brace_body
../../gcc-4.9.2/gcc/gcc.c:5941
0x40f516 handle_braces
../../gcc-4.9.2/gcc/gcc.c:5855
0x40dac9 do_spec_1
../../gcc-4.9.2/gcc/gcc.c:5312
0x40f516 process_brace_body
../../gcc-4.9.2/gcc/gcc.c:5941
0x40f516 handle_braces
../../gcc-4.9.2/gcc/gcc.c:5855
0x40dac9 do_spec_1
../../gcc-4.9.2/gcc/gcc.c:5312
0x40f516 process_brace_body
../../gcc-4.9.2/gcc/gcc.c:5941
0x40f516 handle_braces
../../gcc-4.9.2/gcc/gcc.c:5855
0x40dac9 do_spec_1
../../gcc-4.9.2/gcc/gcc.c:5312
0x40f516 process_brace_body
../../gcc-4.9.2/gcc/gcc.c:5941
0x40f516 handle_braces
../../gcc-4.9.2/gcc/gcc.c:5855
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
/bin/rm: cannot remove
'/home/lfs/xc/llvm-3.5.1.src/tools/clang/lib/Sema/Release/SemaTemplate.d.tmp':
No such file or directory
/home/lfs/xc/llvm-3.5.1.src/Makefile.rules:1519: recipe for target
'/home/lfs/xc/llvm-3.5.1.src/tools/clang/lib/Sema/Release/SemaTemplate.o' failed
make[2]: ***
[/home/lfs/xc/llvm-3.5.1.src/tools/clang/lib/Sema/Release/SemaTemplate.o] Error
1
make[2]: Leaving directory
'/home/lfs/xc/llvm-3.5.1.src/tools/clang/lib/Sema'
/home/lfs/xc/llvm-3.5.1.src/Makefile.rules:937: recipe for target
'Sema/.makeall' failed
make[1]: *** [Sema/.makeall] Error 2
make[1]: *** Waiting for unfinished jobs....
llvm[2]: Compiling Tools.cpp for Release build
llvm[2]: Building Release Archive Library libclangFormat.a
make[2]: Leaving directory
'/home/lfs/xc/llvm-3.5.1.src/tools/clang/lib/Format'
llvm[2]: Compiling Types.cpp for Release build
llvm[2]: Compiling WindowsToolChain.cpp for Release build
llvm[2]: Compiling MicrosoftCXXABI.cpp for Release build
llvm[2]: Compiling ModuleBuilder.cpp for Release build
llvm[2]: Compiling SanitizerBlacklist.cpp for Release build
llvm[2]: Compiling TargetInfo.cpp for Release build
llvm[2]: Building Release Archive Library libclangDriver.a
make[2]: Leaving directory
'/home/lfs/xc/llvm-3.5.1.src/tools/clang/lib/Driver'
llvm[2]: Building Release Archive Library libclangCodeGen.a
make[2]: Leaving directory
'/home/lfs/xc/llvm-3.5.1.src/tools/clang/lib/CodeGen'
make[1]: Leaving directory '/home/lfs/xc/llvm-3.5.1.src/tools/clang/lib'
/home/lfs/xc/llvm-3.5.1.src/Makefile.rules:888: recipe for target 'all'
failed
make: *** [all] Error 1
What can you suggest to do in this situation? Used GCC 4.9.2 and it
should be patched, I rebuilded it using BLFS guide, but received same
error. LLVM without clang and compiler-rt build normally. I want to use
gallium drivers in my MesaLib.
Thanks,
Svyatoslav
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page