www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10229] New: RDMD: --compiler flag doesn't work properly when not adding .exe on win32

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

           Summary: RDMD: --compiler flag doesn't work properly when not
                    adding .exe on win32
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: andrej.mitrovich gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-06-01
08:00:12 PDT ---
While trying to use "dmd_msc" as the compiler (DMD built with Visual Studio):

test.d:
-----
module test;

import std.stdio;

unittest
{
    assert(0);
}

void main()
{
    writeln("here");
}
-----

$ rdmd --chatty --force -unittest --compiler=dmd_msc test.d

It then spits out these and just exits:

-----
stat C:\Users\ADMINI~1\AppData\Local\Temp\.rdmd
stat
C:\Users\ADMINI~1\AppData\Local\Temp\.rdmd\rdmd-test.d-1648EF87D7393B7077F5EA9F7EC96F7F
"dmd_msc" "-v" "-o-" "test.d" "-I."
read
C:\Users\ADMINI~1\AppData\Local\Temp\.rdmd\rdmd-test.d-1648EF87D7393B7077F5EA9F7EC96F7F\rdmd.deps
stat C:\Windows\System32\dmd_msc
stat F:\path\dmd_msc
stat C:\Program Files (x86)\Windows Resource Kits\Tools\dmd_msc
stat %SystemRoot%\system32\dmd_msc
stat %SystemRoot%\dmd_msc
stat %SystemRoot%\System32\Wbem\dmd_msc
stat %SYSTEMROOT%\System32\WindowsPowerShell\v1.0\dmd_msc
stat C:\Program Files\Microsoft Windows Performance Toolkit\dmd_msc
stat C:\Program Files (x86)\Gtk-Runtime\bin\dmd_msc
stat C:\Program Files (x86)\GtkSharp\2.12\bin\dmd_msc
stat C:\Program Files (x86)\dub\dmd_msc
stat C:\dmd-git\dmd2\src\dmd_msc
stat C:\Program Files (x86)\FLAC\dmd_msc
stat C:\dmd-git\dmd2\windows\bin\dmd_msc
stat C:\DMD\dmd2\windows\bin\dmd_msc
stat C:\dm\bin\dmd_msc
stat C:\MinGW\bin\dmd_msc
stat D:\Apps\Console2\dmd_msc
stat D:\Program Files\GnuWin32\bin\dmd_msc
stat C:\Program Files (x86)\IrfanView\dmd_msc
-----

But if I add an .exe extension, it will work:

$ rdmd --chatty --force --compiler=dmd_msc.exe test.d

-----
stat C:\Users\ADMINI~1\AppData\Local\Temp\.rdmd
stat
C:\Users\ADMINI~1\AppData\Local\Temp\.rdmd\rdmd-test.d-4480389CE04A3C961E500FA1600300A5
"dmd_msc.exe" "-unittest" "-v" "-o-" "test.d" "-I."
read
C:\Users\ADMINI~1\AppData\Local\Temp\.rdmd\rdmd-test.d-4480389CE04A3C961E500FA1600300A5\rdmd.dep
s
stat C:\Windows\System32\dmd_msc.exe
stat F:\path\dmd_msc.exe
stat C:\Program Files (x86)\Windows Resource Kits\Tools\dmd_msc.exe
stat %SystemRoot%\system32\dmd_msc.exe
stat %SystemRoot%\dmd_msc.exe
stat %SystemRoot%\System32\Wbem\dmd_msc.exe
stat %SYSTEMROOT%\System32\WindowsPowerShell\v1.0\dmd_msc.exe
stat C:\Program Files\Microsoft Windows Performance Toolkit\dmd_msc.exe
stat C:\Program Files (x86)\Gtk-Runtime\bin\dmd_msc.exe
stat C:\Program Files (x86)\GtkSharp\2.12\bin\dmd_msc.exe
stat C:\Program Files (x86)\dub\dmd_msc.exe
stat C:\dmd-git\dmd2\src\dmd_msc.exe
stat C:\Program Files (x86)\FLAC\dmd_msc.exe
stat C:\dmd-git\dmd2\windows\bin\dmd_msc.exe
"dmd_msc.exe" "-unittest"
"-ofC:\Users\ADMINI~1\AppData\Local\Temp\.rdmd\rdmd-test.d-4480389CE04A3C96
1E500FA1600300A5\test.exe"
"-odC:\Users\ADMINI~1\AppData\Local\Temp\.rdmd\rdmd-test.d-4480389CE04A3C9
61E500FA1600300A5\objs" "-I." "test.d"
stat
C:\Users\ADMINI~1\AppData\Local\Temp\.rdmd\rdmd-test.d-4480389CE04A3C961E500FA1600300A5\objs
rmdirRecurse
C:\Users\ADMINI~1\AppData\Local\Temp\.rdmd\rdmd-test.d-4480389CE04A3C961E500FA1600300A5\
objs
"C:\Users\ADMINI~1\AppData\Local\Temp\.rdmd\rdmd-test.d-4480389CE04A3C961E500FA1600300A5\test.exe"
core.exception.AssertError test(7): unittest failure
----------------
0x0040914D
0x0040201A
0x0040B38F
0x00407271
0x00405B00
0x74F933CA in BaseThreadInitThunk
0x773E9ED2 in RtlInitializeExceptionChain
0x773E9EA5 in RtlInitializeExceptionChain

C:\dev\code\d_code>
-----

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 01 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10229


Nils <nilsbossung googlemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nilsbossung googlemail.com


--- Comment #1 from Nils <nilsbossung googlemail.com> 2013-06-06 16:15:25 PDT
---
Could your rdmd be out of date? Sounds like this should have fixed the issue:
https://github.com/D-Programming-Language/tools/commit/d259d8dc1ebf7376b20a69461ad87e578611480f

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 06 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10229


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME


--- Comment #2 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-06-06
16:18:24 PDT ---
(In reply to comment #1)
 Could your rdmd be out of date? Sounds like this should have fixed the issue:
 https://github.com/D-Programming-Language/tools/commit/d259d8dc1ebf7376b20a69461ad87e578611480f
Thanks, it does! -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 06 2013