Comment #0 by adolf.mathias — 2008-12-02T13:45:29Z
All attempts to compile valid D files that worked with previous versions fail with D 2.021 under Linux (Ubuntu 8.10) with the message
object.d: module object cannot read file 'object.d'
Comment #1 by schveiguy — 2008-12-02T14:39:01Z
This is an installation issue, not a bug. What is happening is the compiler can't find the object.di file which contains the base Object code. You should pay careful attention to the installation instructions at digitalmars.com, and if you still have issues, ask questions on IRC or on the digitalmars newsgroup here: http://www.digitalmars.com/webnews/newsgroups.php?search_txt=&group=digitalmars.D.learn
Comment #3 by adolf.mathias — 2008-12-03T01:33:43Z
Alright, the following change to dmd.conf did it.
DFLAGS=-I%@P%/../src/phobos -I%@P%/../src/druntime/import -L-L%@P%/../lib
I don't mind if that is necessary now while it wasn't before. It's just that the -I%@P%/../src/druntime/import isn't documented in the downloaded docs, nor in the installation doc under
http://www.digitalmars.com/d/2.0/dmd-linux.html
(I grep'ped for src/druntime through all the 2.021 tree, and paid careful attention to said web page.)
So I'd consider this a bug in the documentation and the default dmd.conf. But you're the boss...
Comment #4 by schveiguy — 2008-12-03T14:18:49Z
D'oh!
My bad, it seems that the latest install of d 2 does not have the path correctly in dmd.conf. I'll reopen for you.
I'm sorry for my knee-jerk reaction. The message you quote is quite common for folks who did not follow the install instructions correctly, or decided to move things around.
Comment #5 by torhu — 2008-12-03T19:33:55Z
*** This bug has been marked as a duplicate of 2476 ***