neuronsimulator / nrn

NEURON Simulator
http://nrn.readthedocs.io
Other
395 stars 116 forks source link

Circular src/nrnpython/inithoc.cpp <- src/nrnpython/inithoc.cpp dependency dropped #1668

Open pedroernesto opened 2 years ago

pedroernesto commented 2 years ago

Context

Overview of the issue

When building NEURON 8.0.2 from source on Jusuf, circular dependencies issues are found.

Expected result/behavior

Complete installation of the NEURON code, compiled with cmake

NEURON setup

Minimal working example - MWE

cmake --install .


## Logs

[  0%] Built target mkg3states
[ 23%] Built target interviews
[ 36%] Built target unidraw
[ 37%] Built target iclass
[ 37%] Built target idemo
[ 39%] Built target idraw
[ 42%] Built target nocmodl
[ 45%] Built target modlunit
[ 45%] Built target nrnversion_h
[ 45%] Update hh.mod for CoreNEURON compatibility
[ 45%] Built target hh_update
[ 45%] Generating help_data.dat
[ 45%] Built target help_data_dat
[ 98%] Built target nrniv_lib
[ 98%] Built target nrniv
[ 99%] Built target nrnpython3
[ 99%] Built target rxdmath
[100%] Built target rxd_cython_generated
gmake[2]: Circular src/nrnpython/inithoc.cpp <- src/nrnpython/inithoc.cpp dependency dropped.
pedroernesto commented 2 years ago

The problem was in compiling inside the nrn source directory, not in another directory that should be created instead.

pramodk commented 2 years ago

@pedroernesto : thanks for reporting! I have reproduced this issue in the morning but didn't get time to PR patch. As you mentioned, for now, avoid in-source build.

(I will open this issue as a reminder for us)