View previous topic :: View next topic |
Author |
Message |
glenm n00b
Joined: 05 Jun 2005 Posts: 3
|
Posted: Mon Jun 06, 2005 12:14 am Post subject: stage 1 bootstrap, gcc didn't change gcc-config |
|
|
I've seen the sticky post re "grep: /usr/lib/gcc-lib/i686-pc-linux-gnu/<old_version>/libstdc++.la: No such file or directory". That isn't my problem.
I've seen the comment to fix_libtool_files.sh. Did it. Doesn't help.
It looks to me as if the emerge of gcc with new CHOST failed to update gcc-config when unemerging the old config.
I'm doing a stage1 bootstrap on a 586-like system (EPIA M10000, fwiw).
Around 8 files in, gcc gets rebuilt. Then the bootstrap of glibc fails. From config.log:
configure:2634: gcc --version </dev/null >&5
/usr/bin/gcc-config: line 1: /etc/env.d/gcc/i386-pc-linux-gnu-3.3.5: No such file or directory
* /usr/bin/gcc-config: Profile does not exist or invalid setting for /etc/env.d/gcc/i386-pc-linux-gnu-3.3.5
/etc/env.d/gcc/i386-pc-linux-gnu-3.3.5 doesnt exist
gcc-config error: Could not run/locate "gcc"
As best as I can determine, /etc/env.d/05gcc* aren't updated.
I updated them by hand, then did emerge glibc manually, which is underway now. Seems to be working.
I'm a little uncertain what to do at this point. I suspect something came after glibc in the bootstrap, but don't know what. Nor do I know whether or how to safely resume the bootstrap in this partially bootstrapped system. I can't start again from scratch or I'll run into the same problem that the gcc build will screw up the config again, barring some magic to force the gcc-config between gcc and glibc emerges
Thoughts on how I should proceed?
Have I correctly analyzed the problem, is this a bug, and should I file it?
Various files and listings below.
Cheers,
glen
>>>
livecd env.d # cat 05gcc-i586-pc-linux-gnu
PATH="/usr/i386-pc-linux-gnu/gcc-bin/3.3.5"
ROOTPATH="/usr/i386-pc-linux-gnu/gcc-bin/3.3.5"
livecd env.d # cat 05gcc
PATH="/usr/i386-pc-linux-gnu/gcc-bin/3.3.5"
ROOTPATH="/usr/i386-pc-linux-gnu/gcc-bin/3.3.5"
MANPATH="/usr/share/gcc-data/i386-pc-linux-gnu/3.3.5/man"
INFOPATH="/usr/share/gcc-data/i386-pc-linux-gnu/3.3.5/info"
LDPATH="/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5"
livecd env.d # ls gcc
config i586-pc-linux-gnu-3.3.5-20050130-hardenednopie
config-i586-pc-linux-gnu i586-pc-linux-gnu-3.3.5-20050130-hardenednopiessp
i586-pc-linux-gnu-3.3.5-20050130 i586-pc-linux-gnu-3.3.5-20050130-hardenednossp
i586-pc-linux-gnu-3.3.5-20050130-hardened
Stage1 file is stage1-x86-2005.0.tar.bz2.
Portage is portage-20050604.tar.bz2.
emerge --info yields:
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.11-gentoo-r3 i686)
=================================================================
System uname: 2.6.11-gentoo-r3 i686 VIA Samuel 2
Gentoo Base System version 1.4.16
Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 10 2005, 18:18:11)]
dev-lang/python: 2.3.4-r1
sys-apps/sandbox: [Not Present]
sys-devel/autoconf: [Not Present]
sys-devel/automake: [Not Present]
sys-devel/binutils: 2.15.92.0.2-r10
sys-devel/libtool: [Not Present]
virtual/os-headers: 2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=i586 -m3dnow -Os -mmmx -pipe -fomit-frame-pointer"
CHOST="i586-pc-linux-gnu"
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 -m3dnow -Os -mmmx -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ http://mirror.datapipe.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts crypt cups emboss encode foomaticdb fortran gdbm gif gnome gpm gtk gtk2 imlib ipv6 jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl spell ssl tcpd truetype truetype-fonts type1-fonts xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY |
|
Back to top |
|
|
kernelsensei Bodhisattva
Joined: 22 Feb 2004 Posts: 5619 Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)
|
Posted: Mon Jun 06, 2005 12:23 am Post subject: |
|
|
Hi,
what tells
maybe would you do and then Code: | source /etc/profile |
HTH. _________________ $ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join' |
|
Back to top |
|
|
rhill Retired Dev
Joined: 22 Oct 2004 Posts: 1629 Location: sk.ca
|
Posted: Mon Jun 06, 2005 12:38 am Post subject: |
|
|
you can do a dry run of the bootstrap with
Code: | root ~ # /usr/portage/scripts/bootstrap.sh -p |
and see what packages were after glibc. they'll have to be built with USE="bootstrap". _________________ by design, by neglect
for a fact or just for effect |
|
Back to top |
|
|
glenm n00b
Joined: 05 Jun 2005 Posts: 3
|
Posted: Mon Jun 06, 2005 2:27 pm Post subject: |
|
|
dirtyepic's suggestion helped a lot. Thanks! I proceeded through a couple of additional emerges, and am now in the middle of a stage 2. Crossing my fingers ...
kernel_sensei's comment was also spot-on, though I had already completed this step.
It remains to consider why the problem occurred in the first place, and whether this is a bug that is worthwhile to file.
Thoughts?
glen |
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|