View previous topic :: View next topic |
Author |
Message |
jetsaredim n00b
Joined: 28 Sep 2003 Posts: 40 Location: North East US
|
Posted: Mon Apr 25, 2005 12:32 pm Post subject: Extremely odd bootstrap problems!!! |
|
|
I seem to be having a problem with bootstrapping my system. The system has the following specs:
nforce2 mobo
athlon xp-m @2.2Ghz
1 GB PC3500
GeForce FX 5200+
DVDR (not DL)
CDR
HDD1 (Gentoo Linux)
HDD2 (Winblows XP)
I had Gentoo installed on this system since about Thanksgiving. I had some intricate CFLAGS settings and when the latest update to gcc came out, I couldn't get it installed. So, I decided it was time to clean the cruft and reinstall.
I go to reinstall and I'm getting problems with the bootstrap script in compiling binutils.
Here's my make.conf:
Code: | CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
USE="dvd dvdr dvdread cdr" |
That's pretty much the only thing I've done to the system as far as customizations... I'm trying to figure out what the problem is...
Here's the error chain I'm seeing:
Code: | gcc: Internal error: Segmentation fault (program as)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.
make[3]: *** [elf.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/binutils-2.15.92.0.2-r7/work/binutils-2.15.92.0.2/bfd -I. -D_GNU_SOURCE -DTRAD_CORE -I. -I/var/tmp/portage/binutils-2.15.92.0.2-r7/work/binutils-2.15.92.0.2/bfd -I/var/tmp/portage/binutils-2.15.92.0.2-r7/work/binutils-2.15.92.0.2/bfd/../include -I/var/tmp/portage/binutils-2.15.92.0.2-r7/work/binutils-2.15.92.0.2/bfd/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -march=athlon-xp -pipe -O2 -c /var/tmp/portage/binutils-2.15.92.0.2-r7/work/binutils-2.15.92.0.2/bfd/elflink.c -o elflink.o >/dev/null 2>&1
make[3]: Leaving directory `/var/tmp/portage/binutils-2.15.92.0.2-r7/work/build/bfd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/binutils-2.15.92.0.2-r7/work/build/bfd'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/binutils-2.15.92.0.2-r7/work/build/bfd'
make: *** [all-bfd] Error 2
!!! ERROR: sys-devel/binutils-2.15.92.0.2-r7 failed.
!!! Function toolchain-binutils_src_compile, Line 121, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message. |
Suggestions?
Last edited by jetsaredim on Tue Apr 26, 2005 1:22 am; edited 1 time in total |
|
Back to top |
|
|
Karsten from Berlin Guru
Joined: 28 Feb 2004 Posts: 446 Location: Berlin/Germany
|
Posted: Mon Apr 25, 2005 12:39 pm Post subject: |
|
|
1.
Output of 'emerge info' - it's a good overview for us.
2.
CFLAGS seem to be ok.
3.
Is it always the same error at the same position, or is it changing?
4.
Maybe retry with only '-pipe -march=<...> -O2'. The bootstrap is fragile. _________________ Heaven: The police are British, the chefs Italian, the mechanics German, the lovers French and it's organized by the Swiss.
Hell: The police are German, the chefs British, the mechanics French, the lovers Swiss and it's organized by the Italians. |
|
Back to top |
|
|
jetsaredim n00b
Joined: 28 Sep 2003 Posts: 40 Location: North East US
|
Posted: Tue Apr 26, 2005 12:02 am Post subject: |
|
|
I set -O2 instead of -O3...
Code: | # emerge info
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 Unknown CPU Typ
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-devel/autoconf: [Not Present]
sys-devel/automake: [Not Present]
sys-devel/binutils: 2.15.92.0.2-r1
sys-devel/libtool: [Not Present]
virtual/os-headers: 2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
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="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
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 cdr crypt cups dvd dvdr dvdread 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 svga tcpd truetype truetype-fonts type1-fonts xml2 xmms xv zlib"
Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY |
It had been failing at the same spot. I tried re-mkreiserfs'ing and starting the install over from scratch. I now fail at a different point...
Code: | /var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/gcc/alias.c: In function `true_dependence':
/var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/gcc/alias.c:2230: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
gcc -c -O -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/gcc -I/var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/gcc/. -I/var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/gcc/config -I/var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/gcc/../include /var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/gcc/calls.c -o calls.o
The bug is not reproducible, so it is likely a hardware or OS problem.
make[2]: *** [alias.o] 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 1137, Exitcode 2
!!! emake failed with bootstrap-lean
!!! If you need support, post the topmost build error, NOT this status message. |
|
|
Back to top |
|
|
opentaka l33t
Joined: 18 Feb 2005 Posts: 840 Location: Japan
|
Posted: Tue Apr 26, 2005 7:27 am Post subject: |
|
|
you might wanna remove -pipe -fomit-frame-pointer then give it a try.
mplayer also fails when you have both -pipe -fomit-frame-pointer _________________ "Being defeated is often a temporary condition. Giving up is what makes it permanent" - Marilyn vos Savant
|
|
Back to top |
|
|
Karsten from Berlin Guru
Joined: 28 Feb 2004 Posts: 446 Location: Berlin/Germany
|
Posted: Tue Apr 26, 2005 7:42 am Post subject: |
|
|
https://bugs.gentoo.org/show_bug.cgi?id=89320
You're not the only one. _________________ Heaven: The police are British, the chefs Italian, the mechanics German, the lovers French and it's organized by the Swiss.
Hell: The police are German, the chefs British, the mechanics French, the lovers Swiss and it's organized by the Italians. |
|
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
|
|