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 reference to get_complex_dtype<256> #407

Open
hdu-sdlzx opened this issue Dec 13, 2022 · 1 comment
Open

Undefined reference to get_complex_dtype<256> #407

hdu-sdlzx opened this issue Dec 13, 2022 · 1 comment

Comments

@hdu-sdlzx
Copy link

hdu-sdlzx commented Dec 13, 2022

In src/numpy/dtype.cpp, the definition of get_float_dtype < LONGDOUBLE > and get_complex_dtype < 2 * LONGDOUBLE > lacks BOOST_NUMPY_DECL.

Output of libs/python/test:
capture-output ../bin.v2/libs/python/test/numpy~dtype.test/gcc-10/release/debug-symbols-on/pch-off/python-3.9/threading-multi/visibility-hidden/numpy~dtype
====== BEGIN OUTPUT ======
Traceback (most recent call last):
File "/root/rpmbuild/BUILD/boost_1_78_0/status/../libs/python/test/numpy/dtype.py", line 8, in
import dtype_ext
ImportError: /root/rpmbuild/BUILD/boost_1_78_0/bin.v2/libs/python/test/numpy~dtype.test/gcc-10/release/debug-symbols-on/pch-off/python-3.9/threading-multi/visibility-hidden/dtype_ext.so: undefined symbol: _ZN5boost6python5numpy6detail17get_complex_dtypeILi256EEENS1_5dtypeEv

EXIT STATUS: 1
====== END OUTPUT ======

@hdu-sdlzx
Copy link
Author

Looks we could just use BUILTIN_FLOAT_DTYPE and BUILTIN_COMPLEX_DTYPE?

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