cant' compile busybox-1.8.1 with eldk 4.1

fabien fabien.fb at gmail.com
Fri Nov 23 13:36:10 UTC 2007


2007/11/23, Denys Vlasenko <vda.linux at googlemail.com>:
> On Friday 23 November 2007 04:27, fabien wrote:
> > 2007/11/23, Denys Vlasenko <vda.linux at googlemail.com>:
> > > On Friday 23 November 2007 01:49, fabien wrote:
> > > > I try to compile busybox for my ppc custom  board. I successfuly
> > > > compile kernel 2.6.19 with
> > > > eldk and boot it. Now i try to get busybox working but i get some
> > > > errors at compile time.
> > > > It's look strange if someone can spend one minute to look at the
> > > > compile log What step could i miss ?
> > > > Thank a lot
> > > >
> > > > [fabien at localhost busybox-1.8.1]  cat /opt/eldk/version
> > > > ELDK version 4.1
> > > > ppc_8xx: Build 2007-01-21-uclibc
> > > >
> > > > [fabien at localhost busybox-1.8.1]$ make CROSS_COMPILE=ppc_8xx-
> > > >   CC      applets/applets.o
> > > > In file included from
> > > > /opt/eldk/usr/../ppc_8xx/usr/include/netinet/in.h:212, from
> > > > /opt/eldk/usr/../ppc_8xx/usr/include/arpa/inet.h:23, from
> > > > include/platform.h:139,
> > > >                  from include/libbb.h:13,
> > > >                  from include/busybox.h:10,
> > > >                  from applets/applets.c:11:
> > > > /opt/eldk/usr/../ppc_8xx/usr/include/bits/socket.h:305:24: error:
> > > > asm/socket.h: No such file or directory
> > >
> > > /usr/include/asm/socket is missing (I'd guess entire asm/* is missing).
> > > This directory is populated by kernel headers (usuallu post-porcessed)
> > > as part of libc install process.
> > >
> > > --
> > > vda
> >
> > I'am using arch=ppc with kernel 2.6.19 for a mpc855T based board
> > /opt/eldk/usr/../ppc_8xx/usr/include/asm  is a link to
> > /opt/eldk/ppc_8xx/usr/src/linux/include/asm-ppc
> > i have many headers in this folder, it is not empty
> > [fabien at localhost asm-ppc]$ pwd
> > /opt/eldk/ppc_8xx/usr/src/linux/include/asm-ppc
> > [fabien at localhost asm-ppc]$ ls
> > 8xx_immap.h    floppy.h        ibm_ocp.h      mpc52xx.h       pci.h
> >      rheap.h
> > amigahw.h      fs_pd.h         ibm_ocp_pci.h  mpc52xx_psc.h
> > pc_serial.h   rio.h
> > amigaints.h    gg2.h           immap_85xx.h   mpc8260.h
> > pgalloc.h     rtc.h
> > ...
> > but not ioctls.h, socket.h, asm/param.h
> > I have try to do a make headers-install but
> > make ARCH=ppc headers_install
> >   CHK     include/linux/version.h
> > *** Error: Headers not exportable for this architecture (ppc)
> > make: *** [headers_install] Erreur 1
> >
> > Required file are in arch=powerpc "asm-powerpc" but not in asm-ppc
> > Where is the mistake, how could i do ...
>
> Typically I just copy kernel's asm/* headers.
> --
> vda
>
I don't understand you copy asm/* headers where ?
I simply don't have the required file for compile busybox ( and i
think of courses others apps too)
in /opt/eldk/ppc_8xx/usr/src/linux/include/asm-ppc
Maybe you suggest i copy asm-power/* in asm-ppc/ ?



More information about the busybox mailing list