Summary: | lp_bld_debug.cpp:141: undefined reference to `llvm::sys::getProcessTriple()' | ||
---|---|---|---|
Product: | Mesa | Reporter: | Vinson Lee <vlee> |
Component: | Mesa core | Assignee: | mesa-dev |
Status: | RESOLVED NOTOURBUG | QA Contact: | mesa-dev |
Severity: | normal | ||
Priority: | medium | CC: | jfonseca, tstellar |
Version: | git | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Vinson Lee
2015-10-23 03:29:40 UTC
Thanks Vinson. I can repro this on Ubuntu 15.10 doing CC=clang CXX=clang++ scons lp_test_arit If I do nm -u build/linux-x86_64-debug/gallium/auxiliary/gallivm/lp_bld_debug.os with G++ I get U _ZN4llvm3sys16getProcessTripleB5cxx11Ev where as with Clang I get _ZN4llvm3sys16getProcessTripleEv If I run both through c++filt I get with g++ U llvm::sys::getProcessTriple[abi:cxx11]() whereas with clang I get U llvm::sys::getProcessTriple() In other words, clang is not emitting cxx11 abi symbols, when g++ is. This seems to be a known problem: http://allanmcrae.com/2015/06/the-case-of-gcc-5-1-and-the-two-c-abis/ https://www.reddit.com/r/cpp/comments/3b2glr/why_clang_cant_use_the_new_gcc_5_cxx11_abi/ And there's even a LLVM/clang bug filed: https://llvm.org/bugs/show_bug.cgi?id=23529 |
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.