www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Cannot compile program with DMD built from source

reply Minas Mina <minas_0 hotmail.co.uk> writes:
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
Mar 09 2016
next sibling parent Minas Mina <minas_0 hotmail.co.uk> writes:
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
Sorry I didn't explain well. All 3 components (DMD, druntime and phobos) were built successfully. The error I posted above is when trying to compile this code: import std.stdio; import std.experimental.logger; void main() { auto logger = new FileLogger("log"); logger.info("test"); }
Mar 09 2016
prev sibling parent Marc =?UTF-8?B?U2Now7x0eg==?= <schuetzm gmx.net> writes:
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
Mar 10 2016