[Scons-users] SCons always rebuilds on Windows

Dirk Heinrichs dirk.heinrichs at altum.de
Sat Apr 27 05:12:27 EDT 2013


Hi,

When trying a simple Java build on Windows 7, SCons (2.3.0) always rebuilds
unconditionally:

C:\Users\dhs\scons_test>scons -Q

scons: warning: No version of Visual Studio compiler found - C/C++ compilers
most likely not set correctly
File "C:\Users\dhs\scons_test\SConstruct", line 2, in <module>
C:/jdks/1.7/jdk/bin/javac.exe -d classes -sourcepath src src\Hello.java

C:\Users\dhs\scons_test>scons -Q

scons: warning: No version of Visual Studio compiler found - C/C++ compilers
most likely not set correctly
File "C:\Users\dhs\scons_test\SConstruct", line 2, in <module>
C:/jdks/1.7/jdk/bin/javac.exe -d classes -sourcepath src src\Hello.java

If I rebuild again, adding --debug=explain, I get this:

C:\Users\dhs\scons_test>scons -Q --debug=explain

scons: warning: No version of Visual Studio compiler found - C/C++ compilers
most likely not set correctly
File "C:\Users\dhs\scons_test\SConstruct", line 2, in <module>
scons: Cannot explain why `classes\Hello.class' is being rebuilt: No previous
build information found
C:/jdks/1.7/jdk/bin/javac.exe -d classes -sourcepath src src\Hello.java

C:\Users\dhs\scons_test>dir
Volume in Laufwerk C: hat keine Bezeichnung.
Volumeseriennummer: 78ED-C3A6

Verzeichnis von C:\Users\dhs\scons_test

26.04.2013 11:35 <DIR> .
26.04.2013 11:35 <DIR> ..
26.04.2013 11:35 915 .sconsign.dblite
26.04.2013 11:35 <DIR> classes
24.04.2013 15:03 44 SConscript
24.04.2013 15:14 160 SConstruct
24.04.2013 14:55 <DIR> src
3 Datei(en), 1.119 Bytes
4 Verzeichnis(se), 211.825.582.080 Bytes frei

If I run the same build on Linux, it works as expected:

% scons -Q
/usr/bin/javac -d classes -sourcepath src src/Hello.java
% scons -Q
scons: `.' is up to date.

Anything I can do to solve the problem?

Thanks...

Dirk
--
Dirk Heinrichs <dirk.heinrichs at altum.de>
Tel: +49 (0)2471 209385 | Mobil: +49 (0)176 34473913
GPG Public Key C2E467BB | Jabber: dirk.heinrichs at altum.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : <http://four.pairlist.net/pipermail/scons-users/attachments/20130427/67e4279c/attachment.pgp>


More information about the Scons-users mailing list