Thread overview
Cannot compile program with DMD built from source
Mar 09, 2016
Minas Mina
Mar 09, 2016
Minas Mina
Mar 10, 2016
Marc Schütz
March 09, 2016
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
March 09, 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

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");
}
March 10, 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