I have installed fenics on MAC OS 10.8.2 but can't run the demos

Asked by Gerard Awanou on 2013-03-20

Attempting to run the demo by typing python demo_poisson.py on the command line of FENICS, I got the error message below. I have seen similar people with the same problems but the answers given to them may not apply to me.

Error message

Calling FFC just-in-time (JIT) compiler, this may take some time.
In instant.recompile: The module did not compile, see '/Users/gerardawanou/.instant/error/edb8a2873204f9ff1836a2ea03a9fbc74b6311e1/compile.log'
Traceback (most recent call last):
  File "demo_poisson.py", line 41, in <module>
    V = FunctionSpace(mesh, "Lagrange", 1)
  File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/functions/functionspace.py", line 381, in __init__
    FunctionSpaceBase.__init__(self, mesh, element)
  File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/functions/functionspace.py", line 78, in __init__
    ufc_element, ufc_dofmap = jit(self._ufl_element)
  File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/compilemodules/jit.py", line 66, in mpi_jit
    return local_jit(*args, **kwargs)
  File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/compilemodules/jit.py", line 154, in jit
    return jit_compile(form, parameters=p, common_cell=common_cell)
  File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/ffc/jitcompiler.py", line 71, in jit
    return jit_element(ufl_object, parameters)
  File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/ffc/jitcompiler.py", line 177, in jit_element
    compiled_form, module, form_data, prefix = jit_form(form, parameters)
  File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/ffc/jitcompiler.py", line 145, in jit_form
    cache_dir = cache_dir)
  File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/ufc_utils/build.py", line 72, in build_ufc_module
    **kwargs)
  File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/instant/build.py", line 482, in build_module
    recompile(modulename, module_path, setup_name, new_compilation_checksum)
  File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/instant/build.py", line 105, in recompile
    "compile, see '%s'" % compile_log_filename_dest)
  File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/instant/output.py", line 49, in instant_error
    raise RuntimeError(text)
RuntimeError: In instant.recompile: The module did not compile, see '/Users/gerardawanou/.instant/error/edb8a2873204f9ff1836a2ea03a9fbc74b6311e1/compile.log'

Question information

Language:
English Edit question
Status:
Answered
For:
FEniCS Project Edit question
Assignee:
No assignee Edit question
Last query:
2013-03-20
Last reply:
2014-06-20
Johan Hake (johan-hake) said : #1

Run:

  instant-clean

then run your script again and paste the content of the compile.log. In
this case:

/Users/gerardawanou/.instant/error/edb8a2873204f9ff1836a2ea03a9fbc74b6311e1/compile.log

Johan

On 03/20/2013 07:31 PM, Gerard Awanou wrote:
> New question #224757 on FEniCS Project:
> https://answers.launchpad.net/fenics/+question/224757
>
> Attempting to run the demo by typing python demo_poisson.py on the command line of FENICS, I got the error message below. I have seen similar people with the same problems but the answers given to them may not apply to me.
>
> Error message
>
>
> Calling FFC just-in-time (JIT) compiler, this may take some time.
> In instant.recompile: The module did not compile, see '/Users/gerardawanou/.instant/error/edb8a2873204f9ff1836a2ea03a9fbc74b6311e1/compile.log'
> Traceback (most recent call last):
> File "demo_poisson.py", line 41, in <module>
> V = FunctionSpace(mesh, "Lagrange", 1)
> File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/functions/functionspace.py", line 381, in __init__
> FunctionSpaceBase.__init__(self, mesh, element)
> File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/functions/functionspace.py", line 78, in __init__
> ufc_element, ufc_dofmap = jit(self._ufl_element)
> File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/compilemodules/jit.py", line 66, in mpi_jit
> return local_jit(*args, **kwargs)
> File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/compilemodules/jit.py", line 154, in jit
> return jit_compile(form, parameters=p, common_cell=common_cell)
> File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/ffc/jitcompiler.py", line 71, in jit
> return jit_element(ufl_object, parameters)
> File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/ffc/jitcompiler.py", line 177, in jit_element
> compiled_form, module, form_data, prefix = jit_form(form, parameters)
> File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/ffc/jitcompiler.py", line 145, in jit_form
> cache_dir = cache_dir)
> File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/ufc_utils/build.py", line 72, in build_ufc_module
> **kwargs)
> File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/instant/build.py", line 482, in build_module
> recompile(modulename, module_path, setup_name, new_compilation_checksum)
> File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/instant/build.py", line 105, in recompile
> "compile, see '%s'" % compile_log_filename_dest)
> File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/instant/output.py", line 49, in instant_error
> raise RuntimeError(text)
> RuntimeError: In instant.recompile: The module did not compile, see '/Users/gerardawanou/.instant/error/edb8a2873204f9ff1836a2ea03a9fbc74b6311e1/compile.log'
>
>

Hi, Gerard, Johan.

Newcomer to Fenics, it happens that I have the exact same error than Gerard.

After following Johan's advice (running instant-clean), I still have the error message on terminal, and the corresponding log (the content of compile.log ) is:

Make Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file:/private/var/folders/fs/n4thw5lj4cj2qzncht66_ssm0000gn/T/tmpgKU8CZ2014-6-20-12-50_instant_299ebd6387c187f35189f2f5b7a5b9eae37cfe2d/ffc_form_fca4b6ffb2fc6e2e2de21f0bd1c9de03ea2f593c/CMakeFiles/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
CMake Error: Could not find cmake module file:/private/var/folders/fs/n4thw5lj4cj2qzncht66_ssm0000gn/T/tmpgKU8CZ2014-6-20-12-50_instant_299ebd6387c187f35189f2f5b7a5b9eae37cfe2d/ffc_form_fca4b6ffb2fc6e2e2de21f0bd1c9de03ea2f593c/CMakeFiles/CMakeCXXCompiler.cmake
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

Seems like it misses something else related to Cmake installed on my computer? I'll keep digging, but any clue is welcome !

Can you help with this problem?

Provide an answer of your own, or ask Gerard Awanou for more information if necessary.

To post a message you must log in.