Reported error : /usr/bin/ld: cannot find -lc when linking Starting from scratch, stage1 tarball (2004.2). Changed profile to /usr/portage/profiles/uclibc/x86. bootstrap.sh ended OK when emerging system, it fails with the reported error. Tried with 3.6 with same failure. Reproducible: Always Steps to Reproduce: 1.Choose uclibc profile 2.bootstrap 3.emerge system Actual Results: /usr/bin/ld: cannot find -lc when linking gcc -march=i586 -Os -pipe -fomit-frame-pointer -Wall -Wmissing-prototypes - DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 - DMOUNT_TYPE='"ext3"' -DHAVE_READLINE -c -o utils.o utils.c gcc --disable-shared -static -s -o sash sash.o cmds.o cmd_dd.o cmd_ed.o cmd_grep.o cmd_ls.o cmd_tar.o cmd_gzip.o cmd_find.o cmd_file.o cmd_chattr.o cmd_ar.o utils.o -lz -lreadline -lncurses /usr/bin/ld: cannot find -lc collect2: ld returned 1 exit status make: *** [sash] Error 1 Portage 2.0.51-r2 (uclibc/x86, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.4.26- gentoo-r9 i686) ================================================================= System uname: 2.4.26-gentoo-r9 i686 AMD Athlon(tm) XP 2000+ Gentoo Base System version 1.4.16 Autoconf: Automake: Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=i586 -Os -pipe -fomit-frame-pointer" CHOST="i586-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/ config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=i586 -Os -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks nodoc noinfo noman sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.mirror.sdv.fr" MAKEOPTS="-j2" PKGDIR="/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="berkdb hardened ncurses pic pie readline uclibc x86 zlib"
You need to start from a hardened-uClibc-stage-1 vs a glibc-stage-1. Grab a stage-1 off of one of the mirrors http://www.google.com/search?q=stage1-x86-uclibc-hardened-2004.3.tar.bz2