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

problem in compiling forms with FFC (instant.recompile)

+3 votes

Hi everyone
I recently installed dolfin and installation was fine but while running demo, I was stuck in compiling forms (call to FFC)
$ instant-clean
within python:

V = FunctionSpace(mesh, "Lagrange", 1)

Calling FFC just-in-time (JIT) compiler, this may take some time.
In instant.recompile: The module did not compile with command 'make VERBOSE=1', see '/home/sarosh/.instant/error/ffc_form_91664149f2882d60bf1907194a3e878266b41577/compile.log'
Traceback (most recent call last):
File "", line 1, in
File "/home/sarosh/Work/FEniCS/lib/python2.7/site-packages/dolfin/functions/functionspace.py", line 468, in init
FunctionSpaceBase.init(self, mesh, element, constrained_domain)
File "/home/sarosh/Work/FEniCS/lib/python2.7/site-packages/dolfin/functions/functionspace.py", line 153, in init
ufc_element, ufc_dofmap = jit(self._ufl_element)
File "/home/sarosh/Work/FEniCS/lib/python2.7/site-packages/dolfin/compilemodules/jit.py", line 62, in mpi_jit
return local_jit(*args, **kwargs)
File "/home/sarosh/Work/FEniCS/lib/python2.7/site-packages/dolfin/compilemodules/jit.py", line 126, in jit
return jit_compile(form, parameters=p)
File "/home/sarosh/Work/FEniCS/lib/python2.7/site-packages/ffc/jitcompiler.py", line 75, in jit
return jit_element(ufl_object, parameters)
File "/home/sarosh/Work/FEniCS/lib/python2.7/site-packages/ffc/jitcompiler.py", line 186, in jit_element
compiled_form, module, form_data, prefix = jit_form(form, parameters)
File "/home/sarosh/Work/FEniCS/lib/python2.7/site-packages/ffc/jitcompiler.py", line 155, in jit_form
cache_dir = cache_dir)
File "/home/sarosh/Work/FEniCS/lib/python2.7/site-packages/ffc/backends/ufc/build.py", line 73, in build_ufc_module
**kwargs)
File "/home/sarosh/.local/lib/python2.7/site-packages/instant-1.3.0-py2.7.egg/instant/build.py", line 542, in build_module
recompile(modulename, module_path, new_compilation_checksum, build_system)
File "/home/sarosh/.local/lib/python2.7/site-packages/instant-1.3.0-py2.7.egg/instant/build.py", line 151, in recompile
instant_error(msg % (cmd, compile_log_filename_dest))
File "/home/sarosh/.local/lib/python2.7/site-packages/instant-1.3.0-py2.7.egg/instant/output.py", line 57, in instant_error
raise RuntimeError(text)
RuntimeError: In instant.recompile: The module did not compile with command 'make VERBOSE=1', see '/home/sarosh/.instant/error/ffc_form_91664149f2882d60bf1907194a3e878266b41577/compile.log'

Any suggestions what might be wrong ?

Thanks

asked Sep 19, 2014 by sarosh FEniCS Novice (220 points)

What mesh do you take?

Hi
I tried
mesh = UnitSquareMesh(6, 4)
mesh = UnitIntervalMesh(4)
But neither works

I am using dolfin version 1.4.0 and ffc version 1.4.0

thanks

1 Answer

+1 vote

Hi
I solved this problem by removing older instant version (1.3.0) which was getting picked, instead of latest version which I installed (1.4.0)

I just removed the older files (from previous installations)

rm -rf /home/sarosh/.local/lib/python2.7/site-packages/instant-1.3.0*

thanks
sarosh

answered Sep 19, 2014 by sarosh FEniCS Novice (220 points)
...