[uClibc] stddef.h: No such file or directory

Zdeněk Böhm zdenek.bohm at gammarus.cz
Fri Sep 5 07:48:43 UTC 2003


Hi all,

I have problems with compiling uClibc version 0.9.20. I'm using Linux
Mandrake 9.0 with gcc version 3.2.
I was searched an archive of this mailing list and I found some postings
described a similar problem (problem with "-iwithprefix include" in CFLAGS
in Rules.mak) but i think this problem is solved in uClibc 0.9.20 yet.
I tried several configurations (default with "make defconfig" too), but the
result is still bad.

This is my typical "command line" during compilation (the directory
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/include really exists and
contains file named stddef.h):

--------------- cut here -------------
gcc  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing  -mprefer
red-stack-boundary=2 -falign-jumps=0 -falign-loops=0 -Os     -fno-builtin -n
ostdinc -D_LIBC -I../../../../include -I. -I/usr/lib/gcc-lib/i586-mandrake-l
inux-gnu/3.2/include -DNDEBUG -fPIC -c ../common/gmon-start.c -S -o
gmon-start.S
------------------------------------------

And this is my error log:

--------------- cut here --------------
+ rm -f include/bits/sysnum.h
+ TOPDIR=.
+ CC=gcc
+ /bin/sh extra/scripts/gen_bits_syscall_h.sh
time.c: In function `tm_isdst':
time.c:502: warning: `oday' might be used uninitialized in this function
time.c: In function `_time_t2tm':
time.c:1824: warning: `wday' might be used uninitialized in this function
printf.c: In function `_ppfs_parsespec':
printf.c:766: warning: `conv_num' might be used uninitialized in this
function
sigaction.c:32:2: warning: #warning "Yes there are two warnings here.  Don't
worry about it."
sigaction.c:33: warning: `restore_rt' declared `static' but never defined
sigaction.c:34: warning: `restore' declared `static' but never defined
In file included from ../common/gmon-start.c:21:
../../../../include/stdlib.h:35:20: stddef.h: No such file or directory
In file included from ../../../../include/sys/types.h:30,
                 from ../../../../include/stdlib.h:405,
                 from ../common/gmon-start.c:21:
../../../../include/bits/types.h:29:20: stddef.h: No such file or directory
In file included from ../../../../include/bits/types.h:144,
                 from ../../../../include/sys/types.h:30,
                 from ../../../../include/stdlib.h:405,
                 from ../common/gmon-start.c:21:
../../../../include/bits/pthreadtypes.h:48: parse error before "size_t"
../../../../include/bits/pthreadtypes.h:48: warning: no semicolon at end of
struct or union
../../../../include/bits/pthreadtypes.h:51: parse error before "__stacksize"
../../../../include/bits/pthreadtypes.h:51: warning: type defaults to `int'
in declaration of `__stacksize'
../../../../include/bits/pthreadtypes.h:51: warning: data definition has no
type or storage class
../../../../include/bits/pthreadtypes.h:52: warning: type defaults to `int'
in declaration of `pthread_attr_t'
../../../../include/bits/pthreadtypes.h:52: warning: data definition has no
type or storage class
In file included from ../../../../include/stdlib.h:405,
                 from ../common/gmon-start.c:21:
../../../../include/sys/types.h:146:20: stddef.h: No such file or directory
In file included from ../common/gmon-start.c:21:
../../../../include/stdlib.h:422: parse error before "size_t"
../../../../include/stdlib.h:422: warning: function declaration isn't a
prototype
../../../../include/stdlib.h:451: parse error before "size_t"
../../../../include/stdlib.h:452: warning: function declaration isn't a
prototype
../../../../include/stdlib.h:546: parse error before "__size"
../../../../include/stdlib.h:546: warning: function declaration isn't a
prototype
../../../../include/stdlib.h:548: parse error before "__nmemb"
../../../../include/stdlib.h:549: warning: function declaration isn't a
prototype
../../../../include/stdlib.h:569: parse error before "size_t"
../../../../include/stdlib.h:569: warning: function declaration isn't a
prototype
In file included from ../../../../include/stdlib.h:579,
                 from ../common/gmon-start.c:21:
../../../../include/alloca.h:25:20: stddef.h: No such file or directory
In file included from ../../../../include/stdlib.h:579,
                 from ../common/gmon-start.c:21:
../../../../include/alloca.h:33: parse error before "__size"
../../../../include/alloca.h:33: warning: function declaration isn't a
prototype
In file included from ../common/gmon-start.c:21:
../../../../include/stdlib.h:584: parse error before "__size"
../../../../include/stdlib.h:584: warning: function declaration isn't a
prototype
../../../../include/stdlib.h:733: parse error before "size_t"
../../../../include/stdlib.h:733: warning: function declaration isn't a
prototype
../../../../include/stdlib.h:737: parse error before "size_t"
../../../../include/stdlib.h:738: warning: function declaration isn't a
prototype
In file included from ../common/gmon-start.c:22:
../../../../include/unistd.h:199:20: stddef.h: No such file or directory
In file included from ../common/gmon-start.c:22:
../../../../include/unistd.h:311: parse error before "size_t"
../../../../include/unistd.h:311: warning: function declaration isn't a
prototype
../../../../include/unistd.h:314: parse error before "size_t"
../../../../include/unistd.h:314: warning: function declaration isn't a
prototype
../../../../include/unistd.h:318: parse error before "size_t"
../../../../include/unistd.h:319: warning: function declaration isn't a
prototype
../../../../include/unistd.h:320: parse error before "size_t"
../../../../include/unistd.h:321: warning: function declaration isn't a
prototype
../../../../include/unistd.h:341: parse error before "size_t"
../../../../include/unistd.h:342: warning: function declaration isn't a
prototype
../../../../include/unistd.h:345: parse error before "size_t"
../../../../include/unistd.h:346: warning: function declaration isn't a
prototype
../../../../include/unistd.h:424: parse error before "size_t"
../../../../include/unistd.h:424: warning: function declaration isn't a
prototype
In file included from ../common/gmon-start.c:22:
../../../../include/unistd.h:513: parse error before "confstr"
../../../../include/unistd.h:513: parse error before "size_t"
../../../../include/unistd.h:513: warning: type defaults to `int' in
declaration of `confstr'
../../../../include/unistd.h:513: warning: function declaration isn't a
prototype
../../../../include/unistd.h:513: warning: data definition has no type or
storage class
../../../../include/unistd.h:665: parse error before "size_t"
../../../../include/unistd.h:665: warning: function declaration isn't a
prototype
../../../../include/unistd.h:690: parse error before "size_t"
../../../../include/unistd.h:690: warning: function declaration isn't a
prototype
../../../../include/unistd.h:713: parse error before "size_t"
../../../../include/unistd.h:713: warning: function declaration isn't a
prototype
In file included from ../common/gmon-start.c:22:
../../../../include/unistd.h:735: parse error before "size_t"
../../../../include/unistd.h:735: warning: function declaration isn't a
prototype
../../../../include/unistd.h:742: parse error before "size_t"
../../../../include/unistd.h:742: warning: function declaration isn't a
prototype
../../../../include/unistd.h:752: parse error before "size_t"
../../../../include/unistd.h:752: warning: function declaration isn't a
prototype
../../../../include/unistd.h:753: parse error before "size_t"
../../../../include/unistd.h:753: warning: function declaration isn't a
prototype
../../../../include/unistd.h:770: parse error before "size_t"
../../../../include/unistd.h:771: warning: function declaration isn't a
prototype
make[4]: *** [gmon-start.S] Error 1
make[3]: *** [_dir_i386] Error 2
make[2]: *** [_dir_linux] Error 2
make[1]: *** [_dir_sysdeps] Error 2
make: *** [_dir_libc] Error 2
------------------------

Can you help me, please?

Thank you Zdenek





More information about the uClibc mailing list