[En-Nut-Discussion] nutos conf stdint.h missing
Lamprecht, Joerg
joerg.lamprecht at thermofisher.com
Tue Jul 30 12:44:20 CEST 2013
Hello,
I tried 2 Versions of the WinAVR Toolchain. In the Version 20040404 unfortunately there's no stdint.h but in the 20100101 Version there is a stdint.h. So I changed all my paths to WinAVR-20100110 and also added C:\WinAVR-20100110\avr\include. With that I'm able to build nut/os via nut/os configrator.
Now I created a sample directory nutapp to build some of the test applications. When trying to build httpd_simple via terminal I still get al lot of errors saying stdint.h is missing:
C:\ethernut-5.1\nutapp\httpd_simple>make clean all
rm -f httpd_simple.o urom.o
rm -f httpd_simple.hex httpd_simple.bin httpd_simple.elf
rm -f httpd_simple.eep
rm -f httpd_simple.obj
rm -f httpd_simple.map
rm -f httpd_simple.lst urom.lst
rm -f httpd_simple.bak urom.bak
rm -f httpd_simple.i urom.i
rm -f httpd_simple.d urom.d
rm -f urom.c
avr-gcc -c -I../../nutbld/include -IC:\ethernut-5.1\nut/include -DETHERNUT2 -D
__HARVARD_ARCH__ -MD -MP -mmcu=atmega128 -Os -ffunction-sections -fno-delete-nu
ll-pointer-checks -Wall -Wstrict-prototypes -Wa,-a=httpd_simple.lst -o httpd_si
mple.o httpd_simple.c
In file included from C:/ethernut-5.1/nut/include/dev/lanc111.h:49,
from C:/ethernut-5.1/nut/include/arch/avr/board/ethernut2.h:51,
from C:/ethernut-5.1/nut/include/dev/board.h:144,
from httpd_simple.c:47:
C:/ethernut-5.1/nut/include/dev/netbuf.h:113:20: stdint.h: No such file or direc
tory
In file included from C:/ethernut-5.1/nut/include/dev/lanc111.h:50,
from C:/ethernut-5.1/nut/include/arch/avr/board/ethernut2.h:51,
from C:/ethernut-5.1/nut/include/dev/board.h:144,
from httpd_simple.c:47:
C:/ethernut-5.1/nut/include/net/if_var.h:106:20: stdint.h: No such file or direc
tory
In file included from C:/ethernut-5.1/nut/include/net/if_var.h:108,
from C:/ethernut-5.1/nut/include/dev/lanc111.h:50,
from C:/ethernut-5.1/nut/include/arch/avr/board/ethernut2.h:51,
from C:/ethernut-5.1/nut/include/dev/board.h:144,
from httpd_simple.c:47:
C:/ethernut-5.1/nut/include/sys/device.h:104:20: stdint.h: No such file or direc
tory
In file included from C:/ethernut-5.1/nut/include/net/if_var.h:108,
from C:/ethernut-5.1/nut/include/dev/lanc111.h:50,
from C:/ethernut-5.1/nut/include/arch/avr/board/ethernut2.h:51,
from C:/ethernut-5.1/nut/include/dev/board.h:144,
from httpd_simple.c:47:
C:/ethernut-5.1/nut/include/sys/device.h:316: error: parse error before "uint_fa
st8_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/include/dev/spibus.h:46,
from C:/ethernut-5.1/nut/include/dev/spibus_avr.h:46,
from C:/ethernut-5.1/nut/include/dev/board.h:223,
from httpd_simple.c:47:
C:/ethernut-5.1/nut/include/dev/irqreg.h:108:20: stdint.h: No such file or direc
tory
In file included from C:/ethernut-5.1/nut/include/sys/event.h:97,
from C:/ethernut-5.1/nut/include/dev/spibus.h:48,
from C:/ethernut-5.1/nut/include/dev/spibus_avr.h:46,
from C:/ethernut-5.1/nut/include/dev/board.h:223,
from httpd_simple.c:47:
C:/ethernut-5.1/nut/include/sys/thread.h:63:20: stdint.h: No such file or direct
ory
In file included from C:/ethernut-5.1/nut/include/dev/spibus_avr.h:46,
from C:/ethernut-5.1/nut/include/dev/board.h:223,
from httpd_simple.c:47:
C:/ethernut-5.1/nut/include/dev/spibus.h:124: error: parse error before "uint_fa
st16_t"
C:/ethernut-5.1/nut/include/dev/spibus.h:124: warning: no semicolon at end of st
ruct or union
C:/ethernut-5.1/nut/include/dev/spibus.h:128: error: parse error before '*' toke
n
C:/ethernut-5.1/nut/include/dev/spibus.h:128: error: parse error before "uint_fa
st32_t"
C:/ethernut-5.1/nut/include/dev/spibus.h:128: warning: type defaults to `int' in
declaration of `uint_fast32_t'
C:/ethernut-5.1/nut/include/dev/spibus.h:128: warning: function declaration isn'
t a prototype
C:/ethernut-5.1/nut/include/dev/spibus.h:128: error: `uint_fast32_t' declared as
function returning a function
C:/ethernut-5.1/nut/include/dev/spibus.h:128: warning: function declaration isn'
t a prototype
C:/ethernut-5.1/nut/include/dev/spibus.h:128: warning: data definition has no ty
pe or storage class
C:/ethernut-5.1/nut/include/dev/spibus.h:132: error: parse error before '*' toke
n
C:/ethernut-5.1/nut/include/dev/spibus.h:132: error: parse error before "uint_fa
st8_t"
C:/ethernut-5.1/nut/include/dev/spibus.h:132: warning: type defaults to `int' in
declaration of `uint_fast8_t'
C:/ethernut-5.1/nut/include/dev/spibus.h:132: warning: function declaration isn'
t a prototype
C:/ethernut-5.1/nut/include/dev/spibus.h:132: error: `uint_fast8_t' declared as
function returning a function
C:/ethernut-5.1/nut/include/dev/spibus.h:132: warning: function declaration isn'
t a prototype
C:/ethernut-5.1/nut/include/dev/spibus.h:132: warning: data definition has no ty
pe or storage class
C:/ethernut-5.1/nut/include/dev/spibus.h:155: error: parse error before "uint_fa
st32_t"
C:/ethernut-5.1/nut/include/dev/spibus.h:155: warning: no semicolon at end of st
ruct or union
C:/ethernut-5.1/nut/include/dev/spibus.h:161: warning: type defaults to `int' in
declaration of `node_mode'
C:/ethernut-5.1/nut/include/dev/spibus.h:161: warning: data definition has no ty
pe or storage class
C:/ethernut-5.1/nut/include/dev/spibus.h:167: error: parse error before "node_bi
ts"
C:/ethernut-5.1/nut/include/dev/spibus.h:167: warning: type defaults to `int' in
declaration of `node_bits'
C:/ethernut-5.1/nut/include/dev/spibus.h:167: warning: data definition has no ty
pe or storage class
C:/ethernut-5.1/nut/include/dev/spibus.h:173: error: parse error before "node_cs
"
C:/ethernut-5.1/nut/include/dev/spibus.h:173: warning: type defaults to `int' in
declaration of `node_cs'
C:/ethernut-5.1/nut/include/dev/spibus.h:173: warning: data definition has no ty
pe or storage class
C:/ethernut-5.1/nut/include/dev/spibus.h:180: error: parse error before '}' toke
n
C:/ethernut-5.1/nut/include/dev/spibus.h:183: error: parse error before "NutSpiB
usSetMode"
C:/ethernut-5.1/nut/include/dev/spibus.h:183: error: parse error before "uint_fa
st16_t"
C:/ethernut-5.1/nut/include/dev/spibus.h:183: warning: type defaults to `int' in
declaration of `NutSpiBusSetMode'
C:/ethernut-5.1/nut/include/dev/spibus.h:183: warning: function declaration isn'
t a prototype
C:/ethernut-5.1/nut/include/dev/spibus.h:183: warning: data definition has no ty
pe or storage class
C:/ethernut-5.1/nut/include/dev/spibus.h:184: error: parse error before "NutSpiB
usSetRate"
C:/ethernut-5.1/nut/include/dev/spibus.h:184: error: parse error before "uint_fa
st32_t"
C:/ethernut-5.1/nut/include/dev/spibus.h:184: warning: type defaults to `int' in
declaration of `NutSpiBusSetRate'
C:/ethernut-5.1/nut/include/dev/spibus.h:184: warning: function declaration isn'
t a prototype
C:/ethernut-5.1/nut/include/dev/spibus.h:184: warning: data definition has no ty
pe or storage class
C:/ethernut-5.1/nut/include/dev/spibus.h:185: error: parse error before "NutSpiB
usSetBits"
C:/ethernut-5.1/nut/include/dev/spibus.h:185: error: parse error before "uint_fa
st8_t"
C:/ethernut-5.1/nut/include/dev/spibus.h:185: warning: type defaults to `int' in
declaration of `NutSpiBusSetBits'
C:/ethernut-5.1/nut/include/dev/spibus.h:185: warning: function declaration isn'
t a prototype
C:/ethernut-5.1/nut/include/dev/spibus.h:185: warning: data definition has no ty
pe or storage class
In file included from C:/ethernut-5.1/nut/include/dev/board.h:636,
from httpd_simple.c:47:
C:/ethernut-5.1/nut/include/dev/debug.h:100:20: stdint.h: No such file or direct
ory
In file included from httpd_simple.c:51:
C:/ethernut-5.1/nut/include/sys/version.h:52:20: stdint.h: No such file or direc
tory
In file included from C:/ethernut-5.1/nut/include/sys/timer.h:109,
from httpd_simple.c:52:
C:/ethernut-5.1/nut/include/arch/timer.h:59:20: stdint.h: No such file or direct
ory
In file included from httpd_simple.c:52:
C:/ethernut-5.1/nut/include/sys/timer.h:111:20: stdint.h: No such file or direct
ory
In file included from httpd_simple.c:53:
C:/ethernut-5.1/nut/include/sys/confnet.h:75:20: stdint.h: No such file or direc
tory
In file included from C:/ethernut-5.1/nut/include/sys/socket.h:183,
from httpd_simple.c:54:
C:/ethernut-5.1/nut/include/sys/sock_var.h:136:20: stdint.h: No such file or dir
ectory
In file included from C:/ethernut-5.1/nut/include/sys/socket.h:183,
from httpd_simple.c:54:
C:/ethernut-5.1/nut/include/sys/sock_var.h:244: error: parse error before "int_f
ast8_t"
C:/ethernut-5.1/nut/include/sys/sock_var.h:244: warning: no semicolon at end of
struct or union
C:/ethernut-5.1/nut/include/sys/sock_var.h:263: error: parse error before '}' to
ken
In file included from httpd_simple.c:56:
C:/ethernut-5.1/nut/include/arpa/inet.h:64:20: stdint.h: No such file or directo
ry
In file included from httpd_simple.c:58:
C:/ethernut-5.1/nut/include/pro/dhcp.h:119:20: stdint.h: No such file or directo
ry
In file included from httpd_simple.c:59:
C:/ethernut-5.1/nut/include/pro/httpd.h:80:20: stdint.h: No such file or directo
ry
make: *** [httpd_simple.o] Error 1
Do I use the wrong the toolchain, or what else could bring up that errors?
Jörg
-----Ursprüngliche Nachricht-----
Von: en-nut-discussion-bounces at egnite.de [mailto:en-nut-discussion-bounces at egnite.de] Im Auftrag von Uwe Bonnes
Gesendet: Dienstag, 30. Juli 2013 11:12
An: Ethernut User Chat (English)
Betreff: Re: [En-Nut-Discussion] nutos conf stdint.h missing
>>>>> "Harald" == Harald Kipp <harald.kipp at egnite.de> writes:
Harald> I tried to find a GCC option to dump all include paths but
Harald> couldn't find any. Does anyone else know such a command line
Harald> option?
Is
> avr-cpp -Wp,-v
ignoring nonexistent directory "/opt/cross/avr/lib/gcc/avr/4.3.3/../../../../avr/sys-include"
#include "..." search starts here:
#include <...> search starts here:
/opt/cross/avr/lib/gcc/avr/4.3.3/include
/opt/cross/avr/lib/gcc/avr/4.3.3/include-fixed
/opt/cross/avr/lib/gcc/avr/4.3.3/../../../../avr/include
End of search list.
what you want?
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ---------- _______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion
More information about the En-Nut-Discussion
mailing list