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

Document phonopy cmake error troubleshooting #373

Open
ElliottKasoar opened this issue Jan 3, 2025 · 0 comments
Open

Document phonopy cmake error troubleshooting #373

ElliottKasoar opened this issue Jan 3, 2025 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New/improved feature or request

Comments

@ElliottKasoar
Copy link
Member

When installing, I (and others) have encountered errors along the lines of:

CMake Error at /tmp/pip-build-env-j2jx9pp5/overlay/lib/python3.11/site-packages/nanobind/cmake/nanobind-config.cmake:243 (target_compile_features):
    target_compile_features The compiler feature "cxx_std_17" is not known to
    CXX compiler

    "GNU"

    version 4.8.5.
  Call Stack (most recent call first):
    /tmp/pip-build-env-j2jx9pp5/overlay/lib/python3.11/site-packages/nanobind/cmake/nanobind-config.cmake:358 (nanobind_build_library)
    CMakeLists.txt:108 (nanobind_add_module)


  -- Configuring incomplete, errors occurred!

  *** CMake configuration failed
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for phonopy
Building wheel for python-hostlist (setup.py) ... done
Created wheel for python-hostlist: filename=python_hostlist-2.2.1-py3-none-any.whl size=39604 sha256=44f9f27a42895e61a521cf9129a6a3ad03e633b201390da5ef76d5f59db3b94f
Stored in directory: ...
Successfully built janus-core python-hostlist
Failed to build phonopy
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (phonopy)

This isn't an issue with janus as such, but since users may be less familiar with cmake/compilers, a small troubleshooting section, e.g. suggesting ensuring compilers are identifiable and updated, may be useful.

@ElliottKasoar ElliottKasoar added documentation Improvements or additions to documentation enhancement New/improved feature or request labels Jan 3, 2025
@ElliottKasoar ElliottKasoar self-assigned this Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New/improved feature or request
Projects
None yet
Development

No branches or pull requests

1 participant