Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while refreshing build settings #4

Open
mrueegg opened this issue Mar 29, 2014 · 0 comments
Open

Error while refreshing build settings #4

mrueegg opened this issue Mar 29, 2014 · 0 comments
Assignees

Comments

@mrueegg
Copy link
Contributor

mrueegg commented Mar 29, 2014

Reported by Michael Potter:

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.

The project was created from existing source and SConstruct using the sconsolidator wizard. There were no errors during that time. This problem happened the first and every time I click the swiss flag" button.

I have tried this with a variety of different settings for CPPPATH. I did notice that my settings for CPPPATH are making it into the C configuration in eclipse despite the error.

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?

BTW: scons is great. Despite this problem it is so much less frustrating than automake.

@mrueegg mrueegg self-assigned this Mar 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant