[LLVMdev] libstdc++.a with current CVS version

Chris Lattner sabre at nondot.org
Sat Apr 16 07:58:24 PDT 2005

On Sat, 16 Apr 2005, Markus F.X.J. Oberhumer wrote:

> I have troubles with a freshly built CVS toolchain when linking a C++ program 
> with -Wl,-native:
> gccld: error: Cannot link in module 
> '/media/sda3/opt/cc-i386-linux/llvm/llvm-1.4.20050416-i386-linux/cfrontend/bin/../lib/gcc/i386-pc-linux-gnu/3.4-llvm/../../../libstdc++.a(allocator-inst.o)': 
> Linking globals named '_ZN16__Atomicity_lockILi0EE17_S_atomicity_lockE': 
> symbol multiply defined!
> Does this sound familiar ?

Yes, this is PR480:

if you remove the explicit instantiations of __Atomicity_lock from the 
beginning of libstdc++-v3/config/cpu/i386/atomicity.h (or whichever cpu 
you're using), it should work around this problem.



More information about the llvm-dev mailing list