Compiling newlib natively

Shaun Jackman sjackman@gmail.com
Tue Nov 30 22:42:00 GMT 2004


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