Error to compile

Post Reply
Jose Gomez
Posts: 6
Joined: Thu Mar 23, 2006 1:56 am
Location: IMBB-FORTH Greece, UNIC Paris & ULL Spain

Error to compile

Post by Jose Gomez »

Hello everyone,
I have Window NT and NEURON 4.3.1 . I wanted to compile my files, but when I run “mknrndllâ€
ted
Site Admin
Posts: 6300
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Post by ted »

First, discover which mod file is causing the problem (if necessary, test them individually).
Next, check that mod file with modlunit, which often gives more informative error messages
than mknrndll does.
Finally, tell us what you found out.
Jose Gomez
Posts: 6
Joined: Thu Mar 23, 2006 1:56 am
Location: IMBB-FORTH Greece, UNIC Paris & ULL Spain

Post by Jose Gomez »

Hello. I cheked in Window XP and it was the same error that with Window NT.

I did that you said, but the result was the same:

[mknrndll]c:\NRN\AEC\LIB>ls
pcipulse.mod pecomprb.mod pefitrb.mod

[mknrndll]c:\NRN\AEC\LIB>modlunit pefitrb.mod
Stack Fault at eip=506d
eax=00000301 ebx=00006136 ecx=00000000 edx=0000ffff esi=00000421 edi=0000acde
ebp=0000ffa2 esp=00055b04 cs=19f ds=17f es=17f fs=0 gs=0 ss=1b7 cr2=00009fd8
Call frame traceback EIPs:
0x0000506d
0xffc20001
mknrndll]c:\NRN\AEC\LIB>


When I used mknrndll I had 2 "Stack Fault". I checked the mkrnrndll.sh and I saw that the first "Stack Fault" is due to

if test $# -gt 0
then
files=$*
else
files=`ls -1 "*.mod"|sed s/.mod//`
fi


I changed all these lines for

files=$*.mod

and then the first error disappeared, but I don't know if it works and where the other error is in.

The best
Jose
ted
Site Admin
Posts: 6300
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Post by ted »

Maybe there is a problem in the mod files. If you zip up the mod files and email them to me
ted .dot. carnevale .at. yale .dot. edu
I will try to discover what is wrong and tell you how to fix it.
hines
Site Admin
Posts: 1691
Joined: Wed May 18, 2005 3:32 pm

Post by hines »

The only windows machine I have is a laptop running xp. I installed 4.3.1 and
am able to launch neuron related executables but not sed, make, gcc,
etc. Curiously, many of the smaller
djgpp programs such as sh, ls, mv, rm seem to work fine. The 4.3.1 package predates the conversion to cygwin.
I would hate to hazzard a guess as to what is going wrong between the version
of djgpp I am using and my xp operating system. That version may be limited to
win95 with respect to the mknrndll process even though neurondemo seems
to work fine. It would be easy enough to find a replacement sed, make, etc, but not so easy to replace the gcc portion since there is a tight relationship between the nrnmech.dll binary format and what that particular combination of gcc, ld, and go32.exe produces.

What aspect of the version is a requirement? I.e. are you unable to use anything related to cygwin?
Jose Gomez
Posts: 6
Joined: Thu Mar 23, 2006 1:56 am
Location: IMBB-FORTH Greece, UNIC Paris & ULL Spain

Post by Jose Gomez »

Hello,
I reinstalled the basic configuration of Window NT again without service Packs and the NEURON 4.3.1 works now.
Thank very much
The best
Jose
Post Reply