Cannot compile program with DMD built from source

Marc Schütz via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Mar 10 01:42:45 PST 2016


On Wednesday, 9 March 2016 at 16:13:38 UTC, Minas Mina wrote:
> Hello, I have followed the instructions here 
> (http://wiki.dlang.org/Starting_as_a_Contributor#POSIX) to 
> install DMD, druntime and phobos from source.
>
> My platform is Ubuntu 15.10 x64.
>
> This is the error I get:
> http://pastebin.com/kWCv0ymn

It seems it tries to link against a wrong Phobos version. Try 
running dmd with the `-v`, it will output how it invokes the 
linker (usually starting with "cc"). Maybe you have to adjust 
your dmd.conf, or create one. I like to place a link to dmd in my 
~/bin directory (which is in $PATH), and put a dmd.conf next to 
it, so it's picked up automatically:

[Environment]

DFLAGS=-I/home/marc/d/phobos -I/home/marc/d/druntime/import 
-L-L/home/marc/d/phobos/generated/linux/release/64/ 
-L--no-warn-search-mismatch -L--export-dynamic



More information about the Digitalmars-d-learn mailing list