This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Trying to build newlib native on SUSE 10.1
- From: Robert Mykland <robert at ascenium dot com>
- To: newlib at sourceware dot org
- Cc: James Weisner <work at gendou dot com>
- Date: Wed, 15 Nov 2006 14:34:07 -0800
- Subject: Trying to build newlib native on SUSE 10.1
Eventually we will build newlib on our cross compiler, but for starters
I just wanted to build newlib native on my SUSE 10.1 machine. The
configures work fine -- at least they run with no errors reported.
Building from the top level, I ran into the problem that I don't have
makeinfo installed on my machine. Can I skip this part of the build? I
also tried building just the libc directory from a separate directory
like the FAQ says, but it gives me the following error:
/bin/sh ../libtool --mode=compile gcc -DPACKAGE=\"newlib\"
-DVERSION=\"1.14.0\" -I.
-I/home/mykland/work/newlib-1.14.0/newlib/libc/argz -O2 -Wall
-D_I386MACH_ALLOW_HW_INTERRUPTS -DHAVE_FCNTL -fPIC
-D_I386MACH_NEED_SOTYPE_FUNCTION -DMISSING_SYSCALL_NAMES
-fno-builtin -g -O2 -c
/home/mykland/work/newlib-1.14.0/newlib/libc/argz/argz_add.c
gcc -DPACKAGE=\"newlib\" -DVERSION=\"1.14.0\" -I.
-I/home/mykland/work/newlib-1.14.0/newlib/libc/argz -O2 -Wall
-D_I386MACH_ALLOW_HW_INTERRUPTS -DHAVE_FCNTL -fPIC
-D_I386MACH_NEED_SOTYPE_FUNCTION -DMISSING_SYSCALL_NAMES -fno-builtin -g
-O2 -c /home/mykland/work/newlib-1.14.0/newlib/libc/argz/argz_add.c
-fPIC -DPIC -o .libs/argz_add.o
/home/mykland/work/newlib-1.14.0/newlib/libc/argz/argz_add.c:13: error:
expected '=', ',', ';', 'asm' or '__attribute__' before '_DEFUN'
make[1]: *** [argz_add.lo] Error 1
make[1]: Leaving directory `/home/mykland/work/libc/argz'
make: *** [all-recursive] Error 1
I get this error whether I'm trying to build in place or build in a
separate directory as the FAQ suggests. SUSE 10.1 is using gcc version
4.1.0.
Cheers,
-- Robert.