Thread overview
[Issue 4459] New: bad format - phobos/std/all.d - 2.047
Jul 14, 2010
Glenn Haecker
Aug 15, 2010
Glenn Haecker
[Issue 4459] bad format - phobos/std/all.d - 2.048
Sep 18, 2010
Glenn Haecker
[Issue 4459] bad format - phobos/std/all.d - 2.051
Jan 20, 2011
Glenn Haecker
Feb 19, 2011
Glenn Haecker
July 14, 2010
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


--- Comment #0 from Glenn Haecker <ghaecker@idworld.net> 2010-07-14 05:53:20 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: -------
August 15, 2010
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


--- Comment #1 from Glenn Haecker <ghaecker@idworld.net> 2010-08-15 03:38:05 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: -------
September 18, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4459



--- Comment #2 from Glenn Haecker <ghaecker@idworld.net> 2010-09-17 22:24:11 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 addreses the missing exception module cited it Issue #4646, but does not 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: -------
January 20, 2011
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


--- Comment #3 from Glenn Haecker <ghaecker@idworld.net> 2011-01-20 02:59:22 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: -------
February 19, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4459



--- Comment #4 from Glenn Haecker <ghaecker@idworld.net> 2011-02-19 00:16:20 PST ---
Same error in dmd 2.052

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