Compiling newlib natively
Jeff Johnston
jjohnstn@redhat.com
Wed Dec 1 19:34:00 GMT 2004
This was fixed in August. Have you grabbed the latest sources?
2004-08-12 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/sys/types.h (u64): New typedef to allow building
on linux systems with glibc 2.3.3 installed.
* libc/sys/linux/dl/dl-runtime.c: Fix prototypes for fixup and
profile_fixup so newlib can build on fc3 system.
-- Jeff J.
Shaun Jackman wrote:
> I get an undeclared u64 error when compiling newlib natively (targeting Linux).
>
> /usr/include/linux/time.h:201: error: `u64' undeclared (first use in
> this function)
>
> newlib 1.12.0
> Linux 2.6.8.1
>
> I assume u64 should be typedefed to long long. Where should this be done?
>
> Please cc me in your reply. Cheers,
> Shaun
>
> -O2 -O2 -g -O2 -c ../../../../../newlib/libc/search/hash.c
> gcc -I/home/sjackman/work/debian/newlib/newlib-1.12.0/_build/i686-pc-linux-gnu/newlib/targ-include
> -I/home/sjackman/work/debian/newlib/newlib-1.12.0/newlib/libc/include
> -DPACKAGE=\"newlib\" -DVERSION=\"1.12.0\" -I.
> -I../../../../../newlib/libc/search -O2 -DMB_CAPABLE -Wall
> -D_I386MACH_ALLOW_HW_INTERRUPTS -DHAVE_FCNTL -DWANT_IO_POS_ARGS
> -DWANT_IO_LONG_DBL -fPIC -D_I386MACH_NEED_SOTYPE_FUNCTION
> -DMISSING_SYSCALL_NAMES -fno-builtin -O2 -g -O2 -O2 -g -O2 -c
> ../../../../../newlib/libc/search/hash.c -fPIC -DPIC -o .libs/hash.o
> In file included from /usr/include/linux/stat.h:57,
> from
> /home/sjackman/work/debian/newlib/newlib-1.12.0/_build/i686-pc-linux-gnu/newlib/targ-include/sys/stat.h:11,
> from ../../../../../newlib/libc/search/hash.c:44:
> /usr/include/linux/time.h: In function `timespec_to_jiffies':
> /usr/include/linux/time.h:201: error: `u64' undeclared (first use in
> this function)
> /usr/include/linux/time.h:201: error: (Each undeclared identifier is
> reported only once
> /usr/include/linux/time.h:201: error: for each function it appears in.)
More information about the Newlib
mailing list