compile error

cckuo chechun_kuo at sis.com
Sun Sep 23 05:55:27 PDT 2007


Hi: 
Thanks for your suggestion and I have specify the compile prefix in the
Rule.mak as CROSS=mipsel-linux-uclibc-

But I got another error while compiling uClibc-0.9.27/libc/stdio
Error is excerpted below:
.......
make[2]: Entering directory
`/mnt/hdc7/DTV/cross_compile/uClibc-0.9.27/libc/stdio'
mipsel-linux-uclibc-gcc  -Wall -Wstrict-prototypes -Wno-trigraphs
-fno-strict-aliasing  -Os -funit-at-a-time  -mno-split-addresses  -mips32r2
-mtune=mips32r2
-I/usr/local/mipsel-toolchain-uclibc/mipsel-linux-uclibc/include
-fno-builtin -nostdinc -D_LIBC -I../../include -I. -isystem include -DNDEBUG
-fPIC -c _store_inttype.c -o _store_inttype.o
_store_inttype.c:23:2: #error No LLONG_MAX and INTMAX_MAX > LONG_MAX! The
printf code needs to be updated!
make[2]: *** [_store_inttype.o] Error 1
make[2]: Leaving directory
`/mnt/hdc7/DTV/cross_compile/uClibc-0.9.27/libc/stdio'
make[1]: *** [_dir_stdio] Error 2
make[1]: Leaving directory `/mnt/hdc7/DTV/cross_compile/uClibc-0.9.27/libc'
make: *** [_dir_libc] Error 2
.......

Does the error come from my mips-cross-compiler gcc?
What I mean is whether I lost something while compiling gcc as my Mips
cross-copiler, since I find it seems only limits.h in my cross-compiler's
include files define LLONG_MAX, INTMAX_MAX and LONG_MAX.
If it does, should I rebuild my mips-cross-compiler with some special
configuration?

I attach make.log, the compiling log, Rule.mak, .config and limits.h in my
cross-compiler's include files.

Appreciate your help in advance,
cckuo

-----Original Message-----
From: Mike Frysinger [mailto:vapier at gentoo.org] 
Sent: Thursday, September 20, 2007 11:04 PM
To: uclibc at uclibc.org
Cc: cckuo
Subject: Re: compile error

On Thursday 20 September 2007, cckuo wrote:
> Do I forget to modify something before compiling?

you forgot to set your compiler prefix so it's attempting to build for mips 
with your host toolchain
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: limits.h_mips
Type: application/octet-stream
Size: 3470 bytes
Desc: not available
Url : http://busybox.net/lists/uclibc/attachments/20070923/330b66e0/attachment-0004.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make.log
Type: application/octet-stream
Size: 9955 bytes
Desc: not available
Url : http://busybox.net/lists/uclibc/attachments/20070923/330b66e0/attachment-0005.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Rules.mak
Type: application/octet-stream
Size: 11299 bytes
Desc: not available
Url : http://busybox.net/lists/uclibc/attachments/20070923/330b66e0/attachment-0006.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config
Type: application/octet-stream
Size: 3752 bytes
Desc: not available
Url : http://busybox.net/lists/uclibc/attachments/20070923/330b66e0/attachment-0007.obj 


More information about the uClibc mailing list