This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to build a Linux newlib?


Try updating and rebuilding. I had some fixes that weren't checked in for just such a problem. The linux build uses a combination of newlib and system headers and it is prone to breakage when glibc changes. In this case, stddef.h was no longer being brought in automatically from a glibc header.

-- Jeff J.

Richard Pennington wrote:
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]