make error

Post Reply
rishabh

make error

Post by rishabh »

Installing Running NEURON 5.2.

./configure --prefix =/home/rishabh --without-iv

above is successful

follwed by 'make' which gives the following error
******************
make[3]: Entering directory `/home2/rishabh/nrn-5.2/src/modlunit'
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src/parallel -I../../src/nrnjava -I../../src/nrncvode -DNRNUNIT=1 -g -O2 -c list.c
list.c: In function 'emalloc':
list.c:214: error: conflicting types for 'malloc'
In file included from list.c:333:
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.1.1/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.1.1/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
list.c: In function 'makelist':
list.c:348: error: expected declaration specifiers before 'va_dcl'
list.c:376: error: expected declaration specifiers before 'append'
list.c:379: error: 'ql' undeclared (first use in this function)
list.c:379: error: (Each undeclared identifier is reported only once
list.c:379: error: for each function it appears in.)
list.c:380: error: 'q' undeclared (first use in this function)
list.c: In function 'itemarray':
list.c:406: error: expected declaration specifiers before 'va_dcl'
list.c:433: error: expected '{' at end of input
make[3]: *** [list.o] Error 1
make[3]: Leaving directory `/home2/rishabh/nrn-5.2/src/modlunit'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home2/rishabh/nrn-5.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home2/rishabh/nrn-5.2'
make: *** [all-recursive-am] Error 2
**********************


plz help
rishabh

more on make error

Post by rishabh »

encountering same problem in NEURON 5.3

there seems to be something wrong in list1.c file located in nrn/src/modlunit/.
trying incorporating the suggested change in error output, i.e of changing
#include <varargs.h>
to
#include<stdarg.h>

but still gives the following error

Making all in modlunit
make[3]: Entering directory `/home2/rishabh/nrn-5.3/src/modlunit'
source='list.c' object='list.o' libtool=no \
depfile='.deps/list.Po' tmpdepfile='.deps/list.TPo' \
depmode=gcc3 /bin/sh ../../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src/parallel -I../../src/nrnjava -I../../src/nrncvode -DNRNUNIT=1 -g -O2 -c `test -f 'list.c' || echo './'`list.c
list.c: In function 'emalloc':
list.c:214: error: conflicting types for 'malloc'
list.c: In function 'makelist':
list.c:348: error: expected declaration specifiers before 'va_dcl'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
why no declaration specifier before va_dcl (checked it, there is none)

list.c:364:14: error: macro "va_start" requires 2 arguments, but only 1 given
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

#if MAC || defined(__TURBOC__)
va_start (ap, narg); (fount this line)


list.c:376: error: expected declaration specifiers before 'append'
list.c:379: error: 'ql' undeclared (first use in this function)
list.c:379: error: (Each undeclared identifier is reported only once
list.c:379: error: for each function it appears in.)
list.c:380: error: 'q' undeclared (first use in this function)
list.c: In function 'itemarray':
list.c:406: error: expected declaration specifiers before 'va_dcl'
list.c:419:14: error: macro "va_start" requires 2 arguments, but only 1 given
list.c:433: error: expected '{' at end of input
make[3]: *** [list.o] Error 1
make[3]: Leaving directory `/home2/rishabh/nrn-5.3/src/modlunit'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home2/rishabh/nrn-5.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home2/rishabh/nrn-5.3'
make: *** [all] Error 2


*******

basically its full of errors

what to do ? I only want to run these versions (5.2/5.3) ?
hines
Site Admin
Posts: 1600
Joined: Wed May 18, 2005 3:32 pm

Post by hines »

Code: Select all

list.c:214: error: conflicting types for 'malloc' 
and others

Take a look at
http://www.neuron.yale.edu/cgi-bin/trac ... nit/list.c
to see the few changes over the past years which would fix those problems.
rishabh

still does not work

Post by rishabh »

I have done the following
i) I compared @3 and @1888 version of list.c and made all the changes.

Still it gave errors in "makelist" and "itemarray" functions
************
list.c:1:28: error: ../../nmodlconf.h: No such file or directory
list.c: In function 'stralloc':
list.c:232: warning: incompatible implicit declaration of built-in function 'strlen'
list.c:233: warning: incompatible implicit declaration of built-in function 'strcpy'
list.c: In function 'makelist':
list.c:349: error: expected declaration specifiers before 'va_dcl'
list.c:365:14: error: macro "va_start" requires 2 arguments, but only 1 given
list.c:377: error: expected declaration specifiers before 'append'
list.c:380: error: 'ql' undeclared (first use in this function)
list.c:380: error: (Each undeclared identifier is reported only once
list.c:380: error: for each function it appears in.)
list.c:381: error: 'q' undeclared (first use in this function)
list.c: In function 'itemarray':
list.c:404: error: expected declaration specifiers before 'va_dcl'
list.c:416:14: error: macro "va_start" requires 2 arguments, but only 1 given
list.c:430: error: expected '{' at end of input
make[3]: *** [list.o] Error 1
make[3]: Leaving directory `/home2/rishabh/nrn-5.3/src/modlunit'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home2/rishabh/nrn-5.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home2/rishabh/nrn-5.3'
make: *** [all] Error 2
*****************

I then looked at the change set [@1888] and made changes in all the files except the following ones because the first two are not there in NEURON 5.2 distribution and the last one had too many changes to go throught(2000 line code).
Anyways I think the problem does not lie here.....

nrn/trunk/src/nrnmpi/bbsmpipack.c (modified) (1 diff)
nrn/trunk/src/nrnoc/nrntimeout.c (modified) (1 diff)
nrn/trunk/src/nrnoc/treeset.c (modified) (1 diff)

I redid
./configure --prefix = /home2/rishabh --without-iv
make: this gave the error listed above already

What should I do ?

Rishabh
ted
Site Admin
Posts: 5784
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Post by ted »

Is there a specific reason why you can't just use the current standard
distribution of NEURON?
Post Reply