Build clean objs option generates scons: *** No SConstruct file found

Bug #874402 reported by WhisperingChaos
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openWNS SDK
New
Undecided
Unassigned

Bug Description

Immediately after a successful download & build of the openwns simulator: using ./playground.py install --flavour=dbg, and before applying any changes to its files, the build process to clean object files generates the message: "scons: *** No SConstruct file found" for each of the project directories and the clean operation fails to remove the object files from the project subdirectories subordinate to the .build parent directory.

A single "SConstruct" file exists in the current ~/myOpenWNS directory. Since the install worked, there must be something about this process' setting of file paths to locate the SConstruct file that's correctly performed during the install but absent/improperly performed by the clean.

Thanks for any insight into the cause of this problem!

Here's the terminal output of the failed clean process:

openwns@GDE_Rich:~/myOpenWNS$ ./playground.py clean objs

Cleaning objects for 'dbg' of /home/openwns/myOpenWNS/framework/library

scons: *** No SConstruct file found.
File "/usr/lib/scons/SCons/Script/Main.py", line 858, in _main
Cleaning objects for 'dbg' of /home/openwns/myOpenWNS/framework/application

scons: *** No SConstruct file found.
File "/usr/lib/scons/SCons/Script/Main.py", line 858, in _main
Cleaning objects for 'dbg' of /home/openwns/myOpenWNS/framework/pywns

scons: *** No SConstruct file found.
File "/usr/lib/scons/SCons/Script/Main.py", line 858, in _main
Cleaning objects for 'dbg' of /home/openwns/myOpenWNS/framework/rise

scons: *** No SConstruct file found.
File "/usr/lib/scons/SCons/Script/Main.py", line 858, in _main
Cleaning objects for 'dbg' of /home/openwns/myOpenWNS/framework/scenarios

scons: *** No SConstruct file found.
File "/usr/lib/scons/SCons/Script/Main.py", line 858, in _main
Cleaning objects for 'dbg' of /home/openwns/myOpenWNS/framework/dllbase

scons: *** No SConstruct file found.
File "/usr/lib/scons/SCons/Script/Main.py", line 858, in _main
Cleaning objects for 'dbg' of /home/openwns/myOpenWNS/modules/loadgen/constanze

scons: *** No SConstruct file found.
File "/usr/lib/scons/SCons/Script/Main.py", line 858, in _main
Cleaning objects for 'dbg' of /home/openwns/myOpenWNS/modules/mock/simpletl

scons: *** No SConstruct file found.
File "/usr/lib/scons/SCons/Script/Main.py", line 858, in _main
Cleaning objects for 'dbg' of /home/openwns/myOpenWNS/modules/phy/ofdmaphy

scons: *** No SConstruct file found.
File "/usr/lib/scons/SCons/Script/Main.py", line 858, in _main
Cleaning objects for 'dbg' of /home/openwns/myOpenWNS/modules/dll/lte

scons: *** No SConstruct file found.
File "/usr/lib/scons/SCons/Script/Main.py", line 858, in _main
Cleaning objects for 'dbg' of /home/openwns/myOpenWNS/modules/dll/wifimac

scons: *** No SConstruct file found.
File "/usr/lib/scons/SCons/Script/Main.py", line 858, in _main
Cleaning objects for 'dbg' of /home/openwns/myOpenWNS/modules/dll/wimac

scons: *** No SConstruct file found.
File "/usr/lib/scons/SCons/Script/Main.py", line 858, in _main
Cleaning objects for 'dbg' of /home/openwns/myOpenWNS/modules/dll/wimemac

scons: *** No SConstruct file found.
File "/usr/lib/scons/SCons/Script/Main.py", line 858, in _main
Cleaning objects for 'dbg' of /home/openwns/myOpenWNS/modules/nl/ip

scons: *** No SConstruct file found.
File "/usr/lib/scons/SCons/Script/Main.py", line 858, in _main
Cleaning objects for 'dbg' of /home/openwns/myOpenWNS/modules/dll/glue

scons: *** No SConstruct file found.
File "/usr/lib/scons/SCons/Script/Main.py", line 858, in _main
Cleaning objects for 'dbg' of /home/openwns/myOpenWNS/modules/phy/copper

scons: *** No SConstruct file found.
File "/usr/lib/scons/SCons/Script/Main.py", line 858, in _main
Cleaning objects for 'dbg' of /home/openwns/myOpenWNS/modules/tl/tcp

scons: *** No SConstruct file found.
File "/usr/lib/scons/SCons/Script/Main.py", line 858, in _main
Cleaning objects for 'dbg' of /home/openwns/myOpenWNS/modules/loadgen/applications

scons: *** No SConstruct file found.
File "/usr/lib/scons/SCons/Script/Main.py", line 858, in _main

A request to rebuild after this failed clean indicates that everything is "up to date" which shouldn't be the case if the clean worked:

openwns@GDE_Rich:~/myOpenWNS$ ./playground.py install --flavour=dbg
Executing: scons dbg --warn=no-missing-sconscript -j 2 default
scons: Reading SConscript files ...
-I/usr/include/python2.6 -I/usr/include/python2.6
-lpthread -ldl -lutil -lm -lpython2.6

scons: warning: The env.SourceSignatures() method is deprecated;
 convert your build to use the env.Decider() method instead.
File "/home/openwns/myOpenWNS/SConstruct", line 74, in <module>

scons: warning: The env.TargetSignatures() method is deprecated;
 convert your build to use the env.Decider() method instead.
File "/home/openwns/myOpenWNS/SConstruct", line 75, in <module>

scons: warning: The Options class is deprecated; use the Variables class instead.
File "/home/openwns/myOpenWNS/SConstruct", line 127, in <module>

scons: warning: The BoolOption() function is deprecated; use the BoolVariable() function instead.
File "/home/openwns/myOpenWNS/SConstruct", line 128, in <module>

scons: warning: The PathOption() function is deprecated; use the PathVariable() function instead.
File "/home/openwns/myOpenWNS/SConstruct", line 129, in <module>scons: warning: The PackageOption() function is deprecated; use the PackageVariable() function instead.
File "/home/openwns/myOpenWNS/SConstruct", line 135, in <module>
Checking for icecc compiler...(cached) no
Checking for C library cppunit... (cached) yes
Checking for C library boost_program_options-mt... (cached) yes
Checking for C library boost_signals-mt... (cached) yes
Checking for C library boost_date_time-mt... (cached) yes
Checking for C library boost_filesystem-mt... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
scons: `dbg' is up to date.
scons: `default' is up to date.
scons: done building targets

Revision history for this message
WhisperingChaos (junk-bethz) wrote :

After running a debugging session to figure out the format of the scons command: "scons -c flavor=dbg static=0", I ran this command in the simulator's root directory, in my case: "~/myOpenWNS", as suggested by the SDK documentation and it successfully removed the"dbg" object/binary files. Although the process warned about not finding a SConstruct in each of the project directories with the message "scons: warning: Ignoring missing SConstruct", it found the SConstruct file located in the root directory. I plan to examine how the "install" command works, as it also reads the SConstruct file from the root director in order to compile the source project files and place them into the object directories.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.