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

build issues with latest version 4.0.0 and openmc #227

Open
jon-proximafusion opened this issue Feb 11, 2025 · 3 comments
Open

build issues with latest version 4.0.0 and openmc #227

jon-proximafusion opened this issue Feb 11, 2025 · 3 comments
Labels

Comments

@jon-proximafusion
Copy link

Hi

I'm just trying to get openmc building with NCRYSTAL and noticing this error.

Wondering if you might be able to help over here on this PR shimwell/openmc#67 (comment)

snippet from CI logs

  -- OPENMC_USE_MPI OFF
  -- OPENMC_USE_MCPL on
  -- OPENMC_USE_NCRYSTAL ON
  -- OPENMC_USE_UWUW OFF
  Traceback (most recent call last):
    File "/opt/hostedtoolcache/Python/3.11.11/x64/bin/ncrystal-config", line 5, in <module>
      from _ncrystal_core.info import _ncrystal_config_cli_wrapper
  ModuleNotFoundError: No module named '_ncrystal_core'
  CMake Error at CMakeLists.txt:135 (find_package):
    By not providing "FindNCrystal.cmake" in CMAKE_MODULE_PATH this project has
    asked CMake to find a package configuration file provided by "NCrystal",
    but CMake did not find one.

    Could not find a package configuration file provided by "NCrystal"
    (requested version 3.8.0) with any of the following names:

      NCrystalConfig.cmake
      ncrystal-config.cmake

    Add the installation prefix of "NCrystal" to CMAKE_PREFIX_PATH or set
    "NCrystal_DIR" to a directory containing one of the above files.  If
    "NCrystal" provides a separate development package or SDK, be sure it has
    been installed.


  -- Configuring incomplete, errors occurred!

  *** CMake configuration failed
  error: subprocess-exited-with-error
@jon-proximafusion jon-proximafusion changed the title build issues with latest version 4.0.0 build issues with latest version 4.0.0 and openmc Feb 11, 2025
@tkittel
Copy link
Member

tkittel commented Feb 11, 2025

Ok, I will comment on the PR.

@ahnaf-tahmid-chowdhury
Copy link

It seems that in the CMake configuration, NCrystal defines things as NCrystal_, but in the actual NCrystal CMakeLists.txt, these are set as NCRYSTAL_.

@ahnaf-tahmid-chowdhury
Copy link

I also suggest creating a method to retrieve the library path from the python side as well thus we may need to depend on subprocess. I think this might be helpful:
https://github.com/shimwell/openmc/blob/7b9eb0b74d06a7f6593763f9e94db7073c716b3d/openmc/__init__.py#L55

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

No branches or pull requests

3 participants