[Scons-users] SCons always rebuilds on Windows

Gary Oberbrunner garyo at oberbrunner.com
Sat Apr 27 08:47:04 EDT 2013


Perhaps the compiler isn't putting the class file where SCons expects it
to, so SCons doesn't realize it's been built. Could you also try with
--tree=prune and see if all the filenames and paths match with what it
actually builds? If your example is small enough, you could post it here.


On Sat, Apr 27, 2013 at 5:12 AM, Dirk Heinrichs <dirk.heinrichs at altum.de>wrote:


> 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

>

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users

>

>



--
Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20130427/43afd988/attachment.html>


More information about the Scons-users mailing list