Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 308461 - accadental unmerge of gmp now gcc fails
Summary: accadental unmerge of gmp now gcc fails
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-08 14:00 UTC by Wes
Modified: 2010-03-08 17:40 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wes 2010-03-08 14:00:15 UTC
I was attempting to clean out packages left behind from gtk.  I thought that gmp was gimp.  Don't ask... I know.  As I now know what gmp is and that it is required by GCC, nothing on my system will compile.  Please bare with me, this is the first time I have submitted a bug report.  I have attempted to include all information that will be of use.  I would like to know how to get gmp reinstalled or how to get a compiler that doesn't require it so that I can reemerge it.  

Steps to Reproduce:
emerge --unmerge gmp

Actual results:
gmp was unmerged.

Expected results:
gmp is aparently a vital piece to my system.  It should not have been so easily removed or should have warned about the results.

Additional Info:

shadow ~ # emerge gmp
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-libs/gmp-4.3.1
 * gmp-4.3.1.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                     [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
 * CPV:  dev-libs/gmp-4.3.1
 * REPO: gentoo
 * USE:  amd64 elibc_glibc kernel_linux userland_GNU
>>> Unpacking source...
>>> Unpacking gmp-4.3.1.tar.bz2 to /var/tmp/portage/dev-libs/gmp-4.3.1/work
 * Applying gmp-4.1.4-noexecstack.patch ...                               [ ok ]
 * Applying gmp-4.3.0-ABI-multilib.patch ...                              [ ok ]
 * Applying gmp-4.2.1-s390.diff ...                                       [ ok ]
 * Applying gmp-4.3.1-fix-broken-ansi-check.patch ...                     [ ok ]
 * Running elibtoolize in: gmp-4.3.1
 *   Applying install-sh-1.5.6.patch ...
 *   Applying portage-1.5.10.patch ...
 *   Applying sed-1.5.6.patch ...
 *   Applying as-needed-1.5.26.patch ...
>>> Source unpacked in /var/tmp/portage/dev-libs/gmp-4.3.1/work
>>> Compiling source in /var/tmp/portage/dev-libs/gmp-4.3.1/work/gmp-4.3.1 ...
 * econf: updating gmp-4.3.1/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating gmp-4.3.1/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --localstatedir=/var/state/gmp --disable-mpfr --disable-mpbsd --enable-cxx
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking GMPABI=64
checking compiler x86_64-pc-linux-gnu-gcc -march=opteron -O2 -pipe -fomit-frame-pointer ... no
configure: error: could not find a working compiler, see config.log for details

!!! 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 2999:  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"
 *
 * If you need support, post the output of 'emerge --info =dev-libs/gmp-4.3.1',
 * the complete build log and the output of 'emerge -pqv =dev-libs/gmp-4.3.1'.
 * The complete build log is located at '/var/tmp/portage/dev-libs/gmp-4.3.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/gmp-4.3.1/temp/environment'.
 * S: '/var/tmp/portage/dev-libs/gmp-4.3.1/work/gmp-4.3.1'

>>> Failed to emerge dev-libs/gmp-4.3.1, Log file:

>>>  '/var/tmp/portage/dev-libs/gmp-4.3.1/temp/build.log'

 * Messages for package dev-libs/gmp-4.3.1:

 * ERROR: dev-libs/gmp-4.3.1 failed:
 *   econf failed
 *
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 2999:  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"
 *
 * If you need support, post the output of 'emerge --info =dev-libs/gmp-4.3.1',
 * the complete build log and the output of 'emerge -pqv =dev-libs/gmp-4.3.1'.
 * The complete build log is located at '/var/tmp/portage/dev-libs/gmp-4.3.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/gmp-4.3.1/temp/environment'.
 * S: '/var/tmp/portage/dev-libs/gmp-4.3.1/work/gmp-4.3.1'


shadow ~ # gcc-config -l
 [1] x86_64-pc-linux-gnu-4.3.4 *
 [2] x86_64-pc-linux-gnu-4.3.4-hardenednopie
 [3] x86_64-pc-linux-gnu-4.3.4-vanilla

shadow ~ # gcc-config -c
x86_64-pc-linux-gnu-4.3.4

shadow ~ # gcc-config -E
export PATH="/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4"
export GCC_SPECS=""

shadow ~ # emerge --info =dev-libs/gmp-4.3.1
Portage 2.1.7.17 (hardened/linux/amd64/10.0/no-multilib, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r10 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.31-gentoo-r10-x86_64-AMD_Opteron-tm-_Processor_246-with-gentoo-1.12.13
Timestamp of tree: Mon, 08 Mar 2010 01:30:01 +0000
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.4-r1
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
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.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=opteron -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=opteron -O2 -pipe -fomit-frame-pointer"
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.osuosl.org/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://lug.mtu.edu/gentoo/ "
LANG="en_US.UTF-8"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="aac acc acl amd64 apache2 auth_digest authfile automount ban berkdb bzip2 calendar cgi clamav cle cli cmlwriter consolekit cracklib crypt ctype cups curl cxx dba dbus deflate dri enca encode exif expat external-ffmpeg ffmpeg ftp gd gdbm geoip gpm gzip hardened iconv imagemagick imlib jpeg json justify libww logrotate mad mmx mod modules motif mp2 mp3 mpeg4 mudflap mysql mysqli ncurses nls nptl nptlonly openmp opensslcrypt pam pcre pdflib pear perl perl-geoipupdate php pic png pppd python qt readline reflection samba sasl sdl session sessions simplexml snmp sockets socks5 spell spl sse sse2 ssl ssse3 svg sysfs syslog tcpd tokenizer unicode urandom vhost vhosts vorbis xml xml2 xmlreader xmlrpc xmms xsl xv xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


shadow ~ # cat /var/tmp/portage/dev-libs/gmp-4.3.1/temp/build.log
 * CPV:  dev-libs/gmp-4.3.1
 * REPO: gentoo
 * USE:  amd64 elibc_glibc kernel_linux userland_GNU
>>> Unpacking source...
>>> Unpacking gmp-4.3.1.tar.bz2 to /var/tmp/portage/dev-libs/gmp-4.3.1/work
 * Applying gmp-4.1.4-noexecstack.patch ...                               [ ok ]
 * Applying gmp-4.3.0-ABI-multilib.patch ...                              [ ok ]
 * Applying gmp-4.2.1-s390.diff ...                                       [ ok ]
 * Applying gmp-4.3.1-fix-broken-ansi-check.patch ...                     [ ok ]
 * Running elibtoolize in: gmp-4.3.1
 *   Applying install-sh-1.5.6.patch ...
 *   Applying portage-1.5.10.patch ...
 *   Applying sed-1.5.6.patch ...
 *   Applying as-needed-1.5.26.patch ...
>>> Source unpacked in /var/tmp/portage/dev-libs/gmp-4.3.1/work
>>> Compiling source in /var/tmp/portage/dev-libs/gmp-4.3.1/work/gmp-4.3.1 ...
 * econf: updating gmp-4.3.1/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating gmp-4.3.1/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --localstatedir=/var/state/gmp --disable-mpfr --disable-mpbsd --enable-cxx
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking GMPABI=64
checking compiler x86_64-pc-linux-gnu-gcc -march=opteron -O2 -pipe -fomit-frame-pointer ... no
configure: error: could not find a working compiler, see config.log for details

!!! 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 2999:  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"
 *
 * If you need support, post the output of 'emerge --info =dev-libs/gmp-4.3.1',
 * the complete build log and the output of 'emerge -pqv =dev-libs/gmp-4.3.1'.
 * The complete build log is located at '/var/tmp/portage/dev-libs/gmp-4.3.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/gmp-4.3.1/temp/environment'.
 * S: '/var/tmp/portage/dev-libs/gmp-4.3.1/work/gmp-4.3.1'
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-03-08 14:07:14 UTC
You can download a binary package of gmp from here,

http://tinderbox.x86.dev.gentoo.org/default-linux/amd64/dev-libs/gmp-4.3.1.tbz2
Comment 2 Sebastian Luther (few) 2010-03-08 14:13:25 UTC
Please use --depclean instead of -C next time. Closing as invalid, since it's not a gentoo bug. Feel free to ask if you need assistance with the binary package.
Comment 3 Wes 2010-03-08 14:50:16 UTC
(In reply to comment #1)
> You can download a binary package of gmp from here,
> 
> http://tinderbox.x86.dev.gentoo.org/default-linux/amd64/dev-libs/gmp-4.3.1.tbz2
> 

Thank you very much for the prompt response.  For my future reference, how did you find the binary?  I could only find the source.  Will I be required to remove these files that were extracted from the gmp-4.3.1.tbz2 file when i reemerge the gmp package?
Comment 4 Wes 2010-03-08 15:04:06 UTC
(In reply to comment #2)
> Please use --depclean instead of -C next time. Closing as invalid, since it's
> not a gentoo bug. Feel free to ask if you need assistance with the binary
> package.
> 

In the event that anybody runs into this same situation this is what I did to resolve it.

shadow ~ # cd /
shadow / # wget http://tinderbox.x86.dev.gentoo.org/default-linux/amd64/dev-libs/gmp-4.3.1.tbz2
shadow / # tar -xjf ./gmp-4.3.1.tbz2
shadow / # revdep-rebuild

Dependencies were repaired and my system was happy again.  Thank you both for your assistance.  The gentoo community really is as great as everybody says it is.

Comment 5 Sebastian Luther (few) 2010-03-08 17:40:53 UTC
http://tinderbox.x86.dev.gentoo.org is a gentoo server.

You weren't supposed to unpack the tbz2. Portage supports binary packages. Put the tbz2 into $PKGDIR/dev-libs (PKGDIR is /usr/portage/packages by default) and run "emerge -1k =gmp-4.3.1". You should still do this, since portage still thinks that gmp is not installed. After that, you're done.