Newlib build error on ix86-linux

José Miguel Gonçalves
Fri Jun 20 15:56:00 GMT 2003

Hi all,

I am trying to build newlib natively on a Linux PC and I am getting errors.
I am building it using the latest newlib sources from CVS, with a Mandrake 9.1 
distribution and gcc 2.96.

More details:

$ mkdir newlib-build
$ cd newlib-build
$ ../newlib-src/configure --prefix=/usr/local/newlib --srcdir=../newlib-src
$ make all-target-newlib
gcc -I/home/jmpg/newlib-build/i686-pc-linux-gnu/newlib/targ-include
-I../../../newlib-src/newlib/./libc/include -DPACKAGE=\"newlib\"
-DVERSION=\"1.11.0\" -I. -I../../../../../newlib-src/newlib/libc/argz -O2
-O2 -O2 -g -O2 -c ../../../../../newlib-src/newlib/libc/argz/argz_add.c  -fPIC
-DPIC -o .libs/argz_add.o
In file included from ../../../../../newlib-src/newlib/libc/argz/argz_add.c:8:
sys/config.h: No such file or directory
machine/types.h: No such file or directory
make[4]: *** [argz_add.lo] Error 1

Any help would be appreciated.

José Goncalves

More information about the Newlib mailing list