https://issues.dlang.org/show_bug.cgi?id=18073
Issue ID: 18073
Summary: rdmd --eval 'int main() {return 0;}' fails to find
'std/stdiobase.d'
Product: D
Version: D2
Hardware: x86_64
OS: Mac OS X
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
-> % rdmd --eval='int main(){return 0;}'
/var/folders/fl/dlgpvpw561lcqnclcdb77db40000gn/T/.rdmd-501/eval.00EB275FC29897B1554AA0752DCA3984.d(13):
Error: module stdiobase is in file 'std/stdiobase.d' which cannot be read
import path[0] = /var/folders/fl/dlgpvpw561lcqnclcdb77db40000gn/T/.rdmd-501
import path[1] = /Library/D/dmd/src/phobos
import path[2] = /Library/D/dmd/src/druntime/import
Failed: ["dmd", "-d", "-v", "-o-",
"/var/folders/fl/dlgpvpw561lcqnclcdb77db40000gn/T/.rdmd-501/eval.00EB275FC29897B1554AA0752DCA3984.d",
"-I/var/folders/fl/dlgpvpw561lcqnclcdb77db40000gn/T/.rdmd-501"]
This is both on OSX and linux (ubuntu).
dmd v2.075.1
rdmd build 20170810
--