Problem cross-compiling busybox-1.5.1 for PowerPC architecture
Sasvata Chatterjee
sasvata.chatterjee at gmail.com
Thu May 24 17:34:26 UTC 2007
Hi,
I am trying to compile busybox-1.5.1 on a RHEL/Intel machine, targeting a
Debian/PowerPC embedded system, with gcc-2.95-3 and glibc-2.2.5. Can
somebody please help with the problems below? Are there instructions to
build for this arch?
Thanks in advance,
Shash
I am invoking make as:
make CROSS_COMPILE=powerpc-603e-linux-gnu- ARCH=ppc
I am running into these problems, so far:
1) ULLONG_MAX not defined (which I fixed by #define ULLONG_MAX
ULONG_LONG_MAX in include/libbb.h). Similar for LLONG_MAX and LLONG_MIN.
2) Needed to take out -static-libgcc from Makefile.flags to avoid
compile-time warnings for gcc
3) A warning on the union inside len_and_sockaddr structure:
include/libbb.h:304: warning: unnamed struct/union that defines no instances
4) The biggie, cannot compile libbb/xatonum.c:
CC libbb/xatonum.o
powerpc-603e-linux-gnu-gcc: unrecognized option `-static-libgcc'
In file included from libbb/xatonum.c:21:
libbb/xatonum_template.c:88: macro `xstrtou' used with too many (2) args
libbb/xatonum_template.c:114: macro `xatou' used without args
libbb/xatonum_template.c:172: macro `xato' used without args
In file included from libbb/xatonum.c:33:
libbb/xatonum_template.c:88: macro `xstrtou' used with too many (2) args
libbb/xatonum_template.c:114: macro `xatou' used without args
libbb/xatonum_template.c:172: macro `xato' used without args
make[1]: *** [libbb/xatonum.o] Error 1
make: *** [libbb] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/busybox/attachments/20070524/5d7c8c5a/attachment-0002.htm
More information about the busybox
mailing list