[En-Nut-Discussion] Ethernut 4.8.9 and Yagarto ARM CGG 4.6.0

Ernst Stippl ernst at stippl.org
Thu Jul 21 21:36:20 CEST 2011


Hello All!

In an attempt to update my website containing Ethernut Builds based on
various GCC versions, I ran across the following problem when I tried to
compile Ethernut 4.8.9 with ARM GCC 4.6.0

- I changed then makefiles (actually: makedefs) from  arm-elf- to
arm-none-eabi- 
- Then I tried the build using: (the %n parameters are used to pass GCC and
Ethernut versions to various batch files)

nutconfigure -a./nutapp_arm_%1 -c./nut/conf/ethernut30d.conf -marm-gcc
-b./nutbld_arm_%1 create-buildtree

cd nutbld_arm_%1

make >makeclean.txt clean
make >..\c%3c%2arm.txt install 

- This resulted in the following errors:

D:\DRV-NUT\ethernut_4.8.9\nutbld_arm_4.6.0>make  install
1>..\c489c460arm.txt 
arm-none-eabi-ar: creating libnutarch.a
arm-none-eabi-ar: creating libnutos.a
../.././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

make[1]: *** [lan91.o] Error 1
make: *** [install] Error 2


D:\DRV-NUT\ethernut_4.8.9\nutbld_arm_4.6.0>make  install
1>..\c489c460arm.txt 
../.././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

make[1]: *** [arm/dev/ostimer_at91.o] Error 1
make: *** [install] Error 2


D:\DRV-NUT\ethernut_4.8.9\nutbld_arm_4.6.0>make  install
1>..\c489c460arm.txt 
arm-none-eabi-ar: creating libnutarch.a
arm-none-eabi-ar: creating libnutos.a
../.././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

make[1]: *** [spibus_npl.o] Error 1
make: *** [install] Error 2
 
- I am not sure if it is OK to use ARM GCC 4.6.0 with ethernut30d.conf
  But if it is, I wonder about these errors...

Any explanations?

Best Regards

Ernst



More information about the En-Nut-Discussion mailing list