-
Notifications
You must be signed in to change notification settings - Fork 280
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
ImportError when compiling with gcc 14.1.1 and conda #4922
Comments
After some digging, it seems like:
I'm not sure how to fix it. In the meantime, compiling with GCC-13 works :) |
Gotcha! Here's more info: $ python -c "import yt"
# fails with `ImportError: [...]/yt/utilities/lib/image_samplers.cpython-312-x86_64-linux-gnu.so
# undefined symbol: __cxa_call_terminate`
$ ldd yt/utilities/lib/image_samplers.cpython-312-x86_64-linux-gnu.so
[...]
libstdc++.so.6 => ~/miniforge3/envs/py312/lib/libstdc++.so.6 (0x00007fd779101000)
[...]
# If we preload the system C++ std library this now works
$ LD_PRELOAD=/usr/lib64/libstdc++.so.6.0.33 python -c 'import yt' |
Is it possible that you are compiling with the "wrong" CXX and this gets baked in? I don't see and |
The gcc/g++ version that is being used by default is the system one. Or are you saying one should install gcc/g++ with conda? I'm not sure there's any actionable solution for this issue, so I'm also fine to close it as "stalled". |
Could you try installing the conda gcc/g++ and seeing if that fixes it? |
probably not helpful, but I am running yt with GCC 14.1. I install from source and build with |
Bug report
Bug summary
The code compiles but fails when being imported.
Code for reproduction
python -c "import yt"
Actual outcome
Expected outcome
No error.
Version Information
conda-forge
channel.Other pieces of information:
CC=gcc-13 CXX=g++-13 python -m pip install -e yt
).The last point suggests some incompatibility between the conda-provided
libstdcxx-ng
(on version 13.2) install and the system-wide one (on version 14.1).Details
Conda environment
The text was updated successfully, but these errors were encountered: