Linker error while building phobos on linux on a fresh system
Dicebot via Digitalmars-d
digitalmars-d at puremagic.com
Mon Aug 25 16:26:39 PDT 2014
On Monday, 25 August 2014 at 22:46:37 UTC, Andrei Alexandrescu
wrote:
> On 8/25/14, 3:37 PM, Andrei Alexandrescu wrote:
>> Wonder what I'm doing wrong. I ran "git pull --ff-only origin
>> master" in
>> dmd, druntime, and phobos. Built dmd -> fine. Built druntime
>> -> fine.
>> Ran "make -f posix.mak" for phobos, got:
>>
>> /usr/bin/ld: cannot find -lphobos2
>
> Argh, I had an old ~/dmd.conf. I've mentioned this before: our
> build process should override all user options and only use its
> own artifacts. I sent a diff a while ago adding an empty
> dmd.conf to phobos/, but there was backlash about it that I
> find unjustified.
>
> Andrei
It needs to be fixed on DMD side and not via Phobos workarounds
in my opinion. For example, by ignoring -defaultlib flag if it
can't be found and trying to link anyway.
More information about the Digitalmars-d
mailing list