[LLVMdev] [make] fatal error: 'LibraryDependencies.inc' file not found (patch)

Vedant Kumar vk at vedantk.com
Wed Nov 30 19:54:45 PST 2011


llvm's build system assumes that PYTHON_EXECUTABLE points to a 2.x
interpreter. On Arch Linux, at least, it points to a 3.x interpreter.

I modified CMakeLists.txt to use "python2" if a 3.x interpreter is detected.

If "python" points to a 3.x interpreter and "python2" doesn't exist,
this workaround will break loudly.

-vk

> Traceback (most recent call last):
>   File "/home/vk/opt/llvm/utils/llvm-build/llvm-build", line 3, in <module>
>     import llvmbuild
>   File "/home/vk/opt/llvm/utils/llvm-build/llvmbuild/__init__.py", line
> 1, in <module>
>     from main import main
> ImportError: No module named main
> llvm[1]: Compiling llvm-config.cpp for Debug+Asserts build
> llvm-config.cpp:46:10: fatal error: 'LibraryDependencies.inc' file not found
> #include "LibraryDependencies.inc"
>          ^
> 1 error generated.
> make[1]: ***
> [/home/vk/opt/llvm/tools/llvm-config-2/Debug+Asserts/llvm-config.o] Error 1
> make[1]: Leaving directory `/home/vk/opt/llvm/tools/llvm-config-2'
> make: *** [all] Error 1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python2.patch
Type: text/x-patch
Size: 508 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111130/aa7795d6/attachment.bin>


More information about the llvm-dev mailing list