Skip to content
This repository was archived by the owner on Nov 4, 2025. It is now read-only.

can't compile HNN source code #320

@lpntc

Description

@lpntc

Dear HNN team,

on my ARM mac pro, I get the following error after trying to compile the source code:

(hnn) ➜ hnn_source_code make
nrnivmodl mod
/usr/bin/xcrun
/Users/zahrasadat/hnn_source_code
-n Mod files:
-n "mod/ar.mod"
-n "mod/beforestep_py.mod"
-n "mod/ca.mod"
-n "mod/cad.mod"
-n "mod/cat.mod"
-n "mod/dipole.mod"
-n "mod/dipole_pp.mod"
-n "mod/hh2.mod"
-n "mod/kca.mod"
-n "mod/km.mod"
-n "mod/lfp.mod"
-n "mod/mea.mod"
-n "mod/vecevent.mod"

COBJS=''
-> Compiling beforestep_py.c
-> Compiling mod_func.c
-> Compiling ar.c
/Users/runner/miniforge3/conda-bld/neuron_1647273739170/_build_env/bin/clang -g -O2 -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /usr/local/Caskroom/miniforge/base/envs/hnn/include -fdebug-prefix-map=/Users/runner/miniforge3/conda-bld/neuron_1647273739170/work=/usr/local/src/conda/neuron-8.0.2 -fdebug-prefix-map=/usr/local/Caskroom/miniforge/base/envs/hnn=/usr/local/src/conda-prefix -I"../mod" -I. -I/usr/local/Caskroom/miniforge/base/envs/hnn/include -fPIC -c beforestep_py.c -o beforestep_py.o
-> Compiling ca.c
/Users/runner/miniforge3/conda-bld/neuron_1647273739170/_build_env/bin/clang -g -O2 -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /usr/local/Caskroom/miniforge/base/envs/hnn/include -fdebug-prefix-map=/Users/runner/miniforge3/conda-bld/neuron_1647273739170/work=/usr/local/src/conda/neuron-8.0.2 -fdebug-prefix-map=/usr/local/Caskroom/miniforge/base/envs/hnn=/usr/local/src/conda-prefix -I"../mod" -I. -I/usr/local/Caskroom/miniforge/base/envs/hnn/include -fPIC -c ca.c -o ca.o
/Users/runner/miniforge3/conda-bld/neuron_1647273739170/_build_env/bin/clang -g -O2 -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /usr/local/Caskroom/miniforge/base/envs/hnn/include -fdebug-prefix-map=/Users/runner/miniforge3/conda-bld/neuron_1647273739170/work=/usr/local/src/conda/neuron-8.0.2 -fdebug-prefix-map=/usr/local/Caskroom/miniforge/base/envs/hnn=/usr/local/src/conda-prefix -I"../mod" -I. -I/usr/local/Caskroom/miniforge/base/envs/hnn/include -fPIC -c ar.c -o ar.o
/Users/runner/miniforge3/conda-bld/neuron_1647273739170/_build_env/bin/clang -g -O2 -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /usr/local/Caskroom/miniforge/base/envs/hnn/include -fdebug-prefix-map=/Users/runner/miniforge3/conda-bld/neuron_1647273739170/work=/usr/local/src/conda/neuron-8.0.2 -fdebug-prefix-map=/usr/local/Caskroom/miniforge/base/envs/hnn=/usr/local/src/conda-prefix -I. -I/usr/local/Caskroom/miniforge/base/envs/hnn/include -fPIC -c mod_func.c -o mod_func.o
make[1]: /Users/runner/miniforge3/conda-bld/neuron_1647273739170/_build_env/bin/clang: No such file or directory
make[1]: *** [mod_func.o] Error 1
make[1]: *** Waiting for unfinished jobs....
/bin/sh: /Users/runner/miniforge3/conda-bld/neuron_1647273739170/_build_env/bin/clang: No such file or directory
make[1]: *** [beforestep_py.o] Error 127
/bin/sh: /Users/runner/miniforge3/conda-bld/neuron_1647273739170/_build_env/bin/clang: No such file or directory
make[1]: *** [ca.o] Error 127
/bin/sh: /Users/runner/miniforge3/conda-bld/neuron_1647273739170/_build_env/bin/clang: No such file or directory
make[1]: *** [ar.o] Error 127
make: *** [x86_64/special] Error 2

and here it is the post install check result:

(hnn) ➜ hnn_source_code installer/mac/check-post.sh

Performing post-install checks for HNN

Checking for XQuartz...ok
Checking if HNN is compiled...failed
Found a source code directory at /Users/zahrasadat/hnn_source_code, but it needs to be compiled (run make).

Checking for miniconda...ok
Checking for existing python...ok
Checking PATH environment variable for nrniv...ok
Checking PATH environment variable for mpiexec...ok
Checking PYTHONHOME environment variable is not set...ok
Checking NRN_PYLIB environment variable is not set...ok
Checking MPI functionality...ok
Checking NEURON nrniv funtionality...ok
Checking Python can import pyqtgraph module...ok
Checking Python can import matplotlib module...ok
Checking Python can import scipy module...ok
Checking Python can import psutil module...ok
Checking Python can import numpy module...ok
Checking Python can import nlopt module...ok
Checking Python can import neuron module...ok
Checking NEURON nrniv funtionality with Python...ok
Checking for setting LD_LIBRARY_PATH...ok
Checking NEURON nrniv funtionality with MPI...ok
Checking NEURON nrniv funtionality with Python and MPI...ok

Done with post-install checks

FAILED: there were one or more failed checks

I'd appreciate your help,
Best regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions