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

Zdeněk Böhm zdenek.bohm at gammarus.cz
Fri Sep 5 11:16:58 UTC 2003


Hi all,

I solved the problem! It was in the Makefile in the directory
/libc/sysdeps/linux/i386. There are these three rows nearly end of this
file:

SAFECFLAGS := $(subst -g,,$(CFLAGS))
gmon-start.S: ../common/gmon-start.c
 $(CC) $(SAFECFLAGS) -c $< -S -o $*.S

It cause that my command for compilling gmon-start.c looks like this one:

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
inuxnu/3.2/include -DNDEBUG -fPIC -c ../common/gmon-start.c -S -o
gmon-start.S

So, I changed the third row to:

 $(CC) $(CFLAGS) -c $< -S -o $*.S

and now all goes well.
The command $(subst -g,,$(CFLAGS)) cause that string "-g" dissapear from my
path to *.h files, so the path which have to be
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/include is damaged to
"/usr/lib/gcc-lib/i586-mandrake-linuxnu/3.2/include" and then the *.h files
are not found.
Please, can somebody say me why the row contains SAFECFLAGS :=
$(subst -g,,$(CFLAGS)) is present?

Regards

Zdenek









More information about the uClibc mailing list