Summary: | Build Fails with LLVM | ||
---|---|---|---|
Product: | Mesa | Reporter: | Serkan Hosca <serkan> |
Component: | Drivers/Gallium/r600 | Assignee: | Default DRI bug account <dri-devel> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | andreas.boll.dev, johannesobermayr, lonewolf, niels_ole |
Version: | git | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
build log
Build libradeonllvm as static library |
Description
Serkan Hosca
2013-03-12 12:40:28 UTC
llvm build config: ./configure \ --prefix=/usr \ --libdir=/usr/lib/llvm \ --sysconfdir=/etc \ --enable-shared \ --enable-libffi \ --enable-targets=all \ --enable-optimized \ --enable-experimental-targets=R600 \ --disable-expensive-checks \ --with-binutils-include=/usr/include \ --enable-optimized No problems here building mesa b101a09 against llvm svn version 177821 . oops, i gave wrong commit number , it's git-712bac1 according to glxinfo. This is still an issue for me. I use an out-of-tree build for mesa (and build the shared llvm libraries with cmake), though. The problem seems to be that the build system picks the already installed libllvmradeon9.2.0.so (from /usr/lib64) instead of the one that has just been built. A workaround is to uninstall mesa before compiling and installing the new version. Created attachment 77291 [details] [review] Build libradeonllvm as static library Does this patch help? (In reply to comment #6) > Created attachment 77291 [details] [review] [review] > Build libradeonllvm as static library > > Does this patch help? Yes, the patch fixes the build I am against this sort of patches. Because autotools are stupid the second line should be the right attempt: libradeonsi_la_LDFLAGS = -Wl,--no-undefined -shared -avoid-version \ -L../radeon \ $(LLVM_LDFLAGS) (In reply to comment #8) > I am against this sort of patches. > Can you explain why? (In reply to comment #9) > (In reply to comment #8) > > I am against this sort of patches. > > > > Can you explain why? Because you are working against aboll and me - we want to build as much '-shared' as possible (and also distributions [should] want to do so): http://lists.freedesktop.org/archives/mesa-dev/2013-March/036449.html http://lists.freedesktop.org/archives/mesa-dev/2013-March/036493.html Also this statement is wrong: "This library was originally changed to a shared object to work around linker error in egl_static.so, but these appear to be fixed now." It was changed to be built '-shared' because there were and possibly be troubles with crashing egl things if r600 AND radeonsi were built together (see on #dri-devel from mid december 2012 [MrCooper, jobermayr]) You should also see the conditional there. If it makes sense and is required (r600 AND radeonsi) it is shared. If it doesn't (r600 XOR radeonsi) it is static. (In reply to comment #10) > (In reply to comment #9) > > (In reply to comment #8) > > > I am against this sort of patches. > > > > > > > Can you explain why? > > Because you are working against aboll and me - we want to build as much > '-shared' as possible (and also distributions [should] want to do so): > http://lists.freedesktop.org/archives/mesa-dev/2013-March/036449.html > http://lists.freedesktop.org/archives/mesa-dev/2013-March/036493.html > > Also this statement is wrong: > "This library was originally changed to a shared object to work around > linker error in egl_static.so, but these appear to be fixed now." > > It was changed to be built '-shared' because there were and possibly be > troubles with crashing egl things if r600 AND radeonsi were built together > (see on #dri-devel from mid december 2012 [MrCooper, jobermayr]) > > You should also see the conditional there. If it makes sense and is required > (r600 AND radeonsi) it is shared. If it doesn't (r600 XOR radeonsi) it is > static. I don't think I like the general idea here, for most distributions driver size doesn't matter so much, but on the other hand it is highly likely that we want to have different version of this and other libs for r600 and radeonsi. Christian. (In reply to comment #10) > Also this statement is wrong: > "This library was originally changed to a shared object to work around > linker error in egl_static.so, but these appear to be fixed now." > > It was changed to be built '-shared' because there were and possibly be > troubles with crashing egl things if r600 AND radeonsi were built together > (see on #dri-devel from mid december 2012 [MrCooper, jobermayr]) > > You should also see the conditional there. If it makes sense and is required > (r600 AND radeonsi) it is shared. If it doesn't (r600 XOR radeonsi) it is > static. "Please test to make sure this works for your build configuration. Tested-by: Michel Dänzer <michel.daenzer at amd.com>" @MrCooper: Can you confirm the runtime assertion issue has been fixed (radeon AND radeonsi)? http://people.freedesktop.org/~cbrill/dri-log/?channel=dri-devel&highlight_names=&date=2012-12-07 (In reply to comment #12) > @MrCooper: Can you confirm the runtime assertion issue has been fixed > (radeon AND radeonsi)? > http://people.freedesktop.org/~cbrill/dri-log/?channel=dri- > devel&highlight_names=&date=2012-12-07 Ah no, I failed to test this properly. :( Thanks for the reminder Johannes. [ I read bug reports on the lists ] Fixed some time ago |
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.