[LLVMdev] Is the option --enable-shared discontinued in 2.7?

Yuri yuri at tsoft.com
Tue Apr 27 16:06:32 PDT 2010


When I enabled this option I am getting errors, see below.
Is there any way to fix this? There should be an option to have most of 
the code in shared library.

Yuri

--- error log using gcc-4.5.0 on 4 cpus with configure options: 
--enable-assertions --enable-optimized --enable-shared 
--prefix=/usr/local/llvm ---
llvm[2]: Compiling llc.cpp for Release build
gmake[2]: Entering directory 
`/tmp/llvm-build/2.7/llvm-objects/tools/llvm-ld'
llvm[2]: Compiling Optimize.cpp for Release build
llvm[2]: Linking Release executable llvm-dis (without symbols)
llvm[2]: Compiling GraphPrinters.cpp for Release build
/tmp/llvm-build/2.7/llvm-objects/tools/llvm-dis/Release/llvm-dis.o(.text+0x42): 
In function `main':
: undefined reference to `llvm::sys::PrintStackTraceOnErrorSignal()'
/tmp/llvm-build/2.7/llvm-objects/tools/llvm-dis/Release/llvm-dis.o(.text+0x51): 
In function `main':
: undefined reference to 
`llvm::PrettyStackTraceEntry::PrettyStackTraceEntry()'
/tmp/llvm-build/2.7/llvm-objects/tools/llvm-dis/Release/llvm-dis.o(.text+0x57): 
In function `main':
: undefined reference to `vtable for llvm::PrettyStackTraceProgram'
/tmp/llvm-build/2.7/llvm-objects/tools/llvm-dis/Release/llvm-dis.o(.text+0x68): 
In function `main':
: undefined reference to `llvm::getGlobalContext()'
/tmp/llvm-build/2.7/llvm-objects/tools/llvm-dis/Release/llvm-dis.o(.text+0x7b): 
In function `main':
: undefined reference to `llvm::cl::ParseCommandLineOptions(int, char**, 
char const*, bool)'
/tmp/llvm-build/2.7/llvm-objects/tools/llvm-dis/Release/llvm-dis.o(.text+0xb2): 
In function `main':
: undefined reference to 
`llvm::MemoryBuffer::getFileOrSTDIN(llvm::StringRef, 
std::basic_string<char, std::char_traits<char>, std::allocator<char> >*, 
long long)'
/tmp/llvm-build/2.7/llvm-objects/tools/llvm-dis/Release/llvm-dis.o(.text+0xcd): 
In function `main':
: undefined reference to `llvm::ParseBitcodeFile(llvm::MemoryBuffer*, 
llvm::LLVMContext&, std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >*)'




More information about the llvm-dev mailing list