Error with Expression() in 2018.1.0?


80
views
0
4 weeks ago by
Hi,

I don't know if my problem is related, but I didn't have this problem in version 2017.2.0. I've installed FEniCS 2018.1.0 from conda-forge and set up the Anaconda environment and everything seems to install without a hitch. However, when I try to run the following code:
from dolfin import *
a = Expression('3.0*b', b=1.0, degree=1)​​

I end up getting the following error:
------------------- Start compiler output ------------------------
Undefined symbols for architecture x86_64:
"dolfin::Expression::compute_vertex_values(std::vector<double, std::allocator<double> >&, dolfin::Mesh const&) const", referenced from:
vtable for dolfin::dolfin_expression_94cead74491a43531080b87af35df474 in ccCQ4099.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status

------------------- End compiler output ------------------------
Compilation failed! Sources, command, and errors have been written to: /Users/Dan/jitfailure-dolfin_expression_94cead74491a43531080b87af35df474
Traceback (most recent call last):
File "/Users/Dan/anaconda3/envs/fenicsproject/lib/python3.6/site-packages/dolfin/jit/jit.py", line 167, in compile_class
mpi_comm=mpi_comm)
File "/Users/Dan/anaconda3/envs/fenicsproject/lib/python3.6/site-packages/dolfin/jit/jit.py", line 47, in mpi_jit
return local_jit(*args, **kwargs)
File "/Users/Dan/anaconda3/envs/fenicsproject/lib/python3.6/site-packages/dolfin/jit/jit.py", line 103, in dijitso_jit
return dijitso.jit(*args, **kwargs)
File "/Users/Dan/anaconda3/envs/fenicsproject/lib/python3.6/site-packages/dijitso/jit.py", line 217, in jit
% err_info['fail_dir'], err_info)
dijitso.jit.DijitsoError: Dijitso JIT compilation failed, see '/Users/Dan/jitfailure-dolfin_expression_94cead74491a43531080b87af35df474' for details​

​I found another post that describes how pybind11 changes things, but when I try to run that cpp code, I still get the same error. I'm not sure if this is the right place to ask this type of question, but any help or advice would be greatly appreciated!
Community: FEniCS Project
1
After digging around a bit more, I couldn't find a file called dolfin.cpp that expression.py (et al.) need to import in order to access those functions. I'm wondering if my system just didn't generate this file, and therefore this is a problem with Anaconda.
written 4 weeks ago by Dan Sweeney  
Please login to add an answer/comment or follow this question.

Similar posts:
Search »