[Mesa-dev] cant compile with llvmpipe enabled
Dan Nicholson
dbn.lists at gmail.com
Mon May 3 06:43:29 PDT 2010
On Mon, May 3, 2010 at 3:52 AM, <yaiba.kurogane at interia.pl> wrote:
> Hey. I get following error when try to compile mesa-git with
> --enable-gallium-llvm.
>
> g++ -Wl,--hash-style=gnu -Wl,--as-needed -L/usr/lib/llvm -lpthread -lffi
> -ldl -lm lp_test_format.o lp_test_main.o -o lp_test_format
> -Wl,--start-group -lXext -lXxf86vm -lXdamage -lXfixes -lX11-xcb -lX11
> -lxcb-glx -lxcb -ldrm -lm -lpthread -ldl -L../../auxiliary/ -lgallium
> libllvmpipe.a -lLLVMBitWriter -lLLVMX86CodeGen -lLLVMX86Info
> -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMInterpreter -lLLVMJIT
> -lLLVMExecutionEngine -lLLVMCodeGen -lLLVMScalarOpts -lLLVMInstCombine
> -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMMC
> -lLLVMCore -lLLVMSupport -lLLVMSystem -lstdc++ -Wl,--end-group
> ../../auxiliary//libgallium.a(u_dl.o): In function `util_dl_open':
> u_dl.c:(.text+0x21): undefined reference to `dlopen'
> ../../auxiliary//libgallium.a(u_dl.o): In function
> `util_dl_get_proc_address':
> u_dl.c:(.text+0x50): undefined reference to `dlsym'
> ../../auxiliary//libgallium.a(u_dl.o): In function `util_dl_close':
> u_dl.c:(.text+0x79): undefined reference to `dlclose'
> ../../auxiliary//libgallium.a(u_dl.o): In function `util_dl_error':
> u_dl.c:(.text+0xa3): undefined reference to `dlerror'
> /usr/lib/llvm/libLLVMSystem.a(DynamicLibrary.o): In function
> `llvm::sys::DynamicLibrary::LoadLibraryPermanently(char const*,
> std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)':
> (.text+0x32): undefined reference to `dlopen'
> /usr/lib/llvm/libLLVMSystem.a(DynamicLibrary.o): In function
> `llvm::sys::DynamicLibrary::LoadLibraryPermanently(char const*,
> std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)':
> (.text+0x8a): undefined reference to `dlerror'
> /usr/lib/llvm/libLLVMSystem.a(DynamicLibrary.o): In function
> `llvm::sys::DynamicLibrary::SearchForAddressOfSymbol(char const*)':
> (.text+0x1a2): undefined reference to `dlsym'
> /usr/lib/llvm/libLLVMSystem.a(Signals.o): In function
> `PrintStackTrace(void*)':
> (.text+0x74): undefined reference to `dladdr'
> /usr/lib/llvm/libLLVMSystem.a(Signals.o): In function
> `PrintStackTrace(void*)':
> (.text+0x1ea): undefined reference to `dladdr'
> collect2: ld returned 1 exit status
> make[4]: *** [lp_test_format] Error 1
>
> something is missing in my system or something ???
Does the problem go away when you build without -Wl,--as-needed? If
so, it seems like the libraries need to be reordered so the linker
doesn't throw out -ldl. Otherwise, I don't know.
--
Dan
More information about the mesa-dev
mailing list