Page 1 of 1

Can't Rebuild System Files

Posted: Mon Jul 08, 2013 10:48 am
by cbein
I am trying to enable UCOS_STACKCHECK, but when I try to rebuild the modified system files or rebuild all system files, I receive an error.

Code: Select all

Error: Build Error during build System. See build console for details
In the console for rebuilding the modified system files I get something like this

Code: Select all

m68k-elf-gcc -c -m5206e -gdwarf-2 -Wall -falign-functions=4 -O2 -DMOD5441X -DMCF5441X -DNBMINGW -I"C:\nburn/include" -I"C:\nburn/MOD5441X/include"   ucosmcfc.c -o ucosmcfc.o
      0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
AllocationBase 0x0, BaseAddress 0x71110000, RegionSize 0x180000, State 0x10000
C:\nburn\gcc-m68k\msys\1.0\bin\sh.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
For rebuilding all system files I get something like this

Code: Select all

AllocationBase 0x0, BaseAddress 0x71110000, RegionSize 0x180000, State 0x10000
m68k-elf-as -m5206e   ucosmcfa.s -o ucosmcfa.o
m68k-elf-ar cr C:\nburn/lib/NetBurner.a ucosmcfa.o
m68k-elf-as -m5206e   software_init.s -o software_init.o
m68k-elf-ar cr C:\nburn/lib/NetBurner.a software_init.o
m68k-elf-gcc -c -m5206e -gdwarf-2 -Wall -falign-functions=4 -O2 -DMOD5441X -DMCF5441X -DNBMINGW -I"C:\nburn/include" -I"C:\nburn/MOD5441X/include"   ucosmcfc.c -o ucosmcfc.o
      0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
rm ucosmcfa.o software_init.o
make: *** [ucosmcfc.o] Error 1
The console says the rebuild was terminated at makeclean. Any ideas how to fix this? I've tried searching the forums and netburner documentation for solutions. I am using NBEclipse IDE realease 2.6 with MOD54415

Re: Can't Rebuild System Files

Posted: Mon Jul 08, 2013 11:56 am
by ecasey
Are you using 2.6.0 or the Beta 2.6.2?

I recall having similar difficulties rebuilding system files with 2.6.0 and I think that was fixed in 2.6.2.

Look at the release notes for 2.6.2. at http://www.netburner.com/support/netburner-nndk under "Corrections in the Version".

Ed

Re: Can't Rebuild System Files

Posted: Mon Jul 08, 2013 12:47 pm
by cbein
I've been using 2.6.0. I just installed 2.6.2, and I am still have the same errors.

Re: Can't Rebuild System Files

Posted: Mon Jul 08, 2013 1:05 pm
by Forrest
cbein wrote: In the console for rebuilding the modified system files I get something like this

Code: Select all

m68k-elf-gcc -c -m5206e -gdwarf-2 -Wall -falign-functions=4 -O2 -DMOD5441X -DMCF5441X -DNBMINGW -I"C:\nburn/include" -I"C:\nburn/MOD5441X/include"   ucosmcfc.c -o ucosmcfc.o
      0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
AllocationBase 0x0, BaseAddress 0x71110000, RegionSize 0x180000, State 0x10000
C:\nburn\gcc-m68k\msys\1.0\bin\sh.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
We do not use cygwin in our release. It looks like you have an environment issue, ie, you are calling a make utility that was not included with the NetBurner tools.

Try following the steps to correct your windows PATH env variable highlighted here:
http://wiki.embeddedethernet.com/Suppor ... rectory.22

Re: Can't Rebuild System Files

Posted: Tue Jul 09, 2013 12:17 pm
by cbein
I tried the steps from the Support FAQ, and I was not able to build from the command line, so I saved my important source files, and I uninstalled the NetBurner NNDK and deleted the directory c:\nburn, then I reinstalled the current release 2.6.2, and imported my source files.

This resolved my issue, and I am now able to rebuild the system files.

Thanks,
Jared