[Issue 3457] New: rdmd fails silently in a particular setup where the compiler is not the expected

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 30 18:05:26 PDT 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 at puremagic.com
        ReportedBy: llucax at gmail.com


--- Comment #0 from Leandro Lucarella <llucax at 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: -------


More information about the Digitalmars-d-bugs mailing list