www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4459] New: bad format - phobos/std/all.d - 2.047

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4459

           Summary: bad format - phobos/std/all.d - 2.047
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: ghaecker idworld.net



PDT ---
I found the following issues with std/all.d

1. contains literal '\n' strings instead of actual linefeeds.
2. import statements use '/' instead of '.' (e.g., std/conv instead of
std.conv)
3. lists itself as an import.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 14 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4459


Glenn Haecker <ghaecker idworld.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|Phobos                      |make
         AssignedTo|nobody puremagic.com        |bugzilla digitalmars.com



PDT ---
The issue I reported in 2.047 is still present in 2.048.

I tracked it down to src/phobos/linux.mak

This does not generate a usable all.d file:

std/all.d : $(MAKEFILE)
     echo module std.all\;\\n \
        $(addprefix public import ,$(addsuffix \;\\n,$(STD_MODULES))) | \
        sed -e 's|/|.|' -e '/public import std\.all/d' >$ 


bash and compatibles require the -e option with echo to process escaped
characters.  

Adding -e, this generates the expected result:

std/all.d : $(MAKEFILE)
     echo -e module std.all\;\\n \
        $(addprefix public import ,$(addsuffix \;\\n,$(STD_MODULES))) | \
        sed -e 's|/|.|' -e '/public import std\.all/d' >$ 


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 15 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4459




PDT ---
Created an attachment (id=760)
patch for dmd-2.049 src/phobos/linux.mak

This patch is the minimal update needed to build libphobos2.a for dmd 2.049 on
my linux box.  It fixes the format problem with std.all.d and also partially

address the other missing module names in the definition of STD_MODULES.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 17 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4459


Glenn Haecker <ghaecker idworld.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|bad format -                |bad format -
                   |phobos/std/all.d - 2.048    |phobos/std/all.d - 2.051



PST ---
Still broken in 2.051

Surely I'm not the only one building phobos on linux.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 20 2011
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4459




PST ---
Same error in dmd 2.052

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