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

Compiling Mod Files #1

Open
Vreddy11 opened this issue Dec 21, 2020 · 1 comment
Open

Compiling Mod Files #1

Vreddy11 opened this issue Dec 21, 2020 · 1 comment

Comments

@Vreddy11
Copy link

Vreddy11 commented Dec 21, 2020

Hi,
I was having problems compiling mod files while attempting to run this netpyne model. Most of the mod files compile but one of them doesnt (misc.mod). Running "nrnivmodl" in terminal results in the following errors:

gcc -O2 -I".." -I. -I/Users/vineetreddy/opt/anaconda3/lib/python3.8/site-packages/neuron/.data/include -I/usr/local/Cellar/open-mpi/4.0.5/include -fPIC -c nafolmkop.c -o nafolmkop.o
misc.c:237:14: error: implicit declaration of function 'hoc_is_tempobj_arg' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
listmpobj=hoc_is_tempobj_arg(1);
^
misc.c:237:14: note: did you mean 'hoc_is_tempobj'?
misc.c:200:12: note: 'hoc_is_tempobj' declared here
extern int hoc_is_tempobj(int narg);
^
misc.c:260:9: error: non-void function 'sassign
' should return a value [-Wreturn-type]
return;
^
misc.c:265:25: error: non-void function 'sassign_' should return a value [-Wreturn-type]
pclose(pipein); return;
^
misc.c:294:9: error: non-void function 'dassign_' should return a value [-Wreturn-type]
return;
^
misc.c:299:26: error: non-void function 'dassign_' should return a value [-Wreturn-type]
fclose(outfile); return;
^
misc.c:304:42: error: non-void function 'dassign_' should return a value [-Wreturn-type]
fclose(outfile); pclose(pipein); return;
^
misc.c:406:28: warning: format specifies type 'unsigned int' but the argument has type 'char *' [-Wformat]
printf("Did %ld: %x\n",x,pmlc);
~~ ^~~~
%s
1 warning and 6 errors generated.
make: *** [misc.o] Error 1

I was wondering if there is a solution to this problem. I am using macOS Catalina for reference.
Thank you

@joewgraham
Copy link

misc.mod compiles now, but causes an error in NEURON. See here: #2

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