instant.recompile crashes on demo example in mac os x
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
FEniCS Project |
New
|
Undecided
|
Unassigned |
Bug Description
I have encountered the following bug.
I have a custom Python (Enthought Python Distribution) on Mac Os X 10.8.2 , thus
I can not use the precompiled Fenics.
I have followed the instruction for manual compilation of all the stuff from sources (all of the packages were built from trunk),
and *almost* succeeded.
However, in the end, the simplest demo example fails at runtime. I believe it is due to the recent changes in the build system, since the problem is with CMake and Boost include headers.
Specifically, the program fails with the following log:
File "tmp.py", line 6, in <module>
V = FunctionSpace(mesh, 'Lagrange', 1)
File "/Library/
FunctionSpa
File "/Library/
ufc_element, ufc_dofmap = jit(self.
File "/Library/
return local_jit(*args, **kwargs)
File "/Library/
return jit_compile(form, parameters=p, common_
File "/Library/
return jit_element(
File "/Library/
compiled_form, module, form_data, prefix = jit_form(form, parameters)
File "/Library/
cache_dir = cache_dir)
File "/Library/
**kwargs)
File "/Library/
recompile(
File "/Library/
instant_
File "/Library/
raise RuntimeError(text)
The compile.log has the following form:
-- The C compiler identification is Clang 4.2.0
-- The CXX compiler identification is Clang 4.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found SWIG: /Library/
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Boost_INCLUDE_DIR
used as include directory in directory /private/
-- Configuring incomplete, errors occurred!
Boost is installed (in /usr/local/
but the CMake for some reason does not find the Boost_INC_DIR.
I tried setting environment variables, but it does not help at all.
Any suggestions?
CMake version is:
cmake version 2.8.10.2
You can try to set the environment variables BOOST_DIR, BOOST_ROOT, BOOST_INCLUDEDIR, and BOOST_LIBRARYDIR. However, I'm not sure why this would be needed, since there is no call to find_package(Boost) during jit compilation AFAICT.
Please also post the tmp.py script.