How to build a Linux newlib?
Richard Pennington
rich@dev.pennware.com
Fri Jul 4 08:33:00 GMT 2008
Hi,
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/obj/linux/i686-pc-linux-gnu/newlib/targ-include
-I/home/rich/newlib/src/newlib/libc/include -DPACKAGE_NAME=\"newlib\"
-DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"1.16.0\"
"-DPACKAGE_STRING=\"newlib 1.16.0\"" -DPACKAGE_BUGREPORT=\"\"
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DLT_OBJDIR=\".libs/\" -I. -I../../../../../../src/newlib/libc/argz -O2
-Wall -D_I386MACH_ALLOW_HW_INTERRUPTS -DHAVE_FCNTL -DHAVE_GETOPT -fPIC
-D_I386MACH_NEED_SOTYPE_FUNCTION -DMISSING_SYSCALL_NAMES -fno-builtin -g
-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?
-Rich
More information about the Newlib
mailing list