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

Error compiling C/C++/Fortran projects with Python 3.8 on Linux #73

Closed
mcflugen opened this issue Mar 17, 2022 · 2 comments
Closed

Error compiling C/C++/Fortran projects with Python 3.8 on Linux #73

mcflugen opened this issue Mar 17, 2022 · 2 comments

Comments

@mcflugen
Copy link
Member

We get the following error when compiling a C, C++, or Fortran babelized project with Python 3.8 on Linux,

/usr/share/miniconda/envs/test/compiler_compat/ld: cannot find /lib64/libpthread.so.0
/usr/share/miniconda/envs/test/compiler_compat/ld: cannot find /usr/lib64/libpthread_nonshared.a

As described on StackOverflow, this is a result of our babelized projects specifying a build-system in pyproject.toml. The requirements listed in the build-system section are installed from PyPI with pip but, unfortunately, these requirements are incompatible with the conda compilers.

@mcflugen
Copy link
Member Author

#72 fixes this issue in our continuous integration tests. The fix is to first install the build-system with conda and then pip-install the project. That is,

$ mamba install cython numpy setuptools wheel

and then when installing the babelized project,

$ pip install -e . --no-build-isolation

@mdpiper
Copy link
Member

mdpiper commented Mar 15, 2024

Closing with c3c5674 and with #90.

@mdpiper mdpiper closed this as completed Mar 15, 2024
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

2 participants