[Mesa-dev] cant compile with llvmpipe enabled
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_stringchar, std::char_traitschar, std::allocatorchar *)': (.text+0x32): undefined reference to `dlopen' /usr/lib/llvm/libLLVMSystem.a(DynamicLibrary.o): In function `llvm::sys::DynamicLibrary::LoadLibraryPermanently(char const*, std::basic_stringchar, std::char_traitschar, std::allocatorchar *)': (.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 ??? - Twoja sasiadka juz w to gra, a Ty na co czekasz? http://linkint.pl/f26af ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev
Re: [Mesa-dev] cant compile with llvmpipe enabled
On Mon, May 3, 2010 at 12:52 PM, yaiba.kurog...@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' [...] Strange that you should have this error since you link against -ldl, where these (dl*()) functions are defined! Another strange thing is that -ldl appears _twice_ here, and once only after -L../../auxiliary, maybe that is the problem (I don't know the linker that well)? -- Francis Galiegue, fgalie...@gmail.com It seems obvious [...] that at least some 'business intelligence' tools invest so much intelligence on the business side that they have nothing left for generating SQL queries (Stéphane Faroult, in The Art of SQL, ISBN 0-596-00894-5) ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev
Re: [Mesa-dev] cant compile with llvmpipe enabled
On Mon, May 3, 2010 at 3:52 AM, yaiba.kurog...@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_stringchar, std::char_traitschar, std::allocatorchar *)': (.text+0x32): undefined reference to `dlopen' /usr/lib/llvm/libLLVMSystem.a(DynamicLibrary.o): In function `llvm::sys::DynamicLibrary::LoadLibraryPermanently(char const*, std::basic_stringchar, std::char_traitschar, std::allocatorchar *)': (.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 ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev