Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Broken Tool Chain?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ShadowHawkBV
Guru
Guru


Joined: 27 Mar 2004
Posts: 352

PostPosted: Tue Feb 02, 2010 1:20 am    Post subject: [SOLVED] Broken Tool Chain? Reply with quote

I've come across a real poser. At random, I'm getting segmentation faults when I try to emerge files. I've rebuilt my tool chain once.. The second time seg faulted here:

Code:
config.status: linking ./mpn/generic/mul_n.c to mpn/mul_n.c
config.status: linking ./mpn/x86_64/mul_basecase.asm to mpn/mul_basecase.asm
./config.status: line 1565:  3378 Segmentation fault      rm -f $ac_dest
./config.status: line 1565:  3393 Segmentation fault      ln -s $ac_rel_source $ac_dest 2> /dev/null
./config.status: line 1565:  3394 Segmentation fault      ln $srcdir/$ac_source $ac_dest 2> /dev/null
./config.status: line 1565:  3395 Segmentation fault      cp -p $srcdir/$ac_source $ac_dest
config.status: error: cannot link or copy ./mpn/x86_64/mul_basecase.asm to mpn/mul_basecase.asm

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-libs/gmp-4.3.1/work/gmp-4.3.1/config.log
 * ERROR: dev-libs/gmp-4.3.1 failed:
 *   econf failed
 *
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 3002:  Called econf '--localstatedir=/var/state/gmp' '--disable-mpfr' '--disable-mpbsd' '--enable-cxx'
 *     ebuild.sh, line  544:  Called die
 * The specific snippet of code:
 *            die "econf failed"


Looking back my eix-sync failed here:
Code:
Performing Global Updates: /usr/portage/profiles/updates/1Q-2010
(Could take a couple of minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  #='/var/db update'  @='/var/db move'
  s='/var/db SLOT move'  %='binary move'  S='binary SLOT move'
  p='update /etc/portage/package.*'
......................


 * Copying old /var/cache/eix cache to /var/cache/eix.previous
 * Running eix-update
Reading Portage settings ..
Building database (/var/cache/eix) ..
[0] "gentoo" /usr/portage/ (cache: metadata-flat)
     Reading  30%/usr/bin/eix-sync: line 234:  4347 Segmentation fault      "${@}"
 * Failure while running eix-update
 * Time statistics:
   127 seconds for syncing
     3 seconds for eix-update
   130 seconds total


I've run memtest86 for 48 hours straight with no errors. The CPU reports temps well within it's specs: 37-41 deg C. I'm at my wits end for what to try next.

Here's my emerge --info
Code:
emerge --info
Portage 2.1.7.16 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-x86_64-AMD_Phenom-tm-_II_X4_955_Processor-with-gentoo-2.0.1
Timestamp of tree: Tue, 02 Feb 2010 00:30:24 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r2
dev-lang/python:     2.6.4
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -mtune=amdfam10 -msse4a"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirrors.tera-byte.com/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.arcticnetwork.ca/ http://www.gtlib.gatech.edu/pub/gentoo http://gentoo.cites.uiuc.edu/pub/gentoo/ "
LANG="C"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apm avahi berkdb bluetooth branding bzip2 cairo cdda cdinstall cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo fam firefox flac fortran ftp gdbm gif gimp gnome gnome-keyring gphoto2 gpm gstreamer gtk hal iconv ieee1394 ipv6 java6 jpeg jpeg2k kerberos ldap libnotify lm_sensors mad mikmod mime mmx mng modules mp3 mp4 mpeg mplayer mudflap multilib ncurses networkmanager nls nocd nptl nptlonly offensive ogg opengl openmp pam pcre pdf perl png ppds pppd pulseaudio python qt3support qt4 quicktime readline reflection samba sdl session smp spell spl sse sse2 ssl startup-notification svg sysfs tcpd thunar tiff truetype unicode usb vnc vorbis x264 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="snd-atiixp" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Any suggestions will be appreciated.
_________________
This space for rent... Well maybe to give away.. Heck.. i'll pay you to take it.

Lost Linux Neophyte
Intel i7-1065G7
Intel i7-8565U
Intel Atom Cherry Trail
AMD Phenom(tm) II X4 955
Pure 64bit frustration :-)


Last edited by ShadowHawkBV on Thu Feb 04, 2010 9:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
geki
Advocate
Advocate


Joined: 13 May 2004
Posts: 2387
Location: Germania

PostPosted: Tue Feb 02, 2010 9:23 am    Post subject: Reply with quote

Quote:
Phenom X3/X4 (AMD)

vendor_id : AuthenticAMD
cpu family : 16
model : 2
model name : AMD Phenom(tm) xxxx Triple/Quad-Core Processor
stepping : 2/3

CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -msse3 -pipe"
CXXFLAGS="${CFLAGS}"

Note: The -march=amdfam10 option was added to gcc 4.3.0. You probably won't want to use that version yet.
http://www.gentoo-wiki.info/Safe_Cflags

maybe bad code generation? :?
boot livecd and unpack stage3 to rescue your system?
and try gcc-4.4.x for '-march=amdfam10'
_________________
hear hear
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Tue Feb 02, 2010 2:42 pm    Post subject: Reply with quote

... or "-march=native -O2 -pipe"
Back to top
View user's profile Send private message
ShadowHawkBV
Guru
Guru


Joined: 27 Mar 2004
Posts: 352

PostPosted: Thu Feb 04, 2010 9:34 pm    Post subject: Reply with quote

I tried the march="native" and march="k8". Then I thought to check if a newer Bios was available for my board. There was one. After installing it, march="native" works as does the original AMD suggested mtune="amdfam10". I've reverted it to the native to reduce the chance of silliness.

Thanks for the assistance.
_________________
This space for rent... Well maybe to give away.. Heck.. i'll pay you to take it.

Lost Linux Neophyte
Intel i7-1065G7
Intel i7-8565U
Intel Atom Cherry Trail
AMD Phenom(tm) II X4 955
Pure 64bit frustration :-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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