getfem-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Getfem-users] getfem++ python compilation problem on mac 10.11


From: Serge Dumont
Subject: [Getfem-users] getfem++ python compilation problem on mac 10.11
Date: Thu, 2 Feb 2017 15:12:32 +0100

Dear all,

few days ago, I tried to install Getfem with python interface on my computer.
The C++ programs work properly, but I have some problems with the python 
interface.

When I try to compile getfem with Homebrew GCC 6.3.0_1 (and same version of 
g++, fortran,… ) and clang version 3.9.1., I obtain the following problem

> python demo_laplacian.py
Traceback (most recent call last):
 File "demo_laplacian.py", line 30, in <module>
   import getfem as gf
 File "/usr/local/lib/python2.7/site-packages/getfem/__init__.py", line 16, in 
<module>
   from getfem import *
 File "/usr/local/lib/python2.7/site-packages/getfem/getfem.py", line 44, in 
<module>
   from _getfem import *
ImportError: dlopen(/usr/local/lib/python2.7/site-packages/getfem/_getfem.so, 
2): Symbol not found: __ZNSt12bad_weak_ptrD1Ev
 Referenced from: /usr/local/lib/python2.7/site-packages/getfem/_getfem.so
 Expected in: flat namespace
in /usr/local/lib/python2.7/site-packages/getfem/_getfem.so

If I compile with gcc-4.8.5, I have the error:
Symbol not found:  __ZNSs4_Rep20_S_empty_rep_storageE 

I also obtain the same problems with clang given with Xcode.
I provide the instructions generated to create _getfem.so:
building '_getfem' extension
clang -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -fwrapv -O3 
-Wall -Wstrict-prototypes -I../../../src/getfem -I../../../src/getfem -I./.. 
-I. -I/usr/local/lib/python2.7/site-packages/numpy/core/include 
-I/usr/local/include -I/usr/local/opt/openssl/include 
-I/usr/local/opt/sqlite/include 
-I/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/include/python2.7
 -c getfem_python_c.c -o ./getfem_python_c.o
clang -bundle -undefined dynamic_lookup ./getfem_python_c.o -L../.libs 
-L../../../src/.libs -L/usr/local/lib -L/usr/local/opt/openssl/lib 
-L/usr/local/opt/sqlite/lib -lgetfemint -lgetfem -lqhull -lblas -llapack 
-lstdc++ -lm -o ./_getfem.so

with gcc6.3.0_1 during this clang step, I have a lot of warnings like:
ld: warning: could not create compact unwind for 
__ZN3gmm13mult_dispatchINS_10csc_matrixIdLi0EEESt6vectorIdSaIdEES5_EEvRKT_RKT0_RT1_NS_15abstract_vectorE:
 dwarf uses DW_CFA_GNU_args_size
(I have no warning with gcc-4.8.5)

Best regards,

Serge Dumont


reply via email to

[Prev in Thread] Current Thread [Next in Thread]