[En-Nut-Discussion] nutos conf stdint.h missing

Lamprecht, Joerg joerg.lamprecht at thermofisher.com
Fri Jul 26 10:22:27 CEST 2013


Hello,

I'm trying to build the nut/os via nut/os configurator. I use the WINAVR avr-gcc compiler. When I try to compile I get the underneath error messages, saying sdtint.h is missing. I find stdint.h in the folder C:\ethernut-5.1\nut\include\crt\iccavr.

In the setting dialog I added the following folders: C:\ethernut-5.1\nut\tools\win32;C:\ethernut-5.1\nut;C:\WinAVR\bin;C:\WinAVR\utils\bin

I'm using WIN7 Professional 64 Bit

10:00:48: Creating Makefiles for avr-gcc in nutbld
10:00:48: Creating header files in nutbld
10:00:48: ----- Running 'make clean' -----
10:00:55: ----- Running 'make all' -----
10:00:56: In file included from C:/ethernut-5.1/nut/arch/avr/dev/ostimer.c:44:
C:/ethernut-5.1/nut/include/sys/atom.h:106:20: stdint.h: No such file or directory
In file included from C:/ethernut-5.1/nut/arch/avr/dev/ostimer.c:45:
C:/ethernut-5.1/nut/include/dev/irqreg.h:108:20: stdint.h: No such file or directory
In file included from C:/ethernut-5.1/nut/include/dev/irqreg.h:110,
from C:/ethernut-5.1/nut/arch/avr/dev/ostimer.c:45:
C:/ethernut-5.1/nut/include/sys/device.h:104:20: stdint.h: No such file or directory
In file included from C:/ethernut-5.1/nut/include/dev/irqreg.h:110,
from C:/ethernut-5.1/nut/arch/avr/dev/ostimer.c:45:
C:/ethernut-5.1/nut/include/sys/device.h:316: error: parse error before "uint_fast8_t"
C:/ethernut-5.1/nut/include/sys/device.h:316: warning: function declaration isn't a prototype
In file included from C:/ethernut-5.1/nut/arch/avr/dev/ih_adc.c:43:
C:/ethernut-5.1/nut/include/dev/irqreg.h:108:20: stdint.h: No such file or directory
In file included from C:/ethernut-5.1/nut/include/dev/irqreg.h:110,
...

make[1]: *** [avr/dev/ih_adc.o] Error 1
make[1]: *** [avr/dev/ih_analog_comp.o] Error 1
make[1]: *** [avr/dev/ih_int1.o] Error 1
make[1]: *** [avr/dev/ih_ee_ready.o] Error 1
make[1]: *** [avr/dev/ih_int0.o] Error 1
make: *** [all] Error 2
10:00:56: Build failed


When I add stdint.h to C:\ethernut-5.1\nut\include I get the following errors:



In file included from C:/ethernut-5.1/nut/include/sys/atom.h:106,
from C:/ethernut-5.1/nut/arch/avr/os/context_gcc.c:46:
C:/ethernut-5.1/nut/include/stdint.h:40: warning: redefinition of `int8_t'
C:/WinAVR/avr/include/inttypes.h:67: warning: `int8_t' previously declared here
C:/ethernut-5.1/nut/include/stdint.h:41: warning: redefinition of `int16_t'
C:/WinAVR/avr/include/inttypes.h:90: warning: `int16_t' previously declared here
C:/ethernut-5.1/nut/include/stdint.h:42: warning: redefinition of `int32_t'
C:/WinAVR/avr/include/inttypes.h:106: warning: `int32_t' previously declared here
C:/ethernut-5.1/nut/include/stdint.h:44: warning: redefinition of `uint8_t'
C:/WinAVR/avr/include/inttypes.h:72: warning: `uint8_t' previously declared here
C:/ethernut-5.1/nut/include/stdint.h:45: warning: redefinition of `uint16_t'
C:/WinAVR/avr/include/inttypes.h:95: warning: `uint16_t' previously declared here
....
C:/WinAVR/avr/include/inttypes.h:111: warning: `uint32_t' previously declared here
C:/ethernut-5.1/nut/include/stdint.h:67: warning: redefinition of `intptr_t'
C:/WinAVR/avr/include/inttypes.h:141: warning: `intptr_t' previously declared here
C:/ethernut-5.1/nut/include/stdint.h:68: warning: redefinition of `uintptr_t'
C:/WinAVR/avr/include/inttypes.h:146: warning: `uintptr_t' previously declared here
10:16:53: make[1]: *** [avr/dev/ostimer.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [avr/dev/wdt_avr.o] Error 1
make[1]: *** [avr/os/context_gcc.o] Error 1
10:16:53: make: *** [all] Error 2
10:16:53: Build failed

Can anybody help me please?

Jörg


More information about the En-Nut-Discussion mailing list