[LLVMdev] Building LLVM 2.7 on OpenSolaris
lkiss at deltaprime.com
Thu Jul 29 17:36:16 PDT 2010
The build process fails to link the LLVM tools. Specifically, the
first tool to build is 'opt' which results in 700+ undefined symbols.
I looked into the Makefiles and found that the "LINK_COMPONENTS" make
variable does not get the correct set of libraries. In fact, at the
top level Makefile.rules, the variable is set to "support system",
however, these do not seem to make it to the 'opt' make context.
The list of libraries for 'opt' is (from the g++ link command):
... -lLLVMipo -lLLVMScalarOpts -lLLVMInstrumentation -lLLVMAsmParser -
lLLVMBitWriter -lLLVMBitReader ...
It is missing at a minimum LLVMCore, which when added reduces the
unresolved externals to 400+.
Guidance about how to deal with the link process would be great.
$ uname -a
SunOS A64009 5.11 snv_111b i86pc i386 i86pc
GCC-4.4.4, GMP-4.3.2, MPFR-2.4.2
$ gcc -v
Using built-in specs.
Configured with: ../gcc-4.4.4/configure --prefix=/opt/common/app/gcc/
current --with-mpfr=/opt/common/app/gcc/current --with-gmp=/opt/common/
app/gcc/current --enable-languages=c,c++ --enable-shared --enable-
Thread model: posix
gcc version 4.4.4 (GCC)
LLVM 2.7 [Release]:
../llvm-2.7/configure --with-built-clang --prefix=/opt/common/app/gcc/
More information about the llvm-dev