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:
http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=480
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.
-Chris
--
http://nondot.org/sabre/
http://llvm.cs.uiuc.edu/