Thread overview
[Issue 5083] New: module object cannot read file 'object.d'
Oct 20, 2010
Andy Elvey
Nov 09, 2010
Andy Elvey
Jan 19, 2012
Walter Bright
Feb 11, 2012
yebblies
October 20, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5083

           Summary: module object cannot read file 'object.d'
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: andy.elvey@paradise.net.nz


--- Comment #0 from Andy Elvey <andy.elvey@paradise.net.nz> 2010-10-20 03:29:56 PDT ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 09, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5083



--- Comment #1 from Andy Elvey <andy.elvey@paradise.net.nz> 2010-11-08 22:19:38 PST ---
** 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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 19, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=5083


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com


--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2012-01-19 14:03:32 PST ---
I cannot reproduce anything like what you're experiencing.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 11, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=5083


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies@gmail.com
         Resolution|                            |WORKSFORME


--- Comment #3 from yebblies <yebblies@gmail.com> 2012-02-11 16:46:03 EST ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------