Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bootstrap issue with binutils and gcc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
jhunholz
Apprentice
Apprentice


Joined: 29 Apr 2004
Posts: 154
Location: Raleigh, NC

PostPosted: Tue Aug 09, 2005 5:21 pm    Post subject: Bootstrap issue with binutils and gcc Reply with quote

While trying to install Gentoo for the first time, I get to bootstrapping but it fails on the package binutils saying:

Code:
checking whether weak symbol works... yes
checking for library containing dlopen... make[1]: Leaving directory `/var/tmp/portage/binutils-2.15.92.0.2-r10/work/build/libiberty'
make[1]: Entering directory `/var/tmp/portage/binutils-2.15.92.0.2-r10/work/build/intl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/portage/binutils-2.15.92.0.2-r10/work/build/intl'
-ldl
checking whether strstr must be declared... no
checking whether free must be declared... make: *** [all-etc] Error 139
make: *** Waiting for unfinished jobs....
no
checking whether sbrk must be declared... no
checking whether getenv must be declared... no
checking whether environ must be declared... yes
checking whether ANSI C string concatenation works... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating po/Makefile.in
creating config.h
                                                                                   
!!! ERROR: sys-devel/binutils-2.15.92.0.2-r10 failed.
!!! Function toolchain-binutils_src_compile, Line 131, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.


I then tried it without the USE flags I had set before and this is what I got.

Code:
make[2]: *** [intl.all] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/gcc-3.3.5.20050130-r1/work/build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.3.5.20050130-r1/work/build/gcc'
make: *** [bootstrap-lean] Error 2
                                                                                   
!!! ERROR: sys-devel/gcc-3.3.5.20050130-r1 failed.
!!! Function gcc_do_make, Line 1216, Exitcode 2
!!! emake failed with bootstrap-lean
!!! If you need support, post the topmost build error, NOT this status message.


Then I tried changing my optomizations to O3, -fomit-frame-pointer (with -pipe and -march=athlon-xp). This is what I got this time:

Code:

Bootstrap comparison failure!
cpptrad.o differs
protector.o differs
ra.o differs
make[1]: *** [compare-lean] Error 1
make[1]: Leaving directory `/var/tmp/portage/gcc-3.3.5.20050130-r1/work/build/gcc'
make: *** [bootstrap-lean] Error 2
                                                                                   
!!! ERROR: sys-devel/gcc-3.3.5.20050130-r1 failed.
!!! Function gcc_do_make, Line 1216, Exitcode 2
!!! emake failed with bootstrap-lean
!!! If you need support, post the topmost build error, NOT this status message.


What needs fixing here?
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Tue Aug 09, 2005 5:27 pm    Post subject: Reply with quote

Hi.

Please post the output of emerge --info If you could also post the previous 10 to 15 lines of your error messages, it would be helpful.
By the way, this post should have been made in the Portage & Programming forum. I'm going to ask a moderator to move it there.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
jhunholz
Apprentice
Apprentice


Joined: 29 Apr 2004
Posts: 154
Location: Raleigh, NC

PostPosted: Tue Aug 09, 2005 5:39 pm    Post subject: Reply with quote

Emerge --info:
Code:
System uname: 2.6.11-1.14_FC3 i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.4.16
dev-lang/python:     2.3.4-r1
sys-apps/sandbox:    1.2.11
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.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-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="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts crypt cups eds emboss encode foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pdflib perl png
python qt quicktime readline sdl spell ssl tcpd truetype truetype-fonts type1-fonts
vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
 


Error message (with 15 more lines)
Code:
Bootstrap complete - make "quickstrap" to redo last build,
or "cleanstrap" to redo the bootstrap from scratch.
make[1]: Leaving directory `/var/tmp/portage/gcc-3.3.5.20050130-r1/work/build/gcc'
Comparing stage2 and stage3 of the compiler
make[1]: Entering directory `/var/tmp/portage/gcc-3.3.5.20050130-r1/work/build/gcc'
rm -f .bad_compare
case "compare-lean" in compare | compare-lean ) stage=2 ;; * ) stage=`echo compare-lean | sed -e 's,^compare\([0-9][0-9]*\).*,\1,'` ;; esac; \
for file in *.o; do \
  tail -c +16 ./$file > tmp-foo1; \
  tail -c +16 stage$stage/$file > tmp-foo2 \
    && (cmp tmp-foo1 tmp-foo2 > /dev/null 2>&1 || echo $file differs >> .bad_compare) || true; \
done
case "compare-lean" in compare | compare-lean ) stage=2 ;; * ) stage=`echo compare-lean | sed -e 's,^compare\([0-9][0-9]*\).*,\1,'` ;; esac; \
for dir in tmp-foo intl cp; do \
  if [ "`echo $dir/*.o`" != "$dir/*.o" ] ; then \
    for file in $dir/*.o; do \
      tail -c +16 ./$file > tmp-foo1; \
      tail -c +16 stage$stage/$file > tmp-foo2 \
        && (cmp tmp-foo1 tmp-foo2 > /dev/null 2>&1 || echo $file differs >> .bad_compare) || true; \
    done; \
  else true; fi; \
done
rm -f tmp-foo*
case "compare-lean" in compare | compare-lean ) stage=2 ;; * ) stage=`echo compare-lean | sed -e 's,^compare\([0-9][0-9]*\).*,\1,'` ;; esac; \
if [ -f .bad_compare ]; then \
  echo "Bootstrap comparison failure!"; \
  cat .bad_compare; \
  exit 1; \
else \
  case "compare-lean" in \
    *-lean ) rm -rf stage$stage ;; \
    *) ;; \
  esac; true; \
fi
Bootstrap comparison failure!
c-format.o differs
g++spec.o differs
genconstants.o differs
make[1]: *** [compare-lean] Error 1
make[1]: Leaving directory `/var/tmp/portage/gcc-3.3.5.20050130-r1/work/build/gcc'
make: *** [bootstrap-lean] Error 2
                                                                                   
!!! ERROR: sys-devel/gcc-3.3.5.20050130-r1 failed.
!!! Function gcc_do_make, Line 1216, Exitcode 2
!!! emake failed with bootstrap-lean
!!! If you need support, post the topmost build error, NOT this status message.

_________________
Member of the Gentoo Right Wing Conspiracy
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Tue Aug 09, 2005 5:46 pm    Post subject: Reply with quote

Well, if I read it correctly, you must be installing your system under a FC3 chroot? Are you doing that?
If you look at the emerge --info details, you'll notice that you don't have autoconf, automake and libtool - that might be natural at this stage, I just don't know.
Since you have an Athlon XP, could this be an issue with overheating? Are you certain that it isn't a problem with bad RAM? Are you using overclocking?
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
jhunholz
Apprentice
Apprentice


Joined: 29 Apr 2004
Posts: 154
Location: Raleigh, NC

PostPosted: Tue Aug 09, 2005 6:21 pm    Post subject: Reply with quote

Yes, I am chrooted in from Fedora (my current install) so I can have a gui while I install. I had thought about the RAM as well, but wasn't positive on that. Does anyone know if it is normal to have autoconf, automake and libtool at this stage?
_________________
Member of the Gentoo Right Wing Conspiracy
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Tue Aug 09, 2005 8:03 pm    Post subject: Reply with quote

jmbsvicetto wrote:
If you look at the emerge --info details, you'll notice that you don't have autoconf, automake and libtool - that might be natural at this stage, I just don't know.

Yes this is normal when doing a stage1 installation.

I would agree that the problem is most likely hardware (i.e. overheating CPU, or bad RAM).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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