Re: Homebuilt dmd fails to link my dub application

2018-03-26 Thread Nordlöw via Digitalmars-d-learn
On Monday, 26 March 2018 at 10:57:28 UTC, Seb wrote: It doesn't add -noboundscheck by default. Typically the Makefiles allow passing an initial DFLAG variable, but that one doesn't seem to allow it, so I just submitted a PR to do so (https://github.com/dlang/dmd/pull/8089). With this PR you

Re: Homebuilt dmd fails to link my dub application

2018-03-26 Thread Seb via Digitalmars-d-learn
On Monday, 26 March 2018 at 10:01:38 UTC, Nordlöw wrote: On Sunday, 25 March 2018 at 20:35:01 UTC, Seb wrote: For building everything locally, it should be as easy as: --- git clone https://github.com/dlang/dmd git clone https://github.com/dlang/druntime git clone

Re: Homebuilt dmd fails to link my dub application

2018-03-26 Thread Nordlöw via Digitalmars-d-learn
On Sunday, 25 March 2018 at 20:35:01 UTC, Seb wrote: For building everything locally, it should be as easy as: --- git clone https://github.com/dlang/dmd git clone https://github.com/dlang/druntime git clone https://github.com/dlang/phobos cd phobos && make -f posix.mak -j10 How do I build a

Re: Homebuilt dmd fails to link my dub application

2018-03-25 Thread Seb via Digitalmars-d-learn
On Sunday, 25 March 2018 at 20:26:22 UTC, Nordlöw wrote: On Sunday, 25 March 2018 at 18:43:09 UTC, Seb wrote: 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) No, I have my own build script for

Re: Homebuilt dmd fails to link my dub application

2018-03-25 Thread Nordlöw via Digitalmars-d-learn
On Sunday, 25 March 2018 at 18:43:09 UTC, Seb wrote: 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) No, I have my own build script for dmd, though because I can't get Digger to work either.

Re: Homebuilt dmd fails to link my dub application

2018-03-25 Thread Seb via Digitalmars-d-learn
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

Re: Homebuilt dmd fails to link my dub application

2018-03-25 Thread rikki cattermole via Digitalmars-d-learn
On 26/03/2018 1:05 AM, 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

Homebuilt dmd fails to link my dub application

2018-03-25 Thread Nordlöw via Digitalmars-d-learn
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;