Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ERROR: dev-libs/gmp-5.1.3-r1::gentoo failed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
ismell
n00b
n00b


Joined: 31 Jan 2007
Posts: 8
Location: Colorado

PostPosted: Fri May 22, 2015 1:21 pm    Post subject: ERROR: dev-libs/gmp-5.1.3-r1::gentoo failed Reply with quote

Hi,
I'm trying to `emerge system` but I'm getting blocked on gmp. If anyone could point me in the right direction I would appreciate it.

This is the error that stands out: configure.wrapped: error: could not find a working compiler, see config.log for details


Here is the build output:

# emerge -pqv '=dev-libs/gmp-5.1.3-r1::gentoo'
[ebuild U ] dev-libs/gmp-5.1.3-r1 [4.3.2] USE="cxx%* -doc% -pgo% -static-libs% (-nocxx%)"

# emerge --info '=dev-libs/gmp-5.1.3-r1::gentoo'
Portage 2.2.7 (hardened/linux/x86, gcc-4.4.5, glibc-2.12.2, 2.6.30-gentoo-r5 x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-2.6.30-gentoo-r5-x86_64-AMD_Opteron-tm-_Processor_242-with-gentoo-2.0.3
KiB Mem: 1024176 total, 152320 free
KiB Swap: 979956 total, 973500 free
Timestamp of tree: Sat, 16 May 2015 22:30:01 +0000
ld GNU ld (GNU Binutils) 2.21.1
app-shells/bash: 4.2_p45
dev-lang/perl: 5.12.3-r1
dev-lang/python: 2.6.2-r1, 2.7.1-r1, 3.1.3-r1
dev-util/pkgconfig: 0.25-r2
sys-apps/baselayout: 2.0.3
sys-apps/openrc: 0.8.2-r1
sys-apps/sandbox: 2.6-r1
sys-devel/autoconf: 2.13::<unknown repository>, 2.65-r1
sys-devel/automake: 1.4_p6::<unknown repository>, 1.5::<unknown repository>, 1.6.3::<unknown repository>, 1.7.9-r1::<unknown repository>, 1.8.5-r3::<unknown repository>, 1.9.5::<unknown repository>, 1.10.2::<unknown repository>, 1.11.1
sys-devel/binutils: 2.21.1-r1
sys-devel/gcc: 3.4.6-r2, 4.4.5, 4.5.3-r1
sys-devel/gcc-config: 1.7.3
sys-devel/libtool: 2.2.10
sys-devel/make: 3.82-r1
sys-kernel/linux-headers: 3.18 (virtual/os-headers)
sys-libs/glibc: 2.12.2
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=opteron -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=opteron -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-march=i686 -O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=i686 -O2 -pipe"
GENTOO_MIRRORS="http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://gentoo.mirrors.pair.com/ http://gentoo.chem.wisc.edu/gentoo/ "
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="acl bash-completion berkdb bzip2 cli cracklib crypt cxx dri gdbm hardened iconv ipv6 modules ncurses nls nptl openmp pam pax_kernel pcre pic readline session ssl tcpd unicode urandom x86 xattr xtpax zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 intel mach64 mga nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa via vmware nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON


>>> Emerging (1 of 1) dev-libs/gmp-5.1.3-r1
* gmp-5.1.3.tar.xz SHA256 SHA512 size ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking gmp-5.1.3.tar.xz to /var/tmp/portage/dev-libs/gmp-5.1.3-r1/work
>>> Source unpacked in /var/tmp/portage/dev-libs/gmp-5.1.3-r1/work
>>> Preparing source in /var/tmp/portage/dev-libs/gmp-5.1.3-r1/work/gmp-5.1.3 ...
* Applying gmp-4.1.4-noexecstack.patch ... [ ok ]
* Running elibtoolize in: gmp-5.1.3/
* Applying install-sh/1.5.6 patch ...
* Applying portage/1.2.0 patch ...
* Applying sed/1.5.6 patch ...
* Applying as-needed/2.4.2 patch ...
* Applying target-nm/2.4.2 patch ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-libs/gmp-5.1.3-r1/work/gmp-5.1.3 ...
* abi_x86_32.x86: running multilib-minimal_abi_src_configure
* econf: updating gmp-5.1.3/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating gmp-5.1.3/config.sub with /usr/share/gnuconfig/config.sub
/var/tmp/portage/dev-libs/gmp-5.1.3-r1/work/gmp-5.1.3/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/lib --localstatedir=/var/state/gmp --enable-shared --enable-cxx --disable-static
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/lib/portage/bin/ebuild-helpers/xattr/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=32
checking whether x86_64-pc-linux-gnu-gcc is gcc... yes
checking compiler x86_64-pc-linux-gnu-gcc -march=opteron -O2 -pipe ... yes
checking compiler x86_64-pc-linux-gnu-gcc -march=opteron -O2 -pipe has sizeof(long)==4... no
configure.wrapped: 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-5.1.3-r1/work/gmp-5.1.3-abi_x86_32.x86/config.log
* ERROR: dev-libs/gmp-5.1.3-r1::gentoo failed (configure phase):
* econf failed
*
* Call stack:
* ebuild.sh, line 93: Called src_configure
* environment, line 3081: Called multilib-minimal_src_configure
* environment, line 2242: Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
* environment, line 2449: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
* environment, line 2173: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
* environment, line 2171: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
* environment, line 411: Called multilib-minimal_abi_src_configure
* environment, line 2236: Called multilib_src_configure
* environment, line 2694: Called econf '--localstatedir=/var/state/gmp' '--enable-shared' '--enable-cxx' '--disable-static'
* phase-helpers.sh, line 577: Called die
* The specific snippet of code:
* die "econf failed"
*
* If you need support, post the output of `emerge --info '=dev-libs/gmp-5.1.3-r1::gentoo'`,
* the complete build log and the output of `emerge -pqv '=dev-libs/gmp-5.1.3-r1::gentoo'`.
* The complete build log is located at '/var/tmp/portage/dev-libs/gmp-5.1.3-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-libs/gmp-5.1.3-r1/temp/environment'.
* Working directory: '/var/tmp/portage/dev-libs/gmp-5.1.3-r1/work/gmp-5.1.3-abi_x86_32.x86'
* S: '/var/tmp/portage/dev-libs/gmp-5.1.3-r1/work/gmp-5.1.3'

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

>>> '/var/tmp/portage/dev-libs/gmp-5.1.3-r1/temp/build.log'
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Fri May 22, 2015 1:56 pm    Post subject: Reply with quote

If your system could not find a working compiler, try

Code:

gcc-config -l


That is a lowercase L, not the number one.

If you have only one result and there is no asterisk next to it, do

Code:

gcc-config set 1


That is the number one, not a lowercase L.

If you have more than one result, select one (you probably want the latest version) and run the above command, substituting 1 with the number of the version you want.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Fri May 22, 2015 2:31 pm    Post subject: Reply with quote

Hmm ABI=32 stands out for me; doesn't match x86_64 compiler.

Only thing I can see is your fortran flags are set for 686.
You need to add:
Code:
FFLAGS="$CFLAGS"
FCFLAGS="$FFLAGS"
after CXXFLAGS="$CFLAGS" in /etc/portage/make.conf

edit: hmm that's in the abi_x86_32 multilib phase, so it should have -m32 in there.
In any case the test (sizeof long == 4) should pass for that ABI.

I'd file a bug, though you should sort out your Fortran flags first.
Back to top
View user's profile Send private message
ismell
n00b
n00b


Joined: 31 Jan 2007
Posts: 8
Location: Colorado

PostPosted: Sun May 24, 2015 12:21 am    Post subject: Reply with quote

So apparently my profile got swapped to a x86 profile instead of amd64. I have no idea how that happened. `eselect profile list` also only showed x86 profiles. I manually forced it to amd64/hardened and now it's compiling just fine. Thanks for the help.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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