[BusyBox] uclinux and uC-libc
Erik Andersen
andersen at lineo.com
Mon Sep 4 06:58:37 UTC 2000
On Mon Sep 04, 2000 at 01:09:52PM +0800, lzyhm at 263.net wrote:
>
> I try to run busybox(an open source project of lineo) on
> uclinux(68ez328). these are two problems.Thank you for help me.
> 1 Because of mmu,busybox cann't run on uclinux(68ez328),isn't it?why?
> 2 I can't compile uC-libc provied by lineo(not by uclinux) correctly.
> From the error messages,probably the problems are caused by the
> difference between gcc(redhat 6.1) and m68k-pic-coff-gcc.
> (I have compiled correctly uC-libc of lineo by gcc and uC-libc of uclinux
> by m68k-pic-coff-gcc)
>
> How can i do? thank you again.
>
> error messages as following:
>
> make[1]: Entering directory `/opt/src/uclinux/uC-libc/error'
> /usr/local/gnu/bin/m68k-pic-coff-gcc -O2 -fno-builtin -nostdinc -Dlinux -D__li
> nux__ -I../include -I/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include -I.
> -D__PIC__ -D__LIBC__ -m68000 -msoft-float -Wall -D__PIC__ -c error.c -o er
> ror.o
> In file included from ../include/sys/types.h:30,
> from ../include/string.h:5,
> from error.c:5:
> ../include/bits/types.h:37: parse error before `__extension__'
> ../include/bits/types.h:56: parse error before `__extension__'
> ../include/bits/types.h:59: parse error before `*'
> ../include/bits/types.h:59: warning: data definition has no type or storage clas
> s
> ../include/bits/types.h:61: parse error before `__dev_t'
Either add
/* __restrict is known in EGCS 1.2 and above. */
#if !defined __GNUC__ || __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 92)
# define __restrict /* Ignore */
#endif
to features.h, or use CVS to checkout that latest and greatest.
There are a few things such that busybox will still not compile
with ucLibc. For example, several busybox apps use fork(), while
uclinux does not provide fork(), since there is no mmu.
-Erik
--
Erik B. Andersen email: andersen at lineo.com
--This message was written using 73% post-consumer electrons--
More information about the busybox
mailing list