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