Login | Register
My pages Projects Community openCollabNet

Discussions > Notification of Issues > [Issue 2881] 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] scons cannot compile d code on windows

Author egust
Full name eGust
Date 2013-02-04 19:11:39 PST
Message http://scons.tigris.​org/issues/show_bug.​cgi?id=2881






------- Additional comments from egust at tigris dot org Mon Feb 4 19:11:39 -0800 2013 -------
Environment
platform: win7 x64
compiler: dmd v2.060
compilers in %PATH%:
  dmd D:\Develop\dmd2\windows\bin
  mingw32 D:\Develop\gcc\mingw32\bin
  mingw64 D:\Develop\gcc\MinGW64\bin
  python273 D:\Develop\Python27
other installed compilers:
  msvs 2010

Steps:
1. Prepare some files:
  A simple D file: hw.d
  A SCons file: SConstruct
  A batch file: issue2890.bat
  2 py files, which are the original scons-2.2.0/SCons/Pl​atform/win32.py and the
patched one: win32.old.py win32.new.py

2. Run the batch file as command:
  issue2890 1>issue2890.log 2>&1

And the issue is showed in the log.

All the files are attached:
http://scons.tigris.​org/nonav/issues/sho​wattachment.cgi/912/​issue2890.zip.
--

The log shows:
1. When using original scons-2.2.0/SCons/Pl​atform/win32.py
env['ENV']['PATH'] stored only msvs paths and C:\Windows\System32. Both
env.WhereIs('dmd') and env.Detect(['dmd']) got None. So SCons could not use
right compiler to build files, it just called link.exe to try to link the source
file and, of cause, got an error.

2. When using the patched one:
env['ENV']['PATH'] also stored all compilers in %PATH% (dmd, mingw32, mingw64,
py...). env.WhereIs('dmd') and env.Detect(['dmd']) returned right values. And
SCons correctly called dmd.exe to compile and link the source file.

« Previous message in topic | 7 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: