[blfs-support] Error building llvm-3.0
blfs-support at edbatalha.info
Sun Feb 5 11:06:48 PST 2012
On Sunday 05 February 2012 13:17:23 tony lemaire wrote:
> Hello everybody,
> I have successfully build my own LFS system (SVN-20120122) and now, i
> continue with the BLF book. I currently try to implement the X Windows
> System Environnement (chapter 24), but i failled.
> I'm at the step where I must build MesaLib-7.11.2 with it's dependencies
> called LLVM-3.0.
> When i'm compiling LLVM-3.0, i've got this error :
> llvm: ======= Finished Linking Release Executable not (without symbols)
> make: Leaving directory `/sources/llvm-3.0.src/utils/not'
> make: Entering directory `/sources/llvm-3.0.src/utils/unittest'
> make: Entering directory
> `/sources/llvm-3.0.src/utils/unittest/googletest' llvm: Compiling
> gtest.cc for Release build (PIC)
> llvm: Compiling gtest-death-test.cc for Release build (PIC)
> llvm: Compiling gtest-filepath.cc for Release build (PIC)
> llvm: Compiling gtest-port.cc for Release build (PIC)
> llvm: Compiling gtest-printers.cc for Release build (PIC)
> llvm: Compiling gtest-test-part.cc for Release build (PIC)
> llvm: Compiling gtest-typed-test.cc for Release build (PIC)
> llvm: Linking Release Shared Library libGoogleTest.so
> make: Leaving directory
> `/sources/llvm-3.0.src/utils/unittest/googletest' make: Entering
> directory `/sources/llvm-3.0.src/utils/unittest/UnitTestMain' llvm:
> Compiling TestMain.cpp for Release build (PIC)
> llvm: Linking Release Shared Library libUnitTestMain.so
> make: Leaving directory
> `/sources/llvm-3.0.src/utils/unittest/UnitTestMain' make: Leaving
> directory `/sources/llvm-3.0.src/utils/unittest'
> make: Leaving directory `/sources/llvm-3.0.src/utils'
> make: Entering directory `/sources/llvm-3.0.src/lib/VMCore'
> llvm: Building Intrinsics.gen.tmp from Intrinsics.td
> /sources/llvm-3.0.src/Release/bin/llvm-tblgen: error while loading shared
> libraries: libLLVMTableGen.so: cannot open shared object file: No such
> file or directory make: ***
> [/sources/llvm-3.0.src/lib/VMCore/Release/Intrinsics.gen.tmp] Error 127
> make: Leaving directory `/sources/llvm-3.0.src/lib/VMCore'
> make: *** [all] Error 1
> root [ /sources/llvm-3.0.src ]#
> For your information, all packages which i've compiled before LLVM-3.0 have
> successfully compiled.
> I didn't find any solution in the web, or i hope to find a solution with
> the LFS/BLFS community.
> If somebody have any solution or idea, it'll be nice to explain me what can
> i do.
> Best regards,
Could it be that you're compiling with a -jX option passed over to make?
Occasionally, some packages do not strictly enforce all the dependencies,
instead assuming that things will compile in the order they come up in the
makefile, which may then fail if the -j option is used.
As a rule of thumb I always start make with 'lfs [/sources/xpto]$ nice make -
j2' (my processor has 2 cores) and if I get an error message I try again with
simply 'lfs [/sources/xpto]$ make'. This also ensures that any error messages
I get afterwards are more significant.
More information about the blfs-support