[En-Nut-Discussion] ethernut-4.8.9 compile errors

Stefan Profanter enut at s.profanter.me
Sun Apr 10 14:57:21 CEST 2011


Hi!

I downloaded the new NutOS release: ethernut-4.8.9 and tried to build it
under Windows 7 x64 SP1.

 

But there were some errors. I post here one solution, maybe somebody has the
same problem:

 

------------

 

First I got lots of following errors on make clean and make all:

 

AllocationBase 0x0, BaseAddress 0x71590000, RegionSize 0xB0000, State
0x10000

D:\HomeAutomation\ethernut-4.8.9\nut\tools\win32\rm.exe: *** Couldn't
reserve space for cygwin's heap, Win32 error 0

 

Then I found the solution at:

http://www.mikrocontroller.net/topic/70505#new

 

The file ethernut-4.8.9\nut\tools\win32\msys-1.0.dll has a wrong base
address. This issue is already fixed in the recent WinAVR code, but it seems
the file delivered with NutOS is quite old.

(Described at http://www.madwizard.org/electronics/articles/winavrvista
(Cygwin heap problem) ).

 

You can also download the following file if you are having this problem:

http://www.mikrocontroller.net/attachment/23645/msys-1.0_rebased.zip

 

This fixed it for me.

 

------------

 

Then I got errors about variables set but not used:

 

../../nut/arch/arm/dev/ostimer_at91.c: In function 'NutRegisterTimer':

../../nut/arch/arm/dev/ostimer_at91.c:194:9: error: variable 'dummy' set but
not used [-Werror=unused-but-set-variable]

cc1.exe: all warnings being treated as errors

 

../../nut/dev/spibus_npl.c: In function 'NplSpiBusNodeInit':

../../nut/dev/spibus_npl.c:218:16: error: variable 'bus' set but not used
[-Werror=unused-but-set-variable]

cc1.exe: all warnings being treated as errors

 

../../nut/dev/lan91.c: In function 'NicPhyConfig':

../../nut/dev/lan91.c:296:14: error: variable 'phy_sor' set but not used
[-Werror=unused-but-set-variable]

../../nut/dev/lan91.c: In function 'Lan91Output':

../../nut/dev/lan91.c:836:14: error: variable 'ni' set but not used
[-Werror=unused-but-set-variable]

cc1.exe: all warnings being treated as errors

 

and so on.

 

How can I disable [-Werror=unused-but-set-variable] or fix these errors?

 

 

Thanks

Stefan



More information about the En-Nut-Discussion mailing list