Summary: | [Bisected] Mesa master compilation broke when built with --with-llvm-shared-libs | ||
---|---|---|---|
Product: | Mesa | Reporter: | roberth <sarvatt> |
Component: | Mesa core | Assignee: | mesa-dev |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | jfonseca, pedretti.fabio |
Version: | git | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
roberth
2012-05-04 11:20:23 UTC
I have the same problem. The problem in llvmpipe driver. mklib: Making Linux static library: libllvmpipe.a ar: creating libllvmpipe.a g++ -L/usr/lib -lpthread -ldl -lm lp_test_format.o lp_test_main.o -o lp_test_format -Wl,--start-group -L../../auxiliary/ -lgallium libllvmpipe.a -lLLVM-3.2svn -lXext -lXdamage -lXfixes -lX11-xcb -lX11 -lxcb-glx -lxcb -lXxf86vm -ldrm -lm -lpthread -ldl -Wl,--end-group g++ -L/usr/lib -lpthread -ldl -lm lp_test_arit.o lp_test_main.o -o lp_test_arit -Wl,--start-group -L../../auxiliary/ -lgallium libllvmpipe.a -lLLVM-3.2svn -lXext -lXdamage -lXfixes -lX11-xcb -lX11 -lxcb-glx -lxcb -lXxf86vm -ldrm -lm -lpthread -ldl -Wl,--end-group g++ -L/usr/lib -lpthread -ldl -lm lp_test_blend.o lp_test_main.o -o lp_test_blend -Wl,--start-group -L../../auxiliary/ -lgallium libllvmpipe.a -lLLVM-3.2svn -lXext -lXdamage -lXfixes -lX11-xcb -lX11 -lxcb-glx -lxcb -lXxf86vm -ldrm -lm -lpthread -ldl -Wl,--end-group g++ -L/usr/lib -lpthread -ldl -lm lp_test_conv.o lp_test_main.o -o lp_test_conv -Wl,--start-group -L../../auxiliary/ -lgallium libllvmpipe.a -lLLVM-3.2svn -lXext -lXdamage -lXfixes -lX11-xcb -lX11 -lxcb-glx -lxcb -lXxf86vm -ldrm -lm -lpthread -ldl -Wl,--end-group /usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: ../../auxiliary//libgallium.a(u_dl.o): undefined reference to symbol 'dlopen@@GLIBC_2.1' /usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: note: 'dlopen@@GLIBC_2.1' is defined in DSO /usr/lib/libdl.so so try adding it to the linker command line /usr/lib/libdl.so: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status gmake[4]: *** [lp_test_blend] Error 1 gmake[4]: *** Waiting for unfinished jobs.... gmake[4]: Leaving directory `/home/abuild/rpmbuild/BUILD/mesa/src/gallium/drivers/llvmpipe' gmake[3]: *** [all-recursive] Error 1 gmake[3]: Leaving directory `/home/abuild/rpmbuild/BUILD/mesa/src/gallium/drivers' gmake[2]: *** [default] Error 1 gmake[2]: Leaving directory `/home/abuild/rpmbuild/BUILD/mesa/src/gallium' make[1]: *** [subdirs] Error 1 make[1]: Leaving directory `/home/abuild/rpmbuild/BUILD/mesa/src' make: *** [default] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.wiHQfL (%build) I don't see how this commit changes anything. It seems this is a linking bug, that was always there, but latent. And this commit simply slightly changed the order that symbols are linked. -ldl is being passed to the linker, so I don't see why it dlopen symbol is not found. I read from another change that SUSE defauls to building LLVM with clang, may be that's related. (In reply to comment #2) > I don't see how this commit changes anything. > > It seems this is a linking bug, that was always there, but latent. And this > commit simply slightly changed the order that symbols are linked. > > -ldl is being passed to the linker, so I don't see why it dlopen symbol is not > found. > > I read from another change that SUSE defauls to building LLVM with clang, may > be that's related. But with the same version of llvm mesa master before Wed Apr 18 build without problem, after Wed Apr 18 fails with --with--llvm-shared-libs. There must be a reason. *** This bug has been marked as a duplicate of bug 52167 *** Unduplicate: this is fixed, while #52167 still not. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.