mknrndll compiler errors in XP

NMODL and the Channel Builder.
Post Reply
mctavish
Posts: 74
Joined: Tue Mar 14, 2006 6:10 pm
Location: New Haven, CT

mknrndll compiler errors in XP

Post by mctavish »

I had CodeWarrior installed on my machine and recently removed it. Not sure if it's related or not, but I'm now getting the following errors when trying to run mknrndll.

Code: Select all

      7 [main] ? (3592) c:\nrn59\bin\sh.exe: *** fatal error - couldn't allocate heap, Win32 error 487, base 0x470000, top 0x480000, reserve_size 61440, allocsize 65536, page_const 4096
      7 [main] sh 1324 child_copy: stack write copy failed, 0x22E830..0x230000, done 0, windows pid 2287460, Win32 error 5
/cygdrive/c/nrn59/lib/mknrndl2.sh: Cannot fork: No error
      8 [main] ? (2360) c:\nrn59\bin\sh.exe: *** fatal error - couldn't allocate heap, Win32 error 487, base 0x470000, top 0x480000, reserve_size 61440, allocsize 65536, page_const 4096
     10 [main] sh 3028 child_copy: stack write copy failed, 0x22E6F0..0x230000, done 0, windows pid 2287140, Win32 error 5
/cygdrive/c/nrn59/lib/mknrndl2.sh: Cannot fork: No error

There was an error in the process of creating nrnmech.dll
Press Return key to exit
I reinstalled NEURON 5.9.39, but still get the same errors. If I try and compile one MOD file, I will successfully build nrnmech.dll, but there will be a similar message as the ones above.

What's the resolution?
Thanks,
Tom
ted
Site Admin
Posts: 6384
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Post by ted »

I wonder if CodeWarrior has its own cygwin, some of which remained behind after the
uninstall--maybe in the form of actual files in an obscure directory, or a persistent setting in
the Windows Registry, or an environment variable that points to a now-nonexistent directory
or configuration filie.

To see XP's enviornment variables, open a "Command Prompt" (just love those bogus
names they call these things) and execute the command
set
If you see anything suspicious,
--examine the Autoexec.bat in the root directory of your boot drive for set statements
--open Control Panel / System, click on Advanced, and then click on the Environment Variables button
Of course you have to be admin to change these.
hines
Site Admin
Posts: 1710
Joined: Wed May 18, 2005 3:32 pm

Post by hines »

I have no idea what the underlying problem is but the first step is to uninstall, and re-install with the latest setup.exe at
http://www.neuron.yale.edu/ftp/neuron/versions/alpha/
Then, if the problem persists, try to launch the sh.exe program in the c:/nrn59/bin directory and let me know if that gives the same error. Probably will be easiest to communicate via email.
mctavish
Posts: 74
Joined: Tue Mar 14, 2006 6:10 pm
Location: New Haven, CT

Post by mctavish »

Not too sure that this is the solution, but I had a ".;" prepending my classpath variable in my System:Advanced:Environment Variables. Upon removing ".;", I was able to successfully build nrnmechdll. Sometimes I still receive errors and sometimes not, but it always successfully builds. I believe that the errors now are because sometimes it does not delete temp files.
Post Reply