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

Bootstrap step fails if generator is not make #1

Open
awvwgk opened this issue Jul 6, 2022 · 2 comments
Open

Bootstrap step fails if generator is not make #1

awvwgk opened this issue Jul 6, 2022 · 2 comments

Comments

@awvwgk
Copy link

awvwgk commented Jul 6, 2022

Trying to bootstrap puffin fails if ninja is chosen as generator.

Config file excerpt

programs:
  utils:
    available: true
    cmake_flags: '-GNinja'
    cxx_compiler_flags: ''
    march: ''
    root: ''
    source: https://github.com/qcscine/utilities.git
    version: master

Error message

make: *** No rule to make target 'install'.  Stop.
Traceback (most recent call last):
  File "/opt/conda/envs/scine/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/opt/conda/envs/scine/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/opt/conda/envs/scine/lib/python3.10/site-packages/scine_puffin/__main__.py", line 156, in <module>
    main()
  File "/opt/conda/envs/scine/lib/python3.10/site-packages/scine_puffin/__main__.py", line 142, in main
    main_bootstrap(config)
  File "/opt/conda/envs/scine/lib/python3.10/site-packages/scine_puffin/__main__.py", line 74, in main_bootstrap
    bootstrap(config)
  File "/opt/conda/envs/scine/lib/python3.10/site-packages/scine_puffin/bootstrap.py", line 51, in bootstrap
    utils.install(utils_build_dir, install_dir, config["resources"]["cores"])
  File "/opt/conda/envs/scine/lib/python3.10/site-packages/scine_puffin/programs/utils.py", line 25, in install
    self.scine_module_install(repo_dir, install_dir, ncores)
  File "/opt/conda/envs/scine/lib/python3.10/site-packages/scine_puffin/programs/program.py", line 151, in scine_module_install
    subprocess.run(["make", "-j" + str(ncores), "install"], env=env, check=True)
  File "/opt/conda/envs/scine/lib/python3.10/subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['make', '-j1', 'install']' returned non-zero exit status 2.
@weymutht
Copy link
Member

weymutht commented Jul 6, 2022

Does it work if you use a different generator, e.g. standard Unix Makefiles?

@awvwgk
Copy link
Author

awvwgk commented Jul 6, 2022

Probably, but it will be slow.

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