Thread overview
[Issue 2476] New: std.stdio fails to compile
Nov 28, 2008
d-bugmail
Nov 28, 2008
d-bugmail
Dec 01, 2008
d-bugmail
Dec 03, 2008
d-bugmail
Dec 03, 2008
d-bugmail
Dec 03, 2008
d-bugmail
Dec 04, 2008
d-bugmail
Dec 06, 2008
d-bugmail
Aug 08, 2009
Brad Roberts
November 28, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2476

           Summary: std.stdio fails to compile
           Product: D
           Version: 2.021
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: regression
          Priority: P1
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: jlquinn@optonline.net


Any program fails to compile as below if I import std.stdio.  2.020 worked.

-*- mode: compilation; default-directory: "~/d/" -*- Compilation started at Fri Nov 28 01:13:37

~/dmd/bin/dmd junk1.d
/home/jlquinn/dmd/bin/../src/phobos/std/stdio.d(27): module memory cannot read
file 'core/memory.d'

Compilation exited abnormally with code 1 at Fri Nov 28 01:13:37


-- 

November 28, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2476


torhu@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |torhu@yahoo.com




------- Comment #1 from torhu@yahoo.com  2008-11-28 09:55 -------
Looks like dmd.conf isn't updated to include the import for druntime.  Try replacing the default DFLAGS line with this one:

DFLAGS=-I%@P%/../src/phobos -I%@P%/../src/runtime/import -L-L%@P%/../lib


-- 

December 01, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2476





------- Comment #2 from jlquinn@optonline.net  2008-12-01 10:04 -------
(In reply to comment #1)
> Looks like dmd.conf isn't updated to include the import for druntime.  Try replacing the default DFLAGS line with this one:
> 
> DFLAGS=-I%@P%/../src/phobos -I%@P%/../src/runtime/import -L-L%@P%/../lib
> 

DFLAGS=-I%@P%/../src/phobos -I%@P%/../src/druntime/import -L-L%@P%/../lib
------------------------------------------^

Thanks for the tip.  That fixes it.


-- 

December 03, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2476





------- Comment #3 from torhu@yahoo.com  2008-12-03 00:34 -------
I think you want "runtime", not "druntime".  druntime is the old version that Walter that got left in there.


-- 

December 03, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2476





------- Comment #4 from jlquinn@optonline.net  2008-12-03 06:47 -------
(In reply to comment #3)
> I think you want "runtime", not "druntime".  druntime is the old version that Walter that got left in there.

druntime worked.  runtime did not.


-- 

December 03, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2476





------- Comment #5 from torhu@yahoo.com  2008-12-03 13:33 -------
runtime worked when I tried i on Windows.  If it doesn't work, then that's a bug.  What errors do you get?


-- 

December 04, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2476


torhu@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adolf.mathias@googlemail.com




------- Comment #6 from torhu@yahoo.com  2008-12-03 19:33 -------
*** Bug 2488 has been marked as a duplicate of this bug. ***


-- 

December 06, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2476





------- Comment #7 from jlquinn@optonline.net  2008-12-06 13:05 -------
(In reply to comment #5)
> runtime worked when I tried i on Windows.  If it doesn't work, then that's a bug.  What errors do you get?

I get the same error as with the unmodified dmd.conf:

-*- mode: compilation; default-directory: "~/d/" -*- Compilation started at Sat Dec  6 14:04:27

~/dmd/bin/dmd Junk.d
/home/jlquinn/dmd/bin/../src/phobos/std/stdio.d(27): module memory cannot read
file 'core/memory.d'

Compilation exited abnormally with code 1 at Sat Dec  6 14:04:27


-- 

August 08, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2476


Brad Roberts <braddr@puremagic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |braddr@puremagic.com
         Resolution|                            |FIXED




--- Comment #8 from Brad Roberts <braddr@puremagic.com>  2009-08-08 12:59:11 PDT ---
dmd.conf was fixed to include druntime's path long ago.  Marking resolved. Please reopen with a complete description of the current problem if there's anything left to do here.

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