[En-Nut-Discussion] Nut/OS 4.6 build errors / Warnings

Ernst Stippl ernst at stippl.org
Sun Aug 17 16:17:19 CEST 2008


Hi!
 
I ran Nut/OS 4.6 thru several gcc versions and go tht efollowing errors:

----------------------------------------------------------------
In file included from ../.././nut/include/sys/socket.h:169,
                 from ../.././nut/net/tcpin.c:115:
../.././nut/include/sys/sock_var.h:122:20: stdint.h: No such file or
directory
In file included from ../.././nut/include/sys/socket.h:169,
                 from ../.././nut/net/tcpin.c:115:
../.././nut/include/sys/sock_var.h:166: error: parse error before
"uint_fast8_t"
../.././nut/include/sys/sock_var.h:166: warning: function declaration isn't
a prototype
make[1]: *** [tcpin.o] Error 1

when compiling with avr-gcc 3.4.1
----------------------------------------------------------------
In file included from ../.././nut/include/sys/socket.h:169,
                 from ../.././nut/net/tcpin.c:115:
../.././nut/include/sys/sock_var.h:166: error: parse error before
"uint_fast8_t"
../.././nut/include/sys/sock_var.h:166: warning: function declaration isn't
a prototype
make[1]: *** [tcpin.o] Error 1

when compiling with avr-gcc 3.4.3
----------------------------------------------------------------
In file included from ../.././nut/include/sys/socket.h:169,
                 from ../.././nut/net/tcpin.c:115:
../.././nut/include/sys/sock_var.h:122:20: stdint.h: No such file or
directory
In file included from ../.././nut/include/sys/socket.h:169,
                 from ../.././nut/net/tcpin.c:115:
../.././nut/include/sys/sock_var.h:166: error: parse error before
"uint_fast8_t"
../.././nut/include/sys/sock_var.h:166: warning: function declaration isn't
a prototype
make[1]: *** [tcpin.o] Error 1

when compiling with arm-gcc 3.4.3
----------------------------------------------------------------
../.././nut/pro/cgi.c:67:20: error: alloca.h: No such file or directory
cc1.exe: warnings being treated as errors
../.././nut/pro/cgi.c: In function 'NutCgiCheckRequest':
../.././nut/pro/cgi.c:122: warning: implicit declaration of function
'alloca'
../.././nut/pro/cgi.c:122: warning: incompatible implicit declaration of
built-in function 'alloca'
make[1]: *** [cgi.o] Error 1

when compiling with avr-gcc 4.1.2 or 4.1.1
----------------------------------------------------------------
../.././nut/pro/cgi.c:67:20: alloca.h: No such file or directory
../.././nut/pro/cgi.c: In function `NutCgiCheckRequest':
../.././nut/pro/cgi.c:122: warning: implicit declaration of function
`alloca'
make[1]: *** [cgi.o] Error 1

when compiling with avr-gcc 3.4.5 or 3.4.6

This seems to be the probleme described by Henrik Maier on Aug. 8th 2008.
The following discussion
did focus on functional issues but only once suggested to use another
version of libc to circumvent 
the compile time problem. 
----------------------------------------------------------------
To successfully compile WLANDRV.C I added 

#define GCC_VERSION (__GNUC__ * 10000  + __GNUC_MINOR__ * 100  +
__GNUC_PATCHLEVEL__)
#if GCC_VERSION >40299
#pragma GCC diagnostic ignored "-Warray-bounds"  
#endif

based on Thiago A Corrêa's mail from July 1st 2008. But is was necessary to
check for the compiler 
version because older versions did choke on the "#pragma" 
----------------------------------------------------------------

I am in the process of updating my website and will add this information.

Regards

Ernst 





More information about the En-Nut-Discussion mailing list