This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Installed FEnics 1.5.0 on MacOS X 10.10, but cannot run the demo that involves Dolfin JIT compiler.

+4 votes

I am able to run some of the demos that do not involve Dolfin JIT compiler. But for example, if I run the poisson demo, the following shows up:

Calling DOLFIN just-in-time (JIT) compiler, this may take some time.
In instant.recompile: The module did not compile with command 'make VERBOSE=1', see '/Users/wukaling/.instant/error/dolfin_compile_code_e71a4e0b9db4c7b3c4379cadd4a0fbc66cf1c990/compile.log'
Traceback (most recent call last):
File "demo_poisson.py", line 54, in
f = Expression("10exp(-(pow(x[0] - 0.5, 2) + pow(x[1] - 0.5, 2)) / 0.02)")
File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/functions/expression.py", line 602, in new
mpi_comm=mpi_comm)
File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/compilemodules/expressions.py", line 217, in compile_expressions
mpi_comm=mpi_comm)
File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/compilemodules/expressions.py", line 145, in compile_expression_code
mpi_comm=mpi_comm)
File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/compilemodules/jit.py", line 64, in mpi_jit
return local_jit(
args, **kwargs)
File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/compilemodules/compilemodule.py", line 458, in compile_extension_module
**instant_kwargs)
File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/instant/build.py", line 563, in build_module
recompile(modulename, module_path, new_compilation_checksum, build_system)
File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/instant/build.py", line 165, in recompile
instant_error(msg % (cmd, compile_log_filename_dest))
File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/instant/output.py", line 85, in instant_error
raise RuntimeError(text)
RuntimeError: In instant.recompile: The module did not compile with command 'make VERBOSE=1', see '/Users/wukaling/.instant/error/dolfin_compile_code_e71a4e0b9db4c7b3c4379cadd4a0fbc66cf1c990/compile.log'

I have tried to uninstall, install FEnics again and ran instant-clean. But it does not seem to help. Anyone knows how to resolve this?

closed with the note: Please send this question to the fenics-support mailing list: http://fenicsproject.org/mailman/listinfo/fenics-support
asked Jan 28, 2015 by kalingwu FEniCS Novice (160 points)
closed Jan 30, 2015 by johannr

I too get this error. Any solution ???

Me too! I have installed the Fenics for Mac OS 10.10 on a Yosemite Macbook.

Hi Praveen and Fjellander,

I looked into the error it spitted out, and it seems like the new FEnics 1.5.0 is not compatible with some of the expression written in Python. For example, in the demo_possion.py, the error mentioned there is a problem in:

File "demo_poisson.py", line 54, in
f = Expression("10exp(-(pow(x[0] - 0.5, 2) + pow(x[1] - 0.5, 2)) / 0.02)")

So I went into the .py file, and changed the Expression into a very simple one that does not required any function, e.g. f = 1

And I tried to rerun the .py. And things seem to function and I was able to view the results in the visualizer as well. So I believe it is an error or bug in the FEnics 1.5.0 package. I am not able to resolve the problem in the package. Instead, I tried the older version, the FEnics 1.4 for Yosemite. And things seems to be working properly. So if you are not aiming to use the new functions in FEnics 1.5.0, I would recommend dumping down your FEnics version to 1.4 or 1.3.

Hope that helps.

Great! Thanks! It worked for me too!

This morning I started getting the exact same error in Ubuntu 14.04, though I had no problems with Expressions previously. Doing instant-clean, as well as completely purging and reinstalling fenics and it's dependencies did not fix the problem.

1 Answer

+1 vote

I have the same problem with Mac OS 10.9.5

Would anyone have a fix that doesn't involve using older versions of FEniCS?

Thanks!

answered Jan 29, 2015 by V_L FEniCS User (4,440 points)

Using older version is not a good solution. Hope this gets fixed soon.

This is a fairly serious issue which makes the latest fenics Mac binary almost unusable on yosemite. Is there any idea when this will be fixed ?

There is a new binary which works on yosemite, get it here http://fenicsproject.org/pipermail/fenics-support/2015-January/001158.html

...