Building with dub fails on Ubuntu 16.10.

moe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Dec 3 08:19:47 PST 2016


On Saturday, 3 December 2016 at 16:07:47 UTC, moe wrote:
> On Sunday, 11 September 2016 at 02:17:21 UTC, Vlasov Roman 
> wrote:
>> Hello, guys.
>> I tried to build HelloWorld with dub, but i got strange linker 
>> error:
>>
>> [...]
>
>
> I just switched from Windows to linux (arch) and got the exact 
> same problem. Did you resolve this yet? I'm not very 
> experienced with development on linux any hint here would be 
> welcome.

Never mind, I just found in the arch-wiki that on arch dmd and 
libphobos are build without PIC support. Which seams to be 
causing the problem. The easiest way is to compile using clang 
instead.

CC=/usr/bin/clang dub

Alternatively get gdc with PIC support.

Sorry for the necromancy. I have been searching for a solution 
for a couple hours. Did not expect to find something shortly 
after posting...


More information about the Digitalmars-d-learn mailing list