I'm trying to run this model: https://modeldb.science/195615
After unzipping the files, I opened up cmd and tried 'nrnivmodl' in the directory. It came up with the following:
Code: Select all
C:\Users\~\modeldb 195615\spidemo>nrnivmodl
x86_64-w64-mingw32-gcc.exe -DDLL_EXPORT -DPIC -I/cygdrive/c/nrn/bin//../include -I/cygdrive/c/nrn/bin//../src/scopmath -I/cygdrive/c/nrn/bin//../src/nrnoc -I/cygdrive/c/nrn/bin//../src/oc -c mod_func.c
x86_64-w64-mingw32-gcc.exe -DDLL_EXPORT -DPIC -I/cygdrive/c/nrn/bin//../include -I/cygdrive/c/nrn/bin//../src/scopmath -I/cygdrive/c/nrn/bin//../src/nrnoc -I/cygdrive/c/nrn/bin//../src/oc -c misc.c
misc.c:49:22: error: expected ';', ',' or ')' before '->' token
49 | #define t nrn_threads->_t
| ^~
misc.c:49:22: error: expected ';', ',' or ')' before '->' token
49 | #define t nrn_threads->_t
| ^~
misc.c:49:22: error: expected ';', ',' or ')' before '->' token
49 | #define t nrn_threads->_t
| ^~
misc.c:49:22: error: expected ';', ',' or ')' before '->' token
49 | #define t nrn_threads->_t
| ^~
misc.c:49:22: error: expected ';', ',' or ')' before '->' token
49 | #define t nrn_threads->_t
| ^~
misc.c:49:22: error: expected ';', ',' or ')' before '->' token
49 | #define t nrn_threads->_t
| ^~
misc.c:49:22: error: expected ';', ',' or ')' before '->' token
49 | #define t nrn_threads->_t
| ^~
misc.c:49:22: error: expected ';', ',' or ')' before '->' token
49 | #define t nrn_threads->_t
| ^~
misc.c:49:22: error: expected ';', ',' or ')' before '->' token
49 | #define t nrn_threads->_t
| ^~
misc.c: In function 'nokill_':
misc.c:326:10: error: 'SIGHUP' undeclared (first use in this function)
326 | signal(SIGHUP, SIG_IGN);
| ^~~~~~
misc.c:326:10: note: each undeclared identifier is reported only once for each function it appears in
make: *** [/cygdrive/c/nrn/bin//../lib/mknrndll.mak:26: misc.o] Error 1
There was an error in the process of creating nrnmech.dll
Code: Select all
C:\Users\~\modeldb 195615\spidemo> mknrndll
x86_64-w64-mingw32-gcc.exe -DDLL_EXPORT -DPIC -I/cygdrive/c/nrn/bin//../include -I/cygdrive/c/nrn/bin//../src/scopmath -I/cygdrive/c/nrn/bin//../src/nrnoc -I/cygdrive/c/nrn/bin//../src/oc -c mod_func.c
nocmodl cadad
Translating cadad.mod into cadad.c
Thread Safe
x86_64-w64-mingw32-gcc.exe -DDLL_EXPORT -DPIC -I/cygdrive/c/nrn/bin//../include -I/cygdrive/c/nrn/bin//../src/scopmath -I/cygdrive/c/nrn/bin//../src/nrnoc -I/cygdrive/c/nrn/bin//../src/oc -c cadad.c
nocmodl cal2
Translating cal2.mod into cal2.c
Warning: Default 2 of PARAMETER cao will be ignored and set by NEURON.
Warning: Default 5e-05 of PARAMETER cai will be ignored and set by NEURON.
Thread Safe
x86_64-w64-mingw32-gcc.exe -DDLL_EXPORT -DPIC -I/cygdrive/c/nrn/bin//../include -I/cygdrive/c/nrn/bin//../src/scopmath -I/cygdrive/c/nrn/bin//../src/nrnoc -I/cygdrive/c/nrn/bin//../src/oc -c cal2.c
nocmodl can_mig
Translating can_mig.mod into can_mig.c
Warning: Default 2 of PARAMETER cao will be ignored and set by NEURON.
Warning: Default 5e-05 of PARAMETER cai will be ignored and set by NEURON.
Thread Safe
x86_64-w64-mingw32-gcc.exe -DDLL_EXPORT -DPIC -I/cygdrive/c/nrn/bin//../include -I/cygdrive/c/nrn/bin//../src/scopmath -I/cygdrive/c/nrn/bin//../src/nrnoc -I/cygdrive/c/nrn/bin//../src/oc -c can_mig.c
nocmodl h_kole
Translating h_kole.mod into h_kole.c
Thread Safe
x86_64-w64-mingw32-gcc.exe -DDLL_EXPORT -DPIC -I/cygdrive/c/nrn/bin//../include -I/cygdrive/c/nrn/bin//../src/scopmath -I/cygdrive/c/nrn/bin//../src/nrnoc -I/cygdrive/c/nrn/bin//../src/oc -c h_kole.c
nocmodl kBK
Translating kBK.mod into kBK.c
Thread Safe
x86_64-w64-mingw32-gcc.exe -DDLL_EXPORT -DPIC -I/cygdrive/c/nrn/bin//../include -I/cygdrive/c/nrn/bin//../src/scopmath -I/cygdrive/c/nrn/bin//../src/nrnoc -I/cygdrive/c/nrn/bin//../src/oc -c kBK.c
nocmodl kap_BS
Translating kap_BS.mod into kap_BS.c
Thread Safe
x86_64-w64-mingw32-gcc.exe -DDLL_EXPORT -DPIC -I/cygdrive/c/nrn/bin//../include -I/cygdrive/c/nrn/bin//../src/scopmath -I/cygdrive/c/nrn/bin//../src/nrnoc -I/cygdrive/c/nrn/bin//../src/oc -c kap_BS.c
nocmodl kdmc_BS
Translating kdmc_BS.mod into kdmc_BS.c
Thread Safe
x86_64-w64-mingw32-gcc.exe -DDLL_EXPORT -DPIC -I/cygdrive/c/nrn/bin//../include -I/cygdrive/c/nrn/bin//../src/scopmath -I/cygdrive/c/nrn/bin//../src/nrnoc -I/cygdrive/c/nrn/bin//../src/oc -c kdmc_BS.c
nocmodl kdr_BS
Translating kdr_BS.mod into kdr_BS.c
Thread Safe
x86_64-w64-mingw32-gcc.exe -DDLL_EXPORT -DPIC -I/cygdrive/c/nrn/bin//../include -I/cygdrive/c/nrn/bin//../src/scopmath -I/cygdrive/c/nrn/bin//../src/nrnoc -I/cygdrive/c/nrn/bin//../src/oc -c kdr_BS.c
nocmodl misc
Translating misc.mod into misc.c
Notice: VERBATIM blocks are not thread safe
x86_64-w64-mingw32-gcc.exe -DDLL_EXPORT -DPIC -I/cygdrive/c/nrn/bin//../include -I/cygdrive/c/nrn/bin//../src/scopmath -I/cygdrive/c/nrn/bin//../src/nrnoc -I/cygdrive/c/nrn/bin//../src/oc -c misc.c
misc.c:49:22: error: expected ';', ',' or ')' before '->' token
49 | #define t nrn_threads->_t
| ^~
misc.c:49:22: error: expected ';', ',' or ')' before '->' token
49 | #define t nrn_threads->_t
| ^~
misc.c:49:22: error: expected ';', ',' or ')' before '->' token
49 | #define t nrn_threads->_t
| ^~
misc.c:49:22: error: expected ';', ',' or ')' before '->' token
49 | #define t nrn_threads->_t
| ^~
misc.c:49:22: error: expected ';', ',' or ')' before '->' token
49 | #define t nrn_threads->_t
| ^~
misc.c:49:22: error: expected ';', ',' or ')' before '->' token
49 | #define t nrn_threads->_t
| ^~
misc.c:49:22: error: expected ';', ',' or ')' before '->' token
49 | #define t nrn_threads->_t
| ^~
misc.c:49:22: error: expected ';', ',' or ')' before '->' token
49 | #define t nrn_threads->_t
| ^~
misc.c:49:22: error: expected ';', ',' or ')' before '->' token
49 | #define t nrn_threads->_t
| ^~
misc.c: In function 'nokill_':
misc.c:326:10: error: 'SIGHUP' undeclared (first use in this function)
326 | signal(SIGHUP, SIG_IGN);
| ^~~~~~
misc.c:326:10: note: each undeclared identifier is reported only once for each function it appears in
make: *** [/cygdrive/c/nrn/bin//../lib/mknrndll.mak:26: misc.o] Error 1
There was an error in the process of creating nrnmech.dll
I have also tried removing all the *.o, *.c, *.cpp, *.dll files from the folder (and there is no x86_64 folder).
I have NEURON 8.2.6 AMD64 on Windows 10. I also have some scripts in python calling neuron which seem to work fine.
Please let me know what I'm missing/what more information i should provide.