[Scons-users] Error while refreshing build settings
Managan, Rob
managan1 at llnl.gov
Wed Feb 13 11:50:08 EST 2013
I am surprised that the ProjectInfoExtractor.py file got deleted but it
has been a long time since I used mine. I had a problem when I first used
it and was able to debug it using the file. My copy is out of date since
the line numbers don't match up but my problem related to the fact that
env['CCFLAGS'] was equal to None and then I got a similar error message.
So some variable is None and should not be. Based on the version I have,
is there any chance that your CC or CXX values in the environment are None?
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Rob Managan email managan at llnl.gov
LLNL phone: 925-423-0903
P.O. Box 808, L-095 FAX: 925-422-3389
Livermore, CA 94551-0808
On 2/12/13 1:24 PM, "Michael Potter" <pottmi at gmail.com> wrote:
>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
>_______________________________________________
>Scons-users mailing list
>Scons-users at scons.org
>http://four.pairlist.net/mailman/listinfo/scons-users
More information about the Scons-users
mailing list