Summary: | Run-time link error in swrast_dri.so | ||
---|---|---|---|
Product: | Mesa | Reporter: | Andreas Hartmetz <ahartmetz> |
Component: | Other | Assignee: | mesa-dev |
Status: | RESOLVED DUPLICATE | QA Contact: | |
Severity: | major | ||
Priority: | medium | ||
Version: | git | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
See Also: | http://llvm.org/bugs/show_bug.cgi?id=14200 | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Andreas Hartmetz
2013-10-22 14:53:01 UTC
Similar thing here: (EE) AIGLX error: dlopen of /usr/lib64/dri/r600_dri.so failed (/usr/lib64/dri/r600_dri.so: undefined symbol: _ZTIN4llvm18format_object_baseE) (EE) AIGLX error: dlopen of /usr/lib64/dri/swrast_dri.so failed (/usr/lib64/dri/swrast_dri.so: undefined symbol: _ZTIN4llvm18format_object_baseE) % c++filt _ZTIN4llvm18format_object_baseE typeinfo for llvm::format_object_base Your patch to src/gallium/auxiliary/Makefile.am fixes the issue. Please note that: % llvm-config --cxxflags -I/usr/local/include -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wnon-virtual-dtor -O3 -DNDEBUG -pipe -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS doesn't include -fno-rtti for llvm 3.4 even when llvm was build without run-time type information (the default). did you use cmake to compile llvm? (In reply to comment #2) > did you use cmake to compile llvm? check this patch: http://www.mail-archive.com/mesa-dev@lists.freedesktop.org/msg45916.html The LLVM patch does the trick for me. With the patch, llvm-config --cxxflags output contains -fno-rtti (at the very end) and Mesa drivers radeonsi and swrast can be loaded. For completeness because I forgot to say it explicitly: Yes, I'm using cmake. Also hello LLVM, if anybody sees this... that patch is important. Marking this as a duplicate of 81785 which has a lot more information + including a link to the actual llvm/cmake fix. Now all we need is to convince the llvm people to actually push it (or equivalent fix of course) :P *** This bug has been marked as a duplicate of bug 81785 *** |
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.