Login | Register
My pages Projects Community openCollabNet

Discussions > Notification of Issues > [Issue 2881] New - scons cannot compile d code on windows

Project highlights:

14 Nov 2017: Release 3.0.1 is now available at the download page.

18 Sep 2017: Release 3.0.0 is now available at the download page.

03 Nov 2016: Release 2.5.1 is now available at the download page.

scons
Discussion topic

Back to topic list

[Issue 2881] New - scons cannot compile d code on windows

Author ariovistus
Full name Ariovistus
Date 2012-11-12 18:31:43 PST
Message http://scons.tigris.​org/issues/show_bug.​cgi?id=2881
                 Issue #|2881
                 Summary|scons cannot compile d code on windows
               Component|scons
                 Version|SVN
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P4
            Subcomponent|scons
             Assigned to|russel
             Reported by|ariovistus






------- Additional comments from ariovistus at tigris dot org Mon Nov 12 18:31:42 -0800 2012 -------
Simple example:

SConstruct:
Program("test",["test.d"])
test.d:
void main() {}

> scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
I. -c -oftest.o test.d
sh: I.: command not found
oftest.exe test.o
sh: oftest.exe: command not found
scons: done building targets.

The problem is scons can't find a d compiler, even if one exists in %PATH%.

In SCons/Tool/dmd.py:
env.Detect(['dmd','gdmd']) returns None.
dmd exists in %PATH%; but scons doesn't look there for some reason.
Scons.Util.WhereIs gets passed "C:\Windows\System32", which is not where dmd is.

Apparently, the environment path needs to be fiddled with like what is done in
SCons/Tool/MSCommon/​vc.py:msvc_setup_env​.

On linux, WhereIs gets passed "/usr/local/bin:/opt​/bin:/bin:/usr/bin",​ so it
could suffer the same problem.

« Previous message in topic | 1 of 10 | Next message in topic »

Messages

Show all messages in topic

[Issue 2881] New - scons cannot compile d code on windows ariovistus Ariovistus 2012-11-12 18:31:43 PST
     [Issue 2881] scons cannot compile d code on windows dirkbaechle Dirk Baechle 2012-11-13 00:04:36 PST
         RE: [Issue 2881] scons cannot compile d code on windows egust eGust 2013-02-03 10:10:11 PST
             Re: [Issue 2881] scons cannot compile d code on windows bdbaddog William Deegan 2013-02-03 21:13:24 PST
     [Issue 2881] scons cannot compile d code on windows russel Russel Winder 2012-11-13 01:17:51 PST
     [Issue 2881] scons cannot compile d code on windows bdbaddog William Deegan 2013-02-03 21:14:38 PST
     [Issue 2881] scons cannot compile d code on windows egust eGust 2013-02-04 19:11:39 PST
     [Issue 2881] scons cannot compile d code on windows bdbaddog William Deegan 2013-02-05 11:22:00 PST
     [Issue 2881] scons cannot compile d code on windows russel Russel Winder 2013-02-05 11:36:02 PST
         Re: [Issue 2881] scons cannot compile d code on windows bdbaddog William Deegan 2013-02-05 12:58:09 PST
Messages per page: