On Sat, Sep 26, 2009 at 1:02 AM, Johannes Ring <[email protected]> wrote: > On Sat, Sep 26, 2009 at 12:16 AM, Anders Logg <[email protected]> wrote: >> On Fri, Sep 25, 2009 at 11:48:27AM -0500, Andy Ray Terrel wrote: >>> On Fri, Sep 25, 2009 at 11:35 AM, Harish Narayanan >>> <[email protected]> wrote: >>> > Andy Ray Terrel wrote: >>> >> So I've updated quite a bit of software and it looks like dolfin (hg >>> >> pulled) is having problems installing for me. I thought I would shoot >>> >> this out to see if anyone has seen this error before I go down the >>> >> rabbit hole. >>> >> >>> >> ater...@dhcp-11-18:~/workspace/dolfin$ scons >>> >> scons: Reading SConscript files ... >>> >> /Users/aterrel/workspace/dolfin/scons/simula-scons >>> >> KeyError: 'enableBenchmarks': >>> >> File "/Users/aterrel/workspace/dolfin/SConstruct", line 387: >>> >> exports=["env", "modules", "configuredPackages", "buildDataHash"]) >>> >> File "/usr/local/lib/scons-1.2.0.d20090919/SCons/Script/SConscript.py", >>> >> line 553: >>> >> return apply(_SConscript, [self.fs,] + files, subst_kw) >>> >> File "/usr/local/lib/scons-1.2.0.d20090919/SCons/Script/SConscript.py", >>> >> line 262: >>> >> exec _file_ in call_stack[-1].globals >>> >> File "/Users/aterrel/workspace/dolfin/dolfin/SConscript", line 352: >>> >> if env["enableBenchmarks"]: >>> >> File "/usr/local/lib/scons-1.2.0.d20090919/SCons/Environment.py", line >>> >> 408: >>> >> return self._dict[key] >>> >> >>> >> >>> >> >>> >> FWIW, my software setup: >>> >> Mac OS X 10.7 >>> > >>> > 10.6? >>> >>> Yes 10.6. Sorry. >>> >>> Also looks like running 'scons configure' first avoids the problem, for now. >> >> Is there a test in the build system for running scons configure before >> building? There should be some informative message. > > Yes, there is. You should get the following message if 'scons > configure' hasn't been run: > > --------------------------------------------------------- > No configuration found. Please run > > scons configure > > before building DOLFIN. To view a complete list of > available configuration options, run > > scons configure --help or -h > > For SCons specific options, run > > scons --help-options or -H > > --------------------------------------------------------- > > However, there might be cases where this is not displayed. I don't know. > > Johannes
My case was that there was an old scons cache and it didn't have all the right keys in it. -- Andy _______________________________________________ DOLFIN-dev mailing list [email protected] http://www.fenics.org/mailman/listinfo/dolfin-dev
