Bug 4002 – dmd.conf and binary path in dmd -v output
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2010-03-24T14:43:00Z
Last change time
2015-06-09T01:31:15Z
Assigned to
nobody
Creator
moritzwarning
Comments
Comment #0 by moritzwarning — 2010-03-24T14:43:43Z
Users of mess up there system with wrong dmd.conf files and different dmd versions. DMDs lack of information results in lots of confusion.
It would be helpful if dmd could output the absolute path to the dmd binary and the used dmd.conf.
This kind output would be nice:
dmd main.d -v
Binary: /usr/bin/dmd
Config: /etc/dmd.conf
parse main
importall main
import object (object.d)
object.d: Error: module object cannot read file 'object.d'
Without the second line, it would be hard to figure out where dmd expects object.d.
Comment #1 by bugzilla — 2010-03-24T18:56:53Z
changeset 419
Comment #2 by moritzwarning — 2010-03-24T20:16:33Z
The path for the dmd binary path is not absolute (Ubuntu 32bit):
$dmd main.d -v
binary dmd
version v1.058
config /opt/dmd/bin/dmd.conf
parse main
importall main
import object (/opt/dmd/bin/../import/object.di)
[..]
The necessary code should be in inifile.c.
DMD needs to look for the dmd.conf at the same place the dmd binary is.
Thanks!