[En-Nut-Discussion] Can't correctly build NutOS 4.8.9 on Fedora 14 for Ethernut 2.1b

Bernard Fouché bernard.fouche at kuantic.com
Fri Apr 15 15:28:24 CEST 2011


Hi List.

I did not build a new NutOS release for years and now is the time.. but 
I canched of PC, of Linux version, etc. So I have to restart from scratch...

I'm trying to run nutconf following "Nut/OS Software Manual" dated July 
2009. I do exactly what's listed: I make an 'ethernut' directory in my 
home directory, I uncompress and untar ethernut-4.8.9, make a 'nut' 
symlink to 'ethernut-4.8.9', enter 'nut' and then run ./configure; make 
; make install. I also delete any existing ~/.NutConf file before 
running './configure'.

My Linux avr-gcc version is based on WinAVR20100110 (used to get the 
correct set of patches but of course the binaries were made on Linux). I 
use the resulting compilation chain for months for other projects and it 
works nicely.

What I observe with 'nutconf' is:

- if I enter the 'nut' symlink and then run 'nutconf', just define the 
platform type to 'avr-gcc', then trying to build NutOS result in:

15:03:37: Nut/OS Configurator Version 2.0.9
15:03:37: Linked to wxWidgets 2.8.11
15:03:37: Running on Linux 2.6.35.12-88.fc14.i686.PAE i686
15:03:37: Working in /home/bernard/ethernut
15:03:37: Failed to load help file
15:03:43: Loading nut/conf/repository.nut
15:03:43: Loading /home/bernard/ethernut/nut/conf/ethernut21b.conf
15:03:43: OK
15:04:04: Creating Makefiles for avr-gcc in nutbld
15:04:04: Creating header files in nutbld
15:04:04: OK
15:04:10: ----- Running 'make clean' -----
15:04:10: ----- 'make clean' terminated successfully -----
15:04:10: ----- Running 'make all' -----
../../nut/arch/avr/os/context_gcc.c:114:20: error: cfg/os.h: No such 
file or directory
../../nut/arch/avr/os/context_gcc.c:115:24: error: cfg/memory.h: No such 
file or directory
../../nut/arch/avr/os/context_gcc.c:119:22: error: sys/atom.h: No such 
file or directory
...etc...

- the only way I found to be able to build NutOS is to NOT use the 'nut' 
symlink but to enter into 'ethernut-4.8.9' instead, and then running 
'nutconf' without defining a platform (I just load the .conf file for 
Ethernut 2.1b). Then I have a successful build (well it compiles but I 
did not test the resulting lib) but:

     - Entering 'Edit/Settings', I get the settings form but can't exit 
it without clicking 'cancel': for instance 'Build/Source directory' is 
set to 'ethernut-4.8.9' and this value is refused when clicking on 'OK'.

     - changing anything in the settings result in getting back to a 
failed compilation, always because the compiler is not able to find the 
include files as shown above.

     - when looking at the build directory made by 'nutconf', the 
missing header files like 'cfg/os.h' are not copied into it.

I welcome any hint to fix this problem since I'm stuck for hours on this 
one!

Thanks in advance

     Bernard


More information about the En-Nut-Discussion mailing list