D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 5083 - module object cannot read file 'object.d'
Summary: module object cannot read file 'object.d'
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Linux
: P2 blocker
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-20 03:29 UTC by Andy Elvey
Modified: 2012-02-10 21:46 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Andy Elvey 2010-10-20 03:29:56 UTC
This problem has been reported before, but I am reporting it again - it *really* needs to be fixed. I'm using Ubuntu 10.04.   

I originally mentioned this problem on the D mailing-list here - 
http://www.mail-archive.com/digitalmars-d-learn@puremagic.com/msg07626.html

I've tried installing D three ways - 
* Using the .deb file from Digital Mars. This seemed to install fine, but I got the "cannot read file object.d" when I tried to compile a simple program. 

* Running "linux.mak" in the /src directory. Same error. 

* Using the ddebber tool. Seemed to install fine, but the same error again. 

The problem seems to be with the dmd.conf file, but the end-result is that the install does not work "out-of-the-box". Knowing where the problem seems to be is one thing - fixing it is quite another.  

An aside - it would be a *great deal of help* if the install process created a log that you could refer to afterwards. 
 
I'm not a complete newbie. I've compiled and installed many applications in my years on Linux, but few have given me as many problems as D. Even GHC (Haskell) 
which is a BIG application, installs and runs flawlessly. 

This problem is disappointing. I still believe that D is a great language, but problems like this *really* need to be fixed for it to gain more users.     
- Andy
Comment 1 Andy Elvey 2010-11-08 22:19:38 UTC
** Update - 9th Nov 2010 ** 
I've just installed dmd 2.050 (using the one-click .deb package from dmd). 

The install went fine. However, when I type "dmd -v" at the terminal, this is what I get - 

andy@obsidian:~$ dmd -v
binary    dmd
version   v2.050
config    dmd.conf
parse     import
Error: cannot read file ...@p/../../src/druntime/import.d
andy@obsidian:~$  

So it looks like the file import.d can't be found. (I did a search for it and that failed to find it too). If someone can let me know which directory it should be in, that would be good. 

When I try to compile a very simple D program, I get the same error - 

dmd -w -c "hello.d" (in directory: /home/andy/d_stuff)
Compilation failed.
Error: cannot read file ...@p/../../src/druntime/import.d

I hope this may be of some help.  At least the previous problem with the object.d file seems to have gone (to be replaced with another problem, unfortunately..). 

I am **really keen** to get dmd installed on my PC, so I'll do all that I can to help with getting this problem fixed.
Comment 2 Walter Bright 2012-01-19 14:03:32 UTC
I cannot reproduce anything like what you're experiencing.
Comment 3 yebblies 2012-02-10 21:46:03 UTC
This sounds like a setup issue, not a problem with the compiler or the deb.  Please reopen if anyone can reproduce with a recent version of the compiler/installer.