Skip to content

Compiling Mod Files #1

@Vreddy11

Description

@Vreddy11

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions