Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 84667 - Stage1 GCC fails to compile during bootstrap.sh
Summary: Stage1 GCC fails to compile during bootstrap.sh
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High major
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-09 14:00 UTC by Patrick McDonnell
Modified: 2005-05-10 12:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick McDonnell 2005-03-09 14:00:15 UTC
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.
Comment 1 Danny van Dyk (RETIRED) gentoo-dev 2005-03-09 17:26:20 UTC
Please use bootstrap-new.sh and report back.
Comment 2 Patrick McDonnell 2005-03-09 17:38:38 UTC
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)
Comment 3 Simon Stelling (RETIRED) gentoo-dev 2005-05-10 12:53:28 UTC
this should be fixed with 2005.0, please re-open if that's not the case