Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined symbol error #356

Open
samfux84 opened this issue Dec 11, 2023 · 0 comments
Open

Undefined symbol error #356

samfux84 opened this issue Dec 11, 2023 · 0 comments

Comments

@samfux84
Copy link

Hi,

I have built pymesh from source following the build instructions from the pymesh website.

For the third-party dependencies I used the versions bundled with the source code. Apart from these I am using (all built from source code):

  • Python 3.10.4
  • GMP 6.1.2
  • MPFR 4.1.0
  • BOOST 1.74.0
  • Sparsehash 2.0.3
  • libigl 2.4.0
  • quartet (current masterbranch as there are no versions available)

Building the pymesh library worked fine and all tests were passed:

[----------] Global test environment tear-down
[==========] 224 tests from 51 test cases ran. (123 ms total)
[  PASSED  ] 224 tests.

Then I installed the Python package as described on the website with

setup.py install

Now everything seems to be fine, but when I import the package, I get a "undefined symbol" error:

[sfux@eu-login-21 ~]$ module load gcc/8.2.0 python/3.10.4 gmp/6.1.2 mpfr/4.1.0 boost/1.74.0 sparsehash/2.0.3 libigl/2.4.0 quartet/no_version

The following have been reloaded with a version change:
  1) gcc/4.8.5 => gcc/8.2.0

[sfux@eu-login-21 ~]$ module list

Currently Loaded Modules:
  1) StdEnv   2) gcc/8.2.0   3) openblas/0.3.15   4) python/3.10.4   5) gmp/6.1.2   6) mpfr/4.1.0   7) boost/1.74.0   8) sparsehash/2.0.3   9) libigl/2.4.0  10) quartet/no_version



[sfux@eu-login-21 ~]$ python
Python 3.10.4 (main, May 30 2022, 08:01:42) [GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pymesh
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/cluster/apps/nss/gcc-8.2.0/python/3.10.4/x86_64/lib64/python3.10/site-packages/pymesh2-0.3-py3.10-linux-x86_64.egg/pymesh/__init__.py", line 18, in <module>
    from .Mesh import Mesh
  File "/cluster/apps/nss/gcc-8.2.0/python/3.10.4/x86_64/lib64/python3.10/site-packages/pymesh2-0.3-py3.10-linux-x86_64.egg/pymesh/Mesh.py", line 5, in <module>
    import PyMesh
ImportError: /cluster/apps/nss/gcc-8.2.0/pymesh/0.3/x86_64/python/pymesh/lib/libPyMesh-Tetrahedronization.so: undefined symbol: _Z13make_tet_meshR7TetMeshRK3SDFR10FeatureSetbbb
>>>

Is this a known problem and do you know how I can resolve it? Any help is appreciated.

Best regards

Sam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant