On Sat, Nov 12, 2011 at 7:35 PM, Andrew Bradford <[email protected]> wrote:
> On Sat, Nov 12, 2011 at 5:29 AM, sayed israr <[email protected]> wrote: > > 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: > > OK. I'm not that familiar with the x86 build and I haven't had time > lately to try reproducing your issue (started new job this past week). > If this is getting you past the issue, that's good, I guess. > > > 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. > > The glibc-static naming probably comes from Fedora, a similar issue > was found in March (Fedora has 3 packages for glibc that are all > needed for CLFS embedded build): > > http://lists.cross-lfs.org/pipermail/clfs-dev-cross-lfs.org/2011-March/000904.html > > The package you're looking for on Ubuntu may be called "libc6-dev" if > the issue is that you're missing host dependencies. If you don't yet > have that installed, install it and try starting again. > > When you're building Busybox, I don't believe there should be any > linking against the host libs. Everything should be linking against > the uClibc components that you built. I'm slightly confused by your > statements here, sorry. > > -Andrew > _______________________________________________ > ok...libc6-dev , i have already installed , same error > AR util-linux/volume_id/lib.a LINK busybox_unstripped Trying libraries: crypt m Failed: -Wl,--start-group -lcrypt -lm -Wl,--end-group Output of: i586-pc-linux-uclibc-gcc -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wold-style-definition -fno-builtin-strlen -finline-limit=0 -fomit-frame-pointer -ffunction-sections -fdata-sections -fno-guess-branch-probability -funsigned-char -static-libgcc -falign-functions=1 -falign-jumps=1 -falign-labels=1 -falign-loops=1 -Os -march=i386 -mpreferred-stack-boundary=2 -o busybox_unstripped -Wl,--start-group applets/built-in.o archival/lib.a archival/libarchive/lib.a console-tools/lib.a coreutils/lib.a coreutils/libcoreutils/lib.a debianutils/lib.a e2fsprogs/lib.a editors/lib.a findutils/lib.a init/lib.a libbb/lib.a libpwdgrp/lib.a loginutils/lib.a mailutils/lib.a miscutils/lib.a modutils/lib.a networking/lib.a networking/libiproute/lib.a networking/udhcp/lib.a printutils/lib.a procps/lib.a runit/lib.a selinux/lib.a shell/lib.a sysklogd/lib.a util-linux/lib.a util-linux/volume_id/lib.a archival/built-in.o archival/libarchive/built-in.o console-tools/built-in.o coreutils/built-in.o coreutils/libcoreutils/built-in.o debianutils/built-in.o e2fsprogs/built-in.o editors/built-in.o findutils/built-in.o init/built-in.o libbb/built-in.o libpwdgrp/built-in.o loginutils/built-in.o mailutils/built-in.o miscutils/built-in.o modutils/built-in.o networking/built-in.o networking/libiproute/built-in.o networking/udhcp/built-in.o printutils/built-in.o procps/built-in.o runit/built-in.o selinux/built-in.o shell/built-in.o sysklogd/built-in.o util-linux/built-in.o util-linux/volume_id/built-in.o -Wl,--end-group -Wl,--start-group -lcrypt -lm -Wl,--end-group ========== */mnt/clfs/cross-tools/lib/gcc/i586-pc-linux-uclibc/4.6.0/../../../../i586-pc-linux-uclibc/bin/ld: cannot find -lcrypt /mnt/clfs/cross-tools/lib/gcc/i586-pc-linux-uclibc/4.6.0/../../../../i586-pc-linux-uclibc/bin/ld: cannot find -lm collect2: ld returned 1 exit status* make: *** [busybox_unstripped] Error 1 what to do ? thanks for reply andrew israr
_______________________________________________ Clfs-support mailing list [email protected] http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org
