Thread overview
[Issue 3457] New: rdmd fails silently in a particular setup where the compiler is not the expected
Oct 31, 2009
Leandro Lucarella
October 31, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3457

           Summary: rdmd fails silently in a particular setup where the
                    compiler is not the expected
           Product: D
           Version: 1.051
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: llucax@gmail.com


--- Comment #0 from Leandro Lucarella <llucax@gmail.com> 2009-10-30 18:05:26 PDT ---
I have a set up with both DMD1 and DMD2. I call the binary for DMD1 dmd and the binary for DMD2 dmd2. When running rdmd2 (rdmd for DMD2 ;) it returns 1 to the OS and nothing happens. The problem seems to be rdmd2 is trying to use dmd as the compiler and it fails to include some D2 specific file:

$ rdmd2 --chatty ./buildit.d
chdir '.' && dmd  -v -o- './buildit.d' >./buildit.d.deps
$ echo $?
1
$ dmd -v -o- ./buildit.d
parse     buildit
semantic  buildit
import    object    (/home/luca/tesis/dmd/linux/bin/../../include/object.di)
import    std.path    (std/path.d)
./buildit.d(3): module path cannot read file 'std/path.d'

I know this is a weird setup, and that it's OK that rdmd fails, but it would be
helpful to have some indication about what happened, like:
Failed to execute: dmd  -v -o- './buildit.d' >./buildit.d.deps

The weird thing is when using dmd2, if the compilation fails, rdmd shows the dmd error messages perfectly, so I don't know why it's eating the error messages using DMD1 as the compiler.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 09, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=3457


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: -------
June 05, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=3457


Andrei Alexandrescu <andrei@metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


--- Comment #1 from Andrei Alexandrescu <andrei@metalanguage.com> 2011-06-05 08:56:50 PDT ---
This is a bug in dmd; it doesn't print that particular error message to stderr, it prints it to stdout. I submitted a bug report to dmd and wrote a workaround in rdmd.

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