www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3153] New: win32.mak tries to copy phobos.lib, gcstub.obj to nonexistent folder lib

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

           Summary: win32.mak tries to copy phobos.lib, gcstub.obj to
                    nonexistent folder lib
           Product: D
           Version: 2.025
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: patch
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: lio+bugzilla lunesu.com


Created an attachment (id=416)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=416)
fixes the destination path to the new location: windows\lib

Since 2.025, the dmd zip contained an extensionless file "lib". This is because
the directory structure was changed but some commands in win32.mak were not
fixed: the 'install' target still copies files to the "lib" folder, but because
the folder doesn't it exist, the copy commands assumes the target "lib" is a
file.

The attached patch fixes the destination path to the new location: windows\lib

(Note: even after fixing the destination paths, "make -fwin32.mak install"
still fails on my computer because it cannot find ..\druntime\lib\gcstub.obj)

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





--- Comment #1 from Sobirari Muhomori <maxmo pochta.ru>  2009-07-08 01:51:30
PDT ---
To make sure that destination is a folder it must have trailing slash:
---
$(CP) phobos.lib $(DIR)\windows\lib\
---

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





--- Comment #2 from Lionello Lunesu <lio+bugzilla lunesu.com>  2009-07-08
02:02:19 PDT ---
(In reply to comment #1)
 To make sure that destination is a folder it must have trailing slash:
 ---
 $(CP) phobos.lib $(DIR)\windows\lib\
 ---

I tried it, it doesn't work. I think it doesn't work because in the makefile a line ending in a backslash is extended to include the next line, similar to C/C++. This is unfortunate for a makefile where there are plenty of paths :) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 08 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3153





--- Comment #3 from Sobirari Muhomori <maxmo pochta.ru>  2009-07-08 02:29:37
PDT ---
---
$(CP) phobos.lib $(DIR)\windows\lib\*
---

:)

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


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED




--- Comment #4 from Walter Bright <bugzilla digitalmars.com>  2009-09-03
13:40:34 PDT ---
Fixed dmd 2.032

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