How to build a Linux newlib?

Richard Pennington
Fri Jul 4 08:33:00 GMT 2008


I'm trying to build a Linux version of newlib on my x86 fc8 system. I 
grabbed the latest sources from cvs and configured with:

../../src/configure --with-newlib --prefix=/home/rich/local/

The build fails with:

libtool: compile:  gcc 
-I/home/rich/newlib/src/newlib/libc/include -DPACKAGE_NAME=\"newlib\" 
"-DPACKAGE_STRING=\"newlib 1.16.0\"" -DPACKAGE_BUGREPORT=\"\" 
-DLT_OBJDIR=\".libs/\" -I. -I../../../../../../src/newlib/libc/argz -O2 
-O2 -c ../../../../../../src/newlib/libc/argz/argz_count.c  -fPIC -DPIC 
-o .libs/argz_count.o
../../../../../../src/newlib/libc/argz/argz_count.c:11: error: expected 
'=', ',', ';', 'asm' or '__attribute__' before 'argz_count'
make[5]: *** [argz_count.lo] Error 1

It looks like size_t isn't getting defined. I'm I configuring newlib 
incorrectly for a Linux hosted library?


More information about the Newlib mailing list