[Scons-users] Problem with variant_dir on cygwin

Bogdan Tenea btenea at ixiacom.com
Mon Sep 23 06:42:36 EDT 2013


Hello,

I have a problem with a hierarchical build when using variant_dir - on latest Cygwin version of Scons (2.3.0-4) it does not copy the header files in the build dir and compilation fails.
I tried running with duplicate=0 and it works out fine because it looks for the header in the original src_dir... Any clues what could be the problem? Tried both on Win7 64 and XP 32.

SConscript: Import('env')
env.SharedLibrary(target = 'test', source = ['test.cpp'])

SConstruct: SConscript('src/SConscript', exports = 'env', variant_dir = 'build')
vmwareuser at vmware-xpspih /cygdrive/c/test
$ scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/test.os -c -fPIC build/test.cpp
build/test.cpp:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled by default]
build/test.cpp:1:20: fatal error: test.hpp: No such file or directory
compilation terminated.
scons: *** [build/test.os] Error 1
scons: building terminated because of errors.

SConstruct: SConscript('src/SConscript', exports = 'env', variant_dir = 'build', duplicate=0)
vmwareuser at vmware-xpspih /cygdrive/c/test
$ scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/test.os -c -fPIC src/test.cpp
src/test.cpp:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled by default]
g++ -o build/libtest.so -shared build/test.os
scons: done building targets.


Regards,

Bogdan Tenea
Senior Software Engineer II
Ixia RO Stack Manager Developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20130923/60d62b7f/attachment.htm


More information about the Scons-users mailing list