Bug 17880 – Build of dlang.org affected by presence of ~/dmd.conf

Status
NEW
Severity
normal
Priority
P3
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2017-10-06T01:57:58Z
Last change time
2024-12-15T15:24:17Z
Assigned to
No Owner
Creator
Andrei Alexandrescu
Moved to GitHub: dlang.org#3965 →

Comments

Comment #0 by andrei — 2017-10-06T01:57:58Z
To reproduce, create an empty file ~/dmd.conf and attempt to build dlang.org: $ touch ~/dmd.conf $ cd /path/to/dlang.org $ make -f posix.mak ... .generated/stable_dmd-2.072.2/dmd2/linux/bin64/dub build --single --compiler=.generated/stable_dmd-2.072.2/dmd2/linux/bin64/dmd assert_writeln_magic.d Failed to invoke the compiler .generated/stable_dmd-2.072.2/dmd2/linux/bin64/dmd to determine the build platform: Error: cannot find source code for runtime library file 'object.d' dmd might not be correctly installed. Run 'dmd -man' for installation instructions. config file: /home/andrei/dmd.conf Specify path to file 'object.d' with -I switch When dmd.conf contains (as is often the case) paths to some working directories, the error messages become correspondingly more confusing. When dub takes the --compiler switch, it should invoke the compiler with the config found in its own path.
Comment #1 by robert.schadek — 2024-12-15T15:24:17Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dlang.org/issues/3965 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB