Homebuilt dmd fails to link my dub application

Seb seb at wilzba.ch
Sun Mar 25 18:43:09 UTC 2018


On Sunday, 25 March 2018 at 12:05:32 UTC, Nordlöw wrote:
> If my homebuilt dmd fails to build my dub project with message
>
> /usr/bin/ld: error: 
> .dub/build/application-unittest-linux.posix-x86_64-dmd_2079-C9019ECA621321CC168B385F53D82831/knetquery.o: requires dynamic R_X86_64_32 reloc against '_D6object9Throwable7__ClassZ' which may overflow at runtime; recompile with -fPIC
>
> what have I done wrong?
>
> Where should I add the -fPIC switch?

Are you on a 32-bit system?
(For 64-bit -fPIC is the default since 2.072.2 - though DMD's 
build scripts were only updated a few releases later)


More information about the Digitalmars-d-learn mailing list