GCC-4.1.1 compiles fine on my laptop as long as USE="-fortran" is used, but I require several programs that need Fortran. Thus, I need USE="fortran". Below is the result from `emerge --info` Portage 2.1-r2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.16-gentoo-r3 i686) ================================================================= System uname: 2.6.16-gentoo-r3 i686 Intel(R) Pentium(R) M processor 1600MHz Gentoo Base System version 1.12.4 app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.3.5, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" 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" PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/portage-xgl" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apache2 apm avi berkdb bitmap-fonts cli crypt cups dlloader dri eds emboss encode esd firefox foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 isdnlog jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre pdflib perl png pppd python quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev vorbis xml xmms xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 96484 [details] Log of the part that's failing
Created attachment 96485 [details] Entire compilation log
this is probably because mpfr is segfaulting run `FEATURES=test emerge mpfr gmp`
That didn't do it.
I'm encountering what is probably the same problem. I'm upgrading from gcc-3.4.6 to gcc-4.1.1 .oOo. checking for gnatbind... 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 MPFR... no configure: error: GMP with MPFR support is required to build fortran !!! ERROR: sys-devel/gcc-4.1.1-r1 failed. .oOo. Current 'emerge --info' emerge --info Portage 2.1.2_pre2-r5 (default-linux/x86/2006.1, gcc-3.4.6, glibc-2.4-r4, 2.6.17-gentoo-r7 i686) ================================================================= System uname: 2.6.17-gentoo-r7 i686 AMD Athlon(tm) XP 1900+ Gentoo Base System version 1.12.0_pre19 Last Sync: Fri, 06 Oct 2006 12:30:01 +0000 app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.2.11-r1 dev-lang/python: 2.3.5-r2, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks emerge gmp metadata-transfer mpfr sandbox sfperms strict test" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" 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" PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/nx" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow X a52 aac aalib acpi alsa apache2 arts audiofile berkdb bitmap-fonts browserplugin bzip2 bzlib cdr cli crypt cups curl dbus dga directfb divx4linux dlloader dri dv dvd dvdr dvdread elibc_glibc encode exif extra-filters fastcgi fbcon ffmpeg firefox flac flash fontconfig fortran ftp gd gdbm gif gnutls gpm gstreamer hal hava imagemagick inifile input_devices_keyboard input_devices_mouse insecure-savers ipv6 isdnlog java javascript jikes jpeg jpeg2k kde kdexdeltas kerberos kernel_linux lcms ldap libg++ lm_sensors mad maildir mailwrapper mbox mikmod milter mime ming mjpeg mmx mng mozcalendar mozilla moznocompose moznomail mozsvg mp3 mpeg mysql mysqli ncurses nls no-old-linux nptl nptl-only nptlonly nsplugin odbc offensive ogg oggvorbis opengl pam pcre pdf perl php png ppds pppd python qt3 qt4 quicktime readline reflection samba sasl sdl session sndfile speex spell spl sse ssl svg svga tcpd theora threads tidy tiff tokeniser truetype truetype-fonts type1-fonts udev unicode usb userland_GNU vhosts video_cards_nvidia video_cards_vesa vorbis vorbis-psy win32codecs wmf xcomposite xml xml2 xorg xpm xprint xscreensaver xvid zlib zope" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS .oOo. As per comment #3, I've added 'emerge mpfr test gmp' to FEATURES and am re-running my toolchain emerges. Will report back later.
(In reply to comment #3) > this is probably because mpfr is segfaulting > > run `FEATURES=test emerge mpfr gmp` > In hindsight, what is meant above is obvious. However, for a non programmer following instructions, it's not clear. It is meant to read: # FEATURES="test" emerge mpfr gmp gcc Now for some additional info: For me, I was upgrading from gcc-3.4.6 to gcc-4.1.1-r1. Realizing that this was a toolchain upgrade, I started following the instructions here: http://forums.gentoo.org/viewtopic-t-282474.html I was not able to fully test this, but apparently 'emerge -e system' doesn't pick up required dependencies w/regards to gcc. Based on comment #3, I did: # emerge -pv gcc It displayed needing both and updated version of 'gmp' and that 'mpfr' needed to be installed. The 'emwrap.sh' script depends on the output of 'emerge -e system'. Yet neither of these two packages were picked up. I was not able to verify this as I don't have the time nor resources to do so.