View previous topic :: View next topic |
Author |
Message |
Lupin_the_3rd Apprentice
Joined: 03 Apr 2005 Posts: 168
|
Posted: Fri Feb 23, 2007 3:59 am Post subject: emerge gmp fails on alpha [solved] |
|
|
Looks like GCC v4 was recently marked stable on alpha. Currently have gcc 3.4.6 and trying to upgrade. One of the deps of gcc4 is the gmp package. When I emerge gmp, it fails in the following manner:
gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_mod_34lsub1 -mieee -O2 -mcpu=ev56 -pipe tmp-mod_34lsub1.s -fPIC -DPIC -o .libs/mod_34lsub1.o
../mpn/m4-ccas --m4=m4 gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_mod_34lsub1 -mieee -O2 -mcpu=ev56 -pipe mod_34lsub1.asm -o mod_34lsub1.o >/dev/null 2>&1
/bin/sh ../libtool --mode=compile --tag=CC ../mpn/m4-ccas --m4="m4" gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo mode1o | sed 's/_$//'` -mieee -O2 -mcpu=ev56 -pipe `test -f 'mode1o.asm' || echo './'`mode1o.asm
../mpn/m4-ccas --m4=m4 gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_mode1o -mieee -O2 -mcpu=ev56 -pipe mode1o.asm -fPIC -DPIC -o .libs/mode1o.o
m4 -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_mode1o -DPIC mode1o.asm >tmp-mode1o.s
gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_mode1o -mieee -O2 -mcpu=ev56 -pipe tmp-mode1o.s -fPIC -DPIC -o .libs/mode1o.o
tmp-mode1o.s: Assembler messages:
tmp-mode1o.s:117: Error: macro requires $at register while noat in effect
make[2]: *** [mode1o.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-libs/gmp-4.2.1/work/gmp-4.2.1/mpn'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/gmp-4.2.1/work/gmp-4.2.1'
make: *** [all] Error 2
!!! ERROR: dev-libs/gmp-4.2.1 failed.
Call stack:
ebuild.sh, line 1614: Called dyn_compile
ebuild.sh, line 971: Called qa_call 'src_compile'
environment, line 3566: Called src_compile
gmp-4.2.1.ebuild, line 55: Called die
!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/dev-libs/gmp-4.2.1/temp/build.log'.
Here's my emerge --info if it helps any:
emerge --info
Portage 2.1.2-r9 (default-linux/alpha/2006.1/desktop, gcc-3.4.6, glibc-2.3.6-r4, 2.6.19-gentoo-r6-kramer alpha)
=================================================================
System uname: 2.6.19-gentoo-r6-kramer alpha EV56
Gentoo Base System version 1.12.6
Timestamp of tree: Mon, 19 Feb 2007 17:20:01 +0000
ccache version 2.4 [disabled]
dev-java/java-config: 1.2.11-r1
dev-lang/python: 2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: 2.4-r6
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.61
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r5
ACCEPT_KEYWORDS="alpha"
AUTOCLEAN="yes"
CBUILD="alphaev56-unknown-linux-gnu"
CFLAGS="-mieee -O2 -mcpu=ev56 -pipe"
CHOST="alphaev56-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-mieee -O2 -mcpu=ev56 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://mirror.iawnet.sandia.gov/pub/gentoo/"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 aalib aim alpha alsa alsalib apache2 arts bash-completion berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt cups dga directfb divx4linux dlloader dri dvd dvdr dvdread encode esd faad2 fam fbcon flac fortran freetype gdbm gif gimpprint glut glx gpm gstreamer gtk gtk2 iconv ieee1394 imlib isdnlog jpeg ldap libg++ mad matrox mga midi mikmod motif mp3 mpeg nas ncurses nls nptl nptlonly offensive ogg oggvorbis opengl oss pam pcre perl png posix ppds pppd python qt qt3 qt4 quicktime readline reflection ruby scanner session sox spell spl ssh ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb vorbis x x11 xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 bt87x ca0106 cmipci emu10k1 ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 maestro3 trident usb-audio via82xx ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="matrox"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Thanks for looking! _________________ Compaq XP1000 Alpha EV67 667Mhz w/ 2GB ECC
32bit PCI: ATI Radeon 9100 (DRI works!)
32bit PCI: Generic Firewire 400 card
64bit PCI: BCM5703 Gig-E (Compaq NC7771)
64bit PCI: Sil3124 SATA w/ mdadm RAID1 (pair of WD VelociRaptors)
Last edited by Lupin_the_3rd on Tue Aug 21, 2007 12:05 am; edited 1 time in total |
|
Back to top |
|
|
mark_alec Bodhisattva
Joined: 11 Sep 2004 Posts: 6066 Location: Melbourne, Australia
|
Posted: Fri Feb 23, 2007 5:11 am Post subject: |
|
|
Moved from Portage & Programming to Gentoo on Alternative Architectures. _________________ www.gentoo.org.au || #gentoo-au |
|
Back to top |
|
|
Lupin_the_3rd Apprentice
Joined: 03 Apr 2005 Posts: 168
|
Posted: Fri Mar 02, 2007 2:19 pm Post subject: |
|
|
Just finished an "emerge -e system" followed by an "emerge -e world".
emerge gmp still fails with the exact same error. Am I the only one with the problem? Everyone else can emerge gmp just fine? _________________ Compaq XP1000 Alpha EV67 667Mhz w/ 2GB ECC
32bit PCI: ATI Radeon 9100 (DRI works!)
32bit PCI: Generic Firewire 400 card
64bit PCI: BCM5703 Gig-E (Compaq NC7771)
64bit PCI: Sil3124 SATA w/ mdadm RAID1 (pair of WD VelociRaptors) |
|
Back to top |
|
|
mark_alec Bodhisattva
Joined: 11 Sep 2004 Posts: 6066 Location: Melbourne, Australia
|
Posted: Sat Mar 03, 2007 1:16 am Post subject: |
|
|
Try asking in the #gentoo-alpha IRC channel on Freenode. _________________ www.gentoo.org.au || #gentoo-au |
|
Back to top |
|
|
Lupin_the_3rd Apprentice
Joined: 03 Apr 2005 Posts: 168
|
Posted: Tue Mar 06, 2007 7:35 pm Post subject: |
|
|
From the GMP homepage (http://gmplib.org/):
" GMP is very often miscompiled! We are seeing ever increasing problems with miscompilations of the GMP code. It has now come to the point where a compiler should be assumed to miscompile GMP. Please never use your newly compiled libgmp.a or libgmp.so without first running make check. If it doesn't complete without errors, don't trust the library. Please try another compiler release, or change optimization flags until it works. If you have the skill to isolate the problem, please report it to us if it is a GMP bug; else to the compiler vendor. (The compilers that cause problems are HP's unbundled compilers and GCC, in particular Apple's GCC releases.) "
I'm not a programmer, but it sounds like a very real possibility that the package is not being built correctly when using the portage ebuild...
EDIT: I just downloaded the source code for gmp 4.2.1 from ftp.gnu.org. It builds cleanly on the same system so the problem is clearly in the ebuild. What should I do, submit a bug report? _________________ Compaq XP1000 Alpha EV67 667Mhz w/ 2GB ECC
32bit PCI: ATI Radeon 9100 (DRI works!)
32bit PCI: Generic Firewire 400 card
64bit PCI: BCM5703 Gig-E (Compaq NC7771)
64bit PCI: Sil3124 SATA w/ mdadm RAID1 (pair of WD VelociRaptors) |
|
Back to top |
|
|
mark_alec Bodhisattva
Joined: 11 Sep 2004 Posts: 6066 Location: Melbourne, Australia
|
Posted: Wed Mar 07, 2007 11:50 am Post subject: |
|
|
Lupin_the_3rd wrote: | What should I do, submit a bug report? | Good idea _________________ www.gentoo.org.au || #gentoo-au |
|
Back to top |
|
|
Lupin_the_3rd Apprentice
Joined: 03 Apr 2005 Posts: 168
|
Posted: Wed Mar 07, 2007 4:30 pm Post subject: |
|
|
mark_alec wrote: | Lupin_the_3rd wrote: | What should I do, submit a bug report? | Good idea |
Ok, done! _________________ Compaq XP1000 Alpha EV67 667Mhz w/ 2GB ECC
32bit PCI: ATI Radeon 9100 (DRI works!)
32bit PCI: Generic Firewire 400 card
64bit PCI: BCM5703 Gig-E (Compaq NC7771)
64bit PCI: Sil3124 SATA w/ mdadm RAID1 (pair of WD VelociRaptors) |
|
Back to top |
|
|
Gex n00b
Joined: 27 Sep 2002 Posts: 23 Location: Vienna
|
Posted: Mon May 21, 2007 7:45 am Post subject: |
|
|
hi,
im not sure if its true for alphas as well, but i had the same problem on x86.
my problem was this CFLAG: -freorder-blocks-and-partition
when i removed it from my make.conf, compiling worked fine |
|
Back to top |
|
|
Lupin_the_3rd Apprentice
Joined: 03 Apr 2005 Posts: 168
|
Posted: Tue May 29, 2007 3:25 am Post subject: |
|
|
Gex wrote: | hi,
im not sure if its true for alphas as well, but i had the same problem on x86.
my problem was this CFLAG: -freorder-blocks-and-partition
when i removed it from my make.conf, compiling worked fine |
Hmmm Thanks but I'm not using that flag. See above for the CFLAG's that I'm using. just did an emerge --sync today and gmp still fails, same error. _________________ Compaq XP1000 Alpha EV67 667Mhz w/ 2GB ECC
32bit PCI: ATI Radeon 9100 (DRI works!)
32bit PCI: Generic Firewire 400 card
64bit PCI: BCM5703 Gig-E (Compaq NC7771)
64bit PCI: Sil3124 SATA w/ mdadm RAID1 (pair of WD VelociRaptors) |
|
Back to top |
|
|
Lupin_the_3rd Apprentice
Joined: 03 Apr 2005 Posts: 168
|
Posted: Wed Aug 15, 2007 9:04 pm Post subject: |
|
|
I'd like to upgrade my gcc to gcc4 but gmp is a dependency so I cannot upgrade until gmp compiles! _________________ Compaq XP1000 Alpha EV67 667Mhz w/ 2GB ECC
32bit PCI: ATI Radeon 9100 (DRI works!)
32bit PCI: Generic Firewire 400 card
64bit PCI: BCM5703 Gig-E (Compaq NC7771)
64bit PCI: Sil3124 SATA w/ mdadm RAID1 (pair of WD VelociRaptors) |
|
Back to top |
|
|
Lupin_the_3rd Apprentice
Joined: 03 Apr 2005 Posts: 168
|
Posted: Sat Aug 18, 2007 2:14 am Post subject: |
|
|
Ok, gmp has compiled - here's how I did it.
First, changed my CHOST setting in make.conf from alphaev56-unknown-linux-gnu to alpha-unknown-linux-gnu and then followed this guide:
http://www.gentoo.org/doc/en/change-chost.xml
And gmp compiled fine. Apparently, the gmp ebuild doesn't like a non-default CHOST setting, at least on alpha... _________________ Compaq XP1000 Alpha EV67 667Mhz w/ 2GB ECC
32bit PCI: ATI Radeon 9100 (DRI works!)
32bit PCI: Generic Firewire 400 card
64bit PCI: BCM5703 Gig-E (Compaq NC7771)
64bit PCI: Sil3124 SATA w/ mdadm RAID1 (pair of WD VelociRaptors) |
|
Back to top |
|
|
|