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

Jeffrey Yasskin jyasskin at google.com
Tue Apr 27 17:12:57 PDT 2010


--enable-shared was _created_ in 2.7. If you were passing it in 2.6 or
earlier, it wasn't doing what you expected.

I just tried it again on trunk (not 2.7) on OSX 10.5, and it works.
What platform are you on? Does it work with another version of gcc?

On Tue, Apr 27, 2010 at 4:06 PM, Yuri <yuri at tsoft.com> wrote:
>
> 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> >*)'
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>




More information about the llvm-dev mailing list