[LLVMdev] lli unable to resolve symbol _ZNKSt3__16locale9use_facetERNS0_2idE in bitcode

Ashok Nalkund ashoknn at qualcomm.com
Mon May 21 14:46:39 PDT 2012


On 5/21/2012 11:15 AM, Nick Lewycky wrote:
> Ashok Nalkund wrote:
>> Resending, any pointers? I demangled the symbol and it turns out to be:
>> std::__1::locale::use_facet(std::__1::locale::id&) const
>
> My guess is that you've got a .bc file produced on a mac using libc++
> (hence the ::_1 part) and you're trying to run it on linux with
> libstdc++ (which doesn't use inline namespaces, the '::_1::' part). That
> won't work.
>
> Nick

Thanks for the clue. I had earlier tried to use libc++ and there were 
some remnants of that try. I've now cleaned up and now it gets past the 
use_facet error.

It now complains about '__dso_handle'. I saw a bug already reported but 
its status is still NEW:
http://llvm.org/bugs/show_bug.cgi?id=7847

As mentioned in the bug, the problem seems to be when the interpreter is 
used.

There is another post on cfe-dev list:
http://clang-developers.42468.n3.nabble.com/Configuring-HAVE-DSO-HANDLE-by-CMake-td3423707.html

Any thoughts?

thanks
ashok



More information about the llvm-dev mailing list