bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/14342] [gold] symbol 'std::__once_callable' used as both __thr


From: ccoutant at google dot com
Subject: [Bug gold/14342] [gold] symbol 'std::__once_callable' used as both __thread and non-__thread
Date: Mon, 12 Aug 2013 17:37:46 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=14342

--- Comment #2 from Cary Coutant <ccoutant at google dot com> ---
> This problem now reprduce with mainline GCC indirect call profiling test
> gcc.dg/tree-prof/crossmodule-indircall-1.c:
>
> evans:/abuild/jh/trunk-3/build-inst11-check/gcc/:[2]# ./xgcc -B ./ -O3 -flto
> -fprofile-generate
> ../../gcc/testsuite/gcc.dg/tree-prof/crossmodule-indircall-1*.c --save-temps
> /abuild/jh/trunk-install/x86_64-unknown-linux-gnu/bin/ld:
> crossmodule-indircall-1.o: previous definition here
> /abuild/jh/trunk-install/x86_64-unknown-linux-gnu/bin/ld: error:
> ./libgcov.a(_gcov_indirect_call_profiler.o): symbol
> '__gcov_indirect_call_callee' used as both __thread and non-__thread
> /abuild/jh/trunk-install/x86_64-unknown-linux-gnu/bin/ld:
> crossmodule-indircall-1.o: previous definition here

I get:

.../gold/ld-new: error: crossmodule-indircall-1.o: multiple definition of
'main'
.../gold/ld-new: crossmodule-indircall-1a.o: previous definition here

If I add -DDOJOB=1 to the command line, though, it works for me.

Are you using a recent version of gold? I think the TLS problem should
have been fixed with this patch:

    http://sourceware.org/ml/binutils/2013-06/msg00139.html

-cary

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]