www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2164] New: Random Phobos Linux buildsystem feedback

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

           Summary: Random Phobos Linux buildsystem feedback
           Product: D
           Version: 2.015
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: lindevel gmx.net


Gentoo has to run these fixes to make dmd 2.015 compile correctly:


    fperms ug=rw `find . -type f`
    fperms ug=rwx `find . -type d`
    fperms ug=rwx bin/dmd bin/dumpobj bin/obj2asm bin/rdmd


    edos2unix `find . -name '*.c' -type f`
    edos2unix `find . -name '*.d' -type f`
    edos2unix `find . -name '*.ddoc' -type f`
    edos2unix `find . -name '*.h' -type f`
    edos2unix `find . -name '*.mak' -type f`
    edos2unix `find . -name '*.txt' -type f`


    sed -i \
        -e "s:DMD = .*:DMD = ${S}/bin/dmd:" \
        -e "s:CC = .*:CC = gcc -m32:" \
        -e "s:CFLAGS = .*:CFLAGS = ${CFLAGS}:" \
        `find . -name '*.mak' -type f`

${S} is the sourcecode directory. To make this work generically, I recommend to
either use a relative path, or a variable set to an absolute path. I.e.:

DMD = $(top_srcdir)/bin/dmd


-- 
Jun 23 2008
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2164






PS: The permission fixes are probably a packaging problem, while the line
endings may be a "personal" (or distribution dependend) preference.


-- 
Jun 23 2008
prev sibling next sibling parent reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2164







 PS: The permission fixes are probably a packaging problem, while the line
 endings may be a "personal" (or distribution dependend) preference.
Please hold off on the line termination thing; we're trying to find an automated way of maintaining those among people working on different OSs. I don't understand why the permission fixes are needed. On my system they ring properly. It looks like it's a gentoo thing. Could it be the unzip? --
Jun 23 2008
parent Don <nospam nospam.com.au> writes:
d-bugmail puremagic.com wrote:
 http://d.puremagic.com/issues/show_bug.cgi?id=2164
 Please hold off on the line termination thing; we're trying to find an
 automated way of maintaining those among people working on different OSs.
You can set up preferences in Subversion to automatically convert them. You need to set these values in the config file: (On TortoiseSVN, you reach it through the edit button on the settings:general pane) [miscellany] enable-auto-props = yes [auto-props] *.d = svn:eol-style=native *.ddoc = svn:eol-style=native
Jun 24 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2164






Seems like the permission fixes where once needed, but are not anymore.

Since you said line endings are in the works in another place, CFLAGS, DMD, etc
set on commandline will be respected in the future, and the 32bit issue has
been fixed by passing -m32 through CFLAGS to the linker, I guess this bug can
be closed?


-- 
Jun 29 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2164







 Seems like the permission fixes where once needed, but are not anymore.
I do not know what I looked for, but obviously it was the wrong thing. ;) At least fperms ug=rwx bin/dmd bin/dumpobj bin/obj2asm bin/rdmd is still needed. (All the executables lack the executable bit.) --
Jun 29 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2164






At least in 2.0.17 you override the environment supplied CFLAGS, i.e.:
CFLAGS := $(CFLAGS) -O

Flags which are not absolutely needed (like -O) should be included before the
environment CFLAGS, so that they can be overridden if desired.


-- 
Jul 22 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2164






I also noticed a bug in doc generation:
make: Entering directory
`/var/tmp/portage/dev-lang/dmd-bin-2.017/work/dmd/src/phobos'
make: *** No rule to make target `../web/phobos/phobos.html', needed by `html'.
 Stop.
make: Leaving directory
`/var/tmp/portage/dev-lang/dmd-bin-2.017/work/dmd/src/phobos'


-- 
Jul 22 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2164


Andrei Alexandrescu <andrei metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |andrei metalanguage.com
         AssignedTo|nobody puremagic.com        |andrei metalanguage.com


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 11 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2164


Lars T. Kyllingstad <bugzilla kyllingen.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
                 CC|                            |bugzilla kyllingen.net
         Resolution|                            |FIXED



02:04:08 PDT ---
As far as I can tell, these problems have been solved.  Please reopen if not.

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