← Back to team overview

dolfin team mailing list archive

Build: scons rebuild with enableMpi=false failure, gets stuck

 

$ scons
[build completed successfully]

$ scons enableMpi=false
[...]
NameError: name 'modEnv' is not defined:
  File "/home/jobh/src/fenics/dolfin/SConstruct", line 182:
    buildDataHash = env.SConscript(os.path.join(env["projectname"], "SConscript"), exports=["env", "configure"])
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 533:
    return apply(_SConscript, [self.fs,] + files, subst_kw)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 256:
    exec _file_ in call_stack[-1].globals
  File "/home/jobh/src/fenics/dolfin/dolfin/SConscript", line 276:
    replacements['PACKAGE_CXXFLAGS'] = modEnv["CXXFLAGS"]

$ scons clean
[same error]

etc. It is not obvious how to get the build to start again; nor was it obvious
(to me) that previous options were cached. Maybe print at start of build,
"Using options from scons/options.cache: enableMpi=false, someotherstuff=...."
That way the user knows both which options are used and how to start fresh.

-j.



Follow ups