instant.recompile crashes on demo example in mac os x

Bug #1129006 reported by Ivan Oseledets on 2013-02-18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
FEniCS Project

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 "", line 6, in <module>
    V = FunctionSpace(mesh, 'Lagrange', 1)
  File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/dolfin/functions/", line 390, in __init__
    FunctionSpaceBase.__init__(self, mesh, element, constrained_domain)
  File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/dolfin/functions/", line 84, in __init__
    ufc_element, ufc_dofmap = jit(self._ufl_element)
  File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/dolfin/compilemodules/", line 66, in mpi_jit
    return local_jit(*args, **kwargs)
  File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/dolfin/compilemodules/", line 154, in jit
    return jit_compile(form, parameters=p, common_cell=common_cell)
  File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/ffc/", line 75, in jit
    return jit_element(ufl_object, parameters)
  File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/ffc/", line 244, in jit_element
    compiled_form, module, form_data, prefix = jit_form(form, parameters)
  File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/ffc/", line 212, in jit_form
    cache_dir = cache_dir)
  File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/ufc_utils/", line 64, in build_ufc_module
  File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/instant/", line 540, in build_module
    recompile(modulename, module_path, new_compilation_checksum, build_system)
  File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/instant/", line 137, in recompile
    instant_error(msg % (cmd, compile_log_filename_dest))
  File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/instant/", line 49, in instant_error
    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/Frameworks/EPD64.framework/Versions/Current/bin/swig (found version "2.0.9")
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:
   used as include directory in directory /private/var/folders/f_/d59rxtns6ks0g3yd0hzcz9480000gn/T/tmpeKZ79X2013-2-18-15-19_instant/instant_module_315ebc21e0fe220e611965734859ae349eef07f9

-- Configuring incomplete, errors occurred!

Boost is installed (in /usr/local/include/boost)
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

Ivan Oseledets (ivan-oseledets) wrote :
Johannes Ring (johannr) wrote :

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 script.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments