digitalmars.D.learn - Cannot compile program with DMD built from source
- Minas Mina (6/6) Mar 09 2016 Hello, I have followed the instructions here
- Minas Mina (11/17) Mar 09 2016 Sorry I didn't explain well. All 3 components (DMD, druntime and
- Marc =?UTF-8?B?U2Now7x0eg==?= (11/17) Mar 10 2016 It seems it tries to link against a wrong Phobos version. Try
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
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/kWCv0ymnSorry 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
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/kWCv0ymnIt 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