Issue with DOLFIN just-in-time (JIT) compiler - SWIG_ADD_MODULE


71
views
0
4 weeks ago by
Hi,

So I have just installed Fenics (on linux mint) and when I try to run the poisson equation demo I get the following error when calling DOLFIN just-in-time (JIT) compiler

In instant.recompile: The module did not compile with command 'make VERBOSE=1', see '[...]/.instant/error/dolfin_compile_code_87a153fedb1caeb1d0930b81a1b38f2be4aa457b/compile.log'
Traceback (most recent call last):
File "Poisson.py", line 18, in <module>
u_D = Expression('1 + x[0]*x[0] + 2*x[1]*x[1]', degree=2)
File "/usr/lib/python2.7/dist-packages/dolfin/functions/expression.py", line 602, in __new__
mpi_comm=mpi_comm)
File "/usr/lib/python2.7/dist-packages/dolfin/compilemodules/expressions.py", line 217, in compile_expressions
mpi_comm=mpi_comm)
File "/usr/lib/python2.7/dist-packages/dolfin/compilemodules/expressions.py", line 145, in compile_expression_code
mpi_comm=mpi_comm)
File "/usr/lib/python2.7/dist-packages/dolfin/compilemodules/jit.py", line 64, in mpi_jit
return local_jit(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/dolfin/compilemodules/compilemodule.py", line 458, in compile_extension_module
**instant_kwargs)
File "/usr/lib/python2.7/dist-packages/instant/build.py", line 563, in build_module
recompile(modulename, module_path, new_compilation_checksum, build_system)
File "/usr/lib/python2.7/dist-packages/instant/build.py", line 165, in recompile
instant_error(msg % (cmd, compile_log_filename_dest))
File "/usr/lib/python2.7/dist-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 '[...]/.instant/error/dolfin_compile_code_87a153fedb1caeb1d0930b81a1b38f2be4aa457b/compile.log'

where the compile.log is as follows
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- 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
-- Detecting C compile features
-- Detecting C compile features - 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
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found SWIG: /usr/bin/swig3.0 (found version "3.0.5")
CMake Deprecation Warning at /usr/local/share/cmake-3.9/Modules/UseSWIG.cmake:228 (message):
SWIG_ADD_MODULE is deprecated. Use SWIG_ADD_LIBRARY instead.
Call Stack (most recent call first):
CMakeLists.txt:77 (swig_add_module)

I am a struggling to find where swig_add_module needs to be changed to swig_add_library.

Does anyone know how to fix this?

Thanks!
Community: FEniCS Project
This seems to be an installation issue. If it's a binary distribution I would report it to the package maintainer.
written 4 weeks ago by Jan Blechta  
Thanks! I uninstalled it and reinstalled using Docker this time and it now works fine.
written 4 weeks ago by Sami Al-Izzi  
Please login to add an answer/comment or follow this question.

Similar posts:
Search »