[Scons-users] Error while refreshing build settings

Michael Potter pottmi at gmail.com
Tue Feb 12 16:24:47 EST 2013


I am a new user to SConsolidator/Eclipse/SCons. I am working with a
pure C project.

When I click the Swiss Flag Icon to refresh my build settings from my
hand codes SConstruct file, I get this error:

=== Running SCons at 2/12/13 4:03 PM ====
Command line: /usr/bin/scons -u -s -f SConstruct -f
/home/pottmi/mypro/mypro/ProjectInfoExtractor.py
--directory=/home/pottmi/mypro/mypro
AttributeError: 'NoneType' object has no attribute 'rfind':
File "/home/pottmi/mypro/mypro/ProjectInfoExtractor.py", line 182:
write_config(incls, macs, env)
File "/home/pottmi/mypro/mypro/ProjectInfoExtractor.py", line 141:
% to_string(get_sys_includes('cc', environ)))
File "/home/pottmi/mypro/mypro/ProjectInfoExtractor.py", line 76:
cc_output = invoke_compiler(lang, environ)
File "/home/pottmi/mypro/mypro/ProjectInfoExtractor.py", line 57:
stdout=subprocess.PIPE)
File "/usr/lib/scons/SCons/Action.py", line 674:
return subprocess.Popen(cmd, **kw)
File "/usr/lib/python2.6/subprocess.py", line 639:
errread, errwrite)
File "/usr/lib/python2.6/subprocess.py", line 1228:
raise child_exception
Duration 608 ms.

My SConstruct file looks like this:
VariantDir('build', '.')
SConscript('build/src/SConscript')

My src/SConscript file looks like this:
env = Environment(CPPPATH = ['.', '..', '/usr/include'])
env.Program('dumpstatus', ['dumpstatus.c', 'logger.c'])

I can build without error.

The /home/pottmi/mypro/mypro/ProjectInfoExtractor.py file does not
exist after the error so I cannot use that to debug.

Questions are:
1) What can I do to fix this?
2) What can I do to debug this in the future when I get similar problems?

--
pottmi


More information about the Scons-users mailing list