On 'emerge system' it gets to 'gcc -o sulogin sulogin.o' and generates these errors: sulogin.o(.text+0x8d4): In function `main': : undefined reference to `crypt' collect2: ld returned 1 exit status make: *** [sulogin] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: sys-apps/baselayout-1.8.6.8-r1 failed. !!! Function src_compile, Line 110, Exitcode 2 !!! problem compiling sysvinit. I have tried adding "crypt" to the use field of /etc/make.conf but it still produces the same error. Presently, there is nothing in my /etc/make.conf's USE field. Settings as follows: CHOST="i686-pc-linux-gnu" CFLAGS="-mcpu=k6-2 -03 -pipe" CXXFLAGS="${CFLAGS}" Reproducible: Always Steps to Reproduce: 1. Clean install 2. configure /etc/make.conf 3. Bootstrap 4. emerge system Actual Results: sulogin.o(.text+0x8d4): In function `main': : undefined reference to `crypt' collect2: ld returned 1 exit status make: *** [sulogin] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: sys-apps/baselayout-1.8.6.8-r1 failed. !!! Function src_compile, Line 110, Exitcode 2 !!! problem compiling sysvinit. Expected Results: compiled sysvinit and continued with the emerge !!! No gcc found. You probably need to 'source /etc/profile' to update !!! the environment of this terminal and possibly other terminals also. Portage 2.0.48-r5 (default-x86-1.4, [unavailable], glibc-2.3.1-r4) ================================================================= system uname: 2.4.20-xfs-r2 i586 AMD-K6(tm) 3D processor GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /user/kde/2/share/conf ig /usr/kde/3/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm arts avi berkdb cups encode foomaticdb gdbm gif gpm gtk imlib java jpeg kde gnome libg++ libwww mad mikmod mmx motif mpeg ncurses nls oggvorbis opengl pam pdflib png python qt quicktime readline sdl slang spell ssl svga tcpd truetype X xml2 xmms xv zlib crypt" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-mcpu=k6-2 -03 -pipe" CXXFLAGS="-mcpu=k6-2 -03 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
try i586 instead of k6-2
thats a linker error not compiler
Yes, but CHOST should still be fixed - K6 is a i586, and NOT a i686. Can you remember if baselayout merged before or *AFTER* glibc ? If it did so before glibc, then that could be the reason. If it did merge after, then please retry with fixed CHOST - you never know what could have broken with it set wrong.
Changing to i586 seemed to work. Thanks for the help! I forgot that the K6-2 was a 586 and not a 686.
Closing.