Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 330831 - sys-devel/gcc-4.4.4-r1 GMP MPFR failure
Summary: sys-devel/gcc-4.4.4-r1 GMP MPFR failure
Status: RESOLVED DUPLICATE of bug 320487
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-02 12:01 UTC by Eric Meddaugh
Modified: 2010-08-03 12:14 UTC (History)
0 users

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


Attachments
build log (build.log,15.62 KB, text/plain)
2010-08-02 12:02 UTC, Eric Meddaugh
Details
configure log (config.log,23.73 KB, text/plain)
2010-08-02 12:03 UTC, Eric Meddaugh
Details
Testing version of MPFR (conftest.c,627 bytes, text/plain)
2010-08-02 12:04 UTC, Eric Meddaugh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Meddaugh 2010-08-02 12:01:38 UTC
checking for i686-pc-linux-gnu-gnatbind... no
checking for gnatbind... no
checking for i686-pc-linux-gnu-gnatmake... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... yes
checking for correct version of mpfr.h... no
configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.2+.
Try the --with-gmp and/or --with-mpfr options to specify their locations.
Copies of these libraries' source code can be found at their respective
hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
See also http://gcc.gnu.org/install/prerequisites.html for additional info.
If you obtained GMP and/or MPFR from a vendor distribution package, make
sure that you have installed both the libraries and the header files.
They may be located in separate packages.
 * ERROR: sys-devel/gcc-4.4.4-r1 failed:
 *   failed to run configure
 * 
 * Call stack:
 *     ebuild.sh, line   53:  Called call-ebuildshell 'src_compile'
 *   environment, line  747:  Called src_compile
 *   environment, line 5088:  Called gcc_src_compile
 *   environment, line 3225:  Called gcc_do_configure
 *   environment, line 2924:  Called die
 * The specific snippet of code:
 *       "${S}"/configure "$@" || die "failed to run configure";
 * 
 * If you need support, post the output of 'emerge --info =sys-devel/gcc-4.4.4-r1',
 * the complete build log and the output of 'emerge -pqv =sys-devel/gcc-4.4.4-r1'.
 * The complete build log is located at '/sys_tools/var/tmp/portage/sys-devel/gcc-4.4.4-r1/temp/build.log'.
 * The ebuild environment file is located at '/sys_tools/var/tmp/portage/sys-devel/gcc-4.4.4-r1/temp/environment'.
 * S: '/sys_tools/var/tmp/portage/sys-devel/gcc-4.4.4-r1/work/gcc-4.4.4'

>>> Failed to emerge sys-devel/gcc-4.4.4-r1, Log file:

>>>  '/sys_tools/var/tmp/portage/sys-devel/gcc-4.4.4-r1/temp/build.log'
Comment 1 Eric Meddaugh 2010-08-02 12:02:07 UTC
Fails on 32-bit and 64-bit linux.

# emerge --info

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

Password for etmsys@RIT.EDU: 
Portage 2.2.01.15417-prefix (prefix/linux/x86, gcc-4.4.3, unavailable, 2.6.18-194.3.1.el5 i686)
=================================================================
System uname: Linux-2.6.18-194.3.1.el5-i686-Intel-R-_Xeon-R-_CPU_E5530_@_2.40GHz-with-redhat-5.5-Final
Timestamp of tree: Mon, 02 Aug 2010 11:12:04 +0000
app-shells/bash:     4.1_p5
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2
dev-util/cmake:      2.8.1-r2
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.51.0.8
sys-devel/gcc:       4.2.4-r01.2, 4.4.3-r2
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:   2.2.10
virtual/os-headers:  2.6.33 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="~x86-linux"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -fgnu89-inline"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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/terminfo"
CPPFLAGS="-I/sys_tools/usr/include"
CXXFLAGS="-O2 -pipe -fgnu89-inline"
DISTDIR="/sys_tools/usr/portage/distfiles"
FEATURES="assume-digests collision-protect distlocks fixpackages lafilefixing news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-L/sys_tools/usr/lib -R/sys_tools/usr/lib -L/sys_tools/lib -R/sys_tools/lib"
PKGDIR="/sys_tools/usr/portage/packages"
PORTAGE_CONFIGROOT="/sys_tools/"
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="/sys_tools/var/tmp"
PORTDIR="/sys_tools/usr/portage"
PORTDIR_OVERLAY="/sys_tools/usr/local/portage"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 kerberos modules mudflap ncurses nptl nptlonly openmp pcre perl pppd prefix python readline reflection session spl ssl sysfs tcpd unicode x86 xorg zlib" 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" 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 proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http auth_digest" 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" 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:  CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Eric Meddaugh 2010-08-02 12:02:20 UTC
Created attachment 241053 [details]
build log
Comment 3 Eric Meddaugh 2010-08-02 12:03:20 UTC
Created attachment 241055 [details]
configure log
Comment 4 Eric Meddaugh 2010-08-02 12:04:27 UTC
Created attachment 241057 [details]
Testing version of MPFR

The output of this shows:

131585 < 131840

Which indicates that it is failing to find the correct version of MPFR.
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-08-02 15:34:56 UTC
Is this during bootstrapping?
Comment 6 Eric Meddaugh 2010-08-02 16:38:18 UTC
No, this is an upgrade to gcc, gcc 4.1.2 is installed.  I'm not even sure it it will reemerge the current version without getting the same error.


# gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)
Comment 7 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-08-02 17:45:17 UTC
I wouldn't expect the host gcc to work well if you aren't bootstrapping. Why aren't you using a gcc from the prefix env?
Comment 8 Eric Meddaugh 2010-08-02 17:48:28 UTC
I copied the WRONG gcc output....it is using the prefix gcc:

# gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /sys_tools/var/tmp/portage/sys-devel/gcc-4.4.3-r2/work/gcc-4.4.3/configure --prefix=/sys_tools/usr --bindir=/sys_tools/usr/i686-pc-linux-gnu/gcc-bin/4.4.3 --includedir=/sys_tools/usr/lib/gcc/i686-pc-linux-gnu/4.4.3/include --datadir=/sys_tools/usr/share/gcc-data/i686-pc-linux-gnu/4.4.3 --mandir=/sys_tools/usr/share/gcc-data/i686-pc-linux-gnu/4.4.3/man --infodir=/sys_tools/usr/share/gcc-data/i686-pc-linux-gnu/4.4.3/info --with-gxx-include-dir=/sys_tools/usr/lib/gcc/i686-pc-linux-gnu/4.4.3/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --disable-fixed-point --without-ppl --without-cloog --disable-nls --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --enable-cld --with-python-dir=/share/gcc-data/i686-pc-linux-gnu/4.4.3/python --disable-libgcj --with-arch=i686 --enable-languages=c,c++ --enable-shared --enable-threads=posix --with-local-prefix=/usr --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.4.3-r2 p1.2' --enable-multilib
Thread model: posix
gcc version 4.4.3 (Gentoo 4.4.3-r2 p1.2) 
Comment 9 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-08-02 18:12:09 UTC
Ok, I think you have a broken compiler because of the mess in bug 320487, comment #12
Comment 10 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-08-02 18:14:19 UTC
(In reply to comment #9)
> Ok, I think you have a broken compiler because of the mess in bug 320487,
> comment #12
> 

You can find the search path of the compiler via "gcc -v hello.c" and you will see something like:

#include "..." search starts here:
#include <...> search starts here:
 /home/jolexa/portage/linux-64/usr/include
 /home/jolexa/portage/linux-64/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/include
 /home/jolexa/portage/linux-64/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/include-fixed
 /usr/include
End of search list.

but in your case, /usr/include might be first? Please report back on that case.
Comment 11 Eric Meddaugh 2010-08-02 18:25:02 UTC
# gcc -v conftest.c
.....
ignoring nonexistent directory "/sys_tools/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/include"
ignoring duplicate directory "/usr/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/include
 /sys_tools/usr/include
 /sys_tools/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/include
 /sys_tools/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/include-fixed
End of search list.


Yeah...it looks like the same issue.  I'll try to switch back to 4.2.4 and compile 4.4.4.
Comment 12 Eric Meddaugh 2010-08-03 12:07:48 UTC
I got 4.4.4 compile now, and the gcc -v is much better:

ignoring nonexistent directory "/sys_tools/usr/lib/gcc/i686-pc-linux-gnu/4.4.4/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /sys_tools/usr/include
 /sys_tools/usr/lib/gcc/i686-pc-linux-gnu/4.4.4/include
 /sys_tools/usr/lib/gcc/i686-pc-linux-gnu/4.4.4/include-fixed
 /usr/include
End of search list.

Thanks.

Looks like a duplicate of bug 320487
Comment 13 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-08-03 12:14:48 UTC
aye, sorry for the trouble.

*** This bug has been marked as a duplicate of bug 320487 ***