Warning about direct access to weak symbols

Jacob Carlborg doob at me.com
Thu Jan 16 15:58:13 UTC 2020


On 2020-01-15 22:22, kinke wrote:

> Nope, they are definitely unexpected, although most likely not really 
> relevant at the moment either. You could try and see if recompiling 
> either with `-linkonce-templates` or `-fvisibility=hidden` gets rid of 
> them (for the latter, exclude the shared libs by setting the CMake var 
> BUILD_SHARED_LIBS=OFF).

`-linkonce-templates` gave a bunch of linker errors (missing symbols, 
see below). `-fvisibility=hidden` worked, thanks.




__D4core10checkedint__T4adduZQgFNaNbNiNfmmKbZm", referenced from:
 
__D4core8demangle__T8DemangleTSQBcQBa15reencodeMangledFNaNbNfAxaZ12PrependHooksZQCi12decodeNumberMFNaNfQBqZm 
in demangle.o
 
__D4core8demangle__T8DemangleTSQBcQBa7NoHooksZQBa12decodeNumberMFNaNfAxaZm 
in demangle.o
 
__D2rt8lifetime21__setArrayAllocLengthFNaNbKS4core6memory8BlkInfo_mbxC8TypeInfomZb 
in lifetime.o
 
__D2rt8lifetime12__arrayAllocFNaNbmxC8TypeInfoxQlZS4core6memory8BlkInfo_ 
in lifetime.o
 
__D2rt8lifetime12__arrayAllocFmKS4core6memory8BlkInfo_xC8TypeInfoxQlZQBl 
in lifetime.o
 
__D2rt4util9container5array__T5ArrayTS4core2gc11gcinterface4RootZQBj__T10insertBackZQnMFNbNiQCdZv 
in array.o
 
__D2rt4util9container5array__T5ArrayTS4core2gc11gcinterface5RangeZQBk__T10insertBackZQnMFNbNiQCeZv 
in array.o

And a bunch more.

-- 
/Jacob Carlborg


More information about the digitalmars-d-ldc mailing list