[Clfs-support] busybox-1.18.4 compile error.
sayed israr
sd.israr at gmail.com
Sat Nov 12 02:29:37 PST 2011
On Wed, Nov 9, 2011 at 5:33 PM, Andrew Bradford <bradfa at gmail.com> wrote:
> Israr,
>
> Since you're building Busybox, does that mean you've overcome the
> previous issues you were having with building GCC?
> If so, could you please reply to that thread and list what you found.
> Others may have the same issue and providing your solution would be
> helpful.
>
> For this situation, please provide information about what
> configuration you are using.
>
> Thanks,
> Andrew
>
> On Sun, Nov 6, 2011 at 3:51 PM, sayed israr <sd.israr at gmail.com> wrote:
> >
> > hello all !
> >
> > i am using clfs-embedded book for building my toolchain and busybox,
> in
> > that i am using busybox-1.18.4 and as i try to compile i get the
> following
> > error:
> > [ i have built gcc-4.6.0 as well as uClibc-0.9.31.] :
> >
> > clfs at israr:/mnt/clfs/sources/
> > busybox-1.18.4$ make CROSS_COMPILE="${CLFS_TARGET}-"
> > SPLIT include/autoconf.h -> include/config/*
> > GEN include/bbconfigopts.h
> > HOSTCC applets/usage
> > applets/usage.c: In function 'main':
> > applets/usage.c:52: warning: ignoring return value of 'write', declared
> with
> > attribute warn_unused_result
> > GEN include/usage_compressed.h
> > HOSTCC applets/applet_tables
> > applets/applet_tables.c: In function 'main':
> > applets/applet_tables.c:138: warning: ignoring return value of 'fgets',
> > declared with attribute warn_unused_result
> > GEN include/applet_tables.h
> > CC applets/applets.o
> > In file included from include/libbb.h:13:0,
> > from include/busybox.h:10,
> > from applets/applets.c:9:
> > include/platform.h:164:23: fatal error: byteswap.h: No such file or
> > directory
> > compilation terminated.
> > make[1]: *** [applets/applets.o] Error 1
> > make: *** [applets_dir] Error 2
> > /*********************************************/
> > plz help , thanks in advance
> >
> > israr
> _______________________________________________
>
hello Andrew!
Sorry for late reply , and messing up a little.
Going back to my gcc-4.6.0 errors:
A] build was not finding some of the header files , like byteswap.h
/stdio.h etc.
B] error : cannot find -lc
Above errors were corrected as follows:
1} error [A] was corrected by doing the following steps after uClibc
build
completed :
cp ${CLFS}/usr/i386-linux-uclibc/lib/* ${CLFS}/lib
As per KarimYaghmour's book Building Embedded Linux Systems:
cd ${PREFIX}/uclibc/lib
for file in libuClibc ld-uClibc libc libdl \
libcrypt libm libresolv libutil
do
cp $file-*.so ${PRJROOT}/rootfs/lib
cp -d $file.so.[*0-9] ${PRJROOT}/rootfs/lib
done
/*******************/
cp -v cp ${CLFS}/usr/i386-linux-uclibc/usr/include
${CLFS}/usr/include
Note: The commands are likely to report that two files
haven’t been found:
cp: libuClibc.so.[*0-9]: No such file or directory
cp: libc-*.so: No such file or directory
This is not a problem, because these files are not
supposed to exist. The set of
commands just shown is meant to be easy to type in, but
you could add conditional
statements around the cp commands if you prefer not to
see any errors.
2] error [B] was corrected by completely reinstall my host OS
Ubuntu-10.10[ext4]
to Ubuntu-10.10[ext2], that bug was due to ext4 filesystem.
Reference:
http://old.nabble.com/ld%3A-cannot-find--lc-td30321094.html
https://bugs.launchpad.net/ecryptfs/+bug/685392
This way i came upto busybox-1.18.4 setup where again i m getting the
linking problem.
i m building busybox as STATIC=y
but anyway it is linking with libm and libcrypt libs of glibc/uclibc .
even if passing the
make CROSS_COMPILE="${CLFS_TARGET}-" \
CONFIG_PREFIX="${CLFS}" install
parameters for linking, but it is not properly linking with uClibc.
Digging in the buildroot website,help , they instructed to install
glibc-static.
in ubuntu i have searched almost anything but i couldnt find glibc-static.
please help, thanks
israr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clfs.org/pipermail/clfs-support-clfs.org/attachments/20111112/a72e07a9/attachment-0001.htm>
More information about the Clfs-support
mailing list