Hello to everyone!
I’ve configured LLVM by “…/llvm/configure”. But when I run “gmake”, I receive compilation error:
llvm[2]: Linking Debug+Asserts executable llvm-tblgen
/home/poiuj/dev/llvm/build/Debug+Asserts/lib/libLLVMSupport.a(FormattedStream.o):(.debug_loc+0x2a8): undefined reference to .LCfI21' collect2: error: ld returned 1 exit status gmake[2]: *** [/home/poiuj/dev/llvm/build/Debug+Asserts/bin/llvm-tblgen] Error 1 gmake[2]: Leaving directory
/home/poiuj/dev/llvm/build/utils/TableGen’
gmake[1]: *** [TableGen/.makeall] Error 2
gmake[1]: Leaving directory `/home/poiuj/dev/llvm/build/utils’
gmake: *** [all] Error 1
I’m using gcc version 4.7.1 20120721 (prerelease) (GCC).
Could someone help me, please?
Vadim Khoptynets <vadya.poiuj@gmail.com> writes:
I've configured LLVM by "../llvm/configure". But when I run "gmake", I
receive compilation error:
llvm[2]: Linking Debug+Asserts executable llvm-tblgen
/home/poiuj/dev/llvm/build/Debug+Asserts/lib/libLLVMSupport.a(FormattedStream.o):(.debug_loc+0x2a8):
undefined reference to `.LCfI21'
[snip]
I'm using gcc version 4.7.1 20120721 (prerelease) (GCC).
Could someone help me, please?
Can you try with another gcc version?
Vadim Khoptynets <vadya.poiuj@gmail.com> writes:
Hello, Óscar!
I had some problems with my machine, so I've reistalled system and LLVM
repository. And now, I have another trouble during compilation:
make[1]: Entering directory `/media/data/dev/llvm/bin/tools/llvm-config'
llvm[1]: Constructing LLVMBuild project information.
/usr/bin/env: python: No such file or directory
llvm[1]: Building llvm-config BuildVariables.inc file.
llvm[1]: Compiling llvm-config.cpp for Debug+Asserts build
/media/data/dev/llvm/llvm/tools/llvm-config/llvm-config.cpp:45:35: fatal
error: LibraryDependencies.inc: No such file or directory
compilation terminated.
/bin/rm: cannot remove
'/media/data/dev/llvm/bin/tools/llvm-config/Debug+Asserts/llvm-config.d.tmp':
No such file or directory
make[1]: ***
[/media/data/dev/llvm/bin/tools/llvm-config/Debug+Asserts/llvm-config.o]
Error 1
make[1]: Leaving directory `/media/data/dev/llvm/bin/tools/llvm-config'
make: *** [all] Error 1
It seems that some files are missed in the repository. Could you, please,
help me with this trouble?
From the log shown:
/usr/bin/env: python: No such file or directory
IIRC python is required. If true, then it is unfortunate that the fact
is not mentioned on the Getting Started documents, nor clearly stated on
the logs or the configure step.
On the future, please send questions to the llvm mailing list, not to
me. Thanks.