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

Add missing build dependency of hoc_module. #1277

Merged
merged 1 commit into from
May 14, 2021

Conversation

olupton
Copy link
Collaborator

@olupton olupton commented May 14, 2021

Add missing dependency of hoc_module on rxd_cython_generated.
This declares that src/nrnpython/setup.py depends on generated .cpp files such as share/lib/python/neuron/rxd/geometry3d/graphicsPrimitives.cpp and fixes build errors such as https://github.com/neuronsimulator/nrn-build-ci/runs/2580705143?check_suite_focus=true:

[892/1396] Running utility command for hoc_module
FAILED: src/nrnpython/CMakeFiles/hoc_module.util 
cd /__w/nrn-build-ci/nrn-build-ci/nrn/build/src/nrnpython && /usr/bin/cmake -E copy_directory /__w/nrn-build-ci/nrn-build-ci/nrn/share/lib /__w/nrn-build-ci/nrn-build-ci/nrn/build/share/nrn/lib && /usr/bin/cmake -E copy_directory /__w/nrn-build-ci/nrn-build-ci/nrn/share/demo /__w/nrn-build-ci/nrn-build-ci/nrn/build/share/nrn/demo && cd /__w/nrn-build-ci/nrn-build-ci/nrn/build/src/nrnpython && /usr/bin/cmake -E copy_if_different /__w/nrn-build-ci/nrn-build-ci/nrn/src/nrnpython/inithoc.cpp /__w/nrn-build-ci/nrn-build-ci/nrn/build/src/nrnpython/inithoc.cpp && /usr/bin/python3 setup.py --quiet build --build-lib=/__w/nrn-build-ci/nrn-build-ci/nrn/build/lib/python
gcc: error: ../../share/lib/python/neuron/rxd/geometry3d/graphicsPrimitives.cpp: No such file or directory
gcc: fatal error: no input files
compilation terminated.
error: command '/usr/bin/gcc' failed with exit status 1

To reproduce the problem locally I had to reduce the number of parallel build jobs. nrn-build-ci uses 2 jobs in Linux runners and 3 for macOS, and only Linux jobs were failing.

Add missing dependency of `hoc_module` on `rxd_cython_generated`. This
declares that src/nrnpython/setup.py depends on generated .cpp files
such as share/lib/python/neuron/rxd/geometry3d/graphicsPrimitives.cpp
and fixes build errors.
Copy link
Member

@pramodk pramodk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

(Often I turn off RXD option and thats why I didn't see mentioned error before)

@pramodk pramodk merged commit 436150e into master May 14, 2021
@pramodk pramodk deleted the olupton/add-missing-build-dependency branch May 14, 2021 08:05
@alexsavulescu
Copy link
Member

Was hitting this sometimes in local after switching to ninja. Makefile may have triggered it less often.

alexsavulescu pushed a commit that referenced this pull request Jan 28, 2022
* Add missing dependency of `hoc_module` on `rxd_cython_generated`
* This declares that src/nrnpython/setup.py depends on generated .cpp
  files such as share/lib/python/neuron/rxd/geometry3d/graphicsPrimitives.cpp
  and fixes build errors.
@alexsavulescu alexsavulescu mentioned this pull request Mar 22, 2022
15 tasks
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

Successfully merging this pull request may close these issues.

3 participants