Problem cross-compiling busybox-1.5.1 for PowerPC architecture
Denis Vlasenko
vda.linux at googlemail.com
Sun May 27 03:55:24 UTC 2007
On Thursday 24 May 2007 19:34, Sasvata Chatterjee wrote:
> 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
Did you build toolchain and glibc yourself?
If yes, can you provide complete configure/ame/make install switches and
variable settings? (I'm interested in setting up cross compiler too,
bug hunting is a good opportunity).
> 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
unsigned type xstrtou()(const char *numstr, int base)
> libbb/xatonum_template.c:114: macro `xatou' used without args
unsigned type xatou()(const char *numstr)
Apparently your gcc doesn't allow calling one-argument macros with empty arguments.
Maybe try newer gcc? 2.xx.x is two major versions old...
--
vda
More information about the busybox
mailing list