I am attempting to install Gentoo on an Athlon64 system from stage 1. I currently have it installed on a harddrive on this system, and am working off that harddrive to install it on a RAID array on the same box. However, once I get into the chroot, I am following the Gentoo manual word for word. The problem is, gcc seems to be unable to compile anything. Reproducible: Always Steps to Reproduce: 1. Setup gentoo install chroot for stage1 2. run bootstrap.sh Actual Results: These errors appear from bootstrap.sh: [[ (2/6) Updating portage ]] Calculating dependencies ...done! >>> emerge (1 of 1) sys-apps/portage-2.0.51.19 to / >>> md5 src_uri ;-) portage-2.0.51.19.tar.bz2 >>> Unpacking source... >>> Unpacking portage-2.0.51.19.tar.bz2 to /var/tmp/portage/portage-2.0.51.19/work >>> Source unpacked. gcc: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.2/: Is a directory * No valid multilib environment found! * Building without multilib support. If * you want to have multilib support, * emerge gcc with "multilib" in your * useflags. ./create-localdecls Checking truncate argument type... off_t Checking libc version... gcc: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.2/: Is a directory ldd: ./libctest: No such file or directory rm: cannot remove `libctest': No such file or directory gcc -O1 -pipe -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -Wall -c libsandbox.c gcc: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.2/: Is a directory make: *** [libsandbox.o] Error 1 !!! ERROR: sys-apps/portage-2.0.51.19 failed. !!! Function src_compile, Line 79, Exitcode 2 !!! (no error message) ----------------------------------------------------------------------- Tring to compile a simple hello world c program does this: muncc portage # gcc -o hello hello.c gcc: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.2/: Is a directory Expected Results: GCC should be able to compile and link, and bootstrap.sh should work muncc portage # emerge info Portage 2.0.51-r2 (default-linux/amd64/2004.3, gcc-3.4.2, unavailable, 2.6.10-gentoo-r7 x86_64) ================================================================= System uname: 2.6.10-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.4.16 Autoconf: Automake: Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: Libtools: ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-march=athlon64 -O2 -pipe" CHOST="x86_64-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=athlon64 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 acpi alsa berkdb bitmap-fonts crypt font-server fortran gif gpm ipv6 jp2 jpeg lzw lzw-tiff mp3 ncurses nls opengl oss pam perl png python readline ssl tcpd tiff truetype truetype-fonts type1-fonts usb userlocales xml2 xpm xrandr xv zlib" When I orginally installed Gentoo on this box, it worked fine. Now, on the same box, I'm running into problems.
Please use bootstrap-new.sh and report back.
It still fails, with this error: >>> Source unpacked. gcc: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.2/: Is a directory * No valid multilib environment found! * Building without multilib support. If * you want to have multilib support, * emerge gcc with "multilib" in your * useflags. ./create-localdecls Checking truncate argument type... off_t Checking libc version... gcc: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.2/: Is a directory ldd: ./libctest: No such file or directory rm: cannot remove `libctest': No such file or directory gcc -O1 -pipe -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -Wall -c libsandbox.c gcc: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.2/: Is a directory make: *** [libsandbox.o] Error 1 !!! ERROR: sys-apps/portage-2.0.51.19 failed. !!! Function src_compile, Line 79, Exitcode 2 !!! (no error message)
this should be fixed with 2005.0, please re-open if that's not the case