after i recompiled gcc today, because i need the gcj every package shows during emerge something like this, taken from libtool in this case: ========================================================================= appending configuration tag "F77" to libtool checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for i686-pc-linux-gnu-g77 option to produce PIC... -fPIC checking if i686-pc-linux-gnu-g77 PIC flag -fPIC works... no checking if i686-pc-linux-gnu-g77 static flag -static works... no checking if i686-pc-linux-gnu-g77 supports -c -o file.o... no checking whether the i686-pc-linux-gnu-g77 linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... gcc-config error: i686-pc-linux-gnu-g77 wrapper: Unable to determine executable. CTARGET=i686-pc-linux-gnu exec=g77 GNU/Linux ld.so checking how to hardcode library paths into programs... immediate ========================================================================= trying to call from cmd: ========================================================================= bigmichi1 portage # i686-pc-linux-gnu-g77 gcc-config error: i686-pc-linux-gnu-g77 wrapper: Unable to determine executable. CTARGET=i686-pc-linux-gnu exec=g77 bigmichi1 portage # ========================================================================= i also tried this: ========================================================================= bigmichi1 ~ # eselect compiler list Available compilers for CTARGET i686-pc-linux-gnu [1] i686-pc-linux-gnu-4.1.1/vanilla Activated profiles: i686-pc-linux-gnu * i686-pc-linux-gnu-4.1.1/vanilla bigmichi1 ~ # eselect compiler set 1 >>> Regenerating /etc/ld.so.cache... Successfully set compiler for i686-pc-linux-gnu to i686-pc-linux-gnu-4.1.1/vanilla. ========================================================================= but these messages are still here Portage 2.1 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.16-gentoo-r9-2006.0 i686) ================================================================= System uname: 2.6.16-gentoo-r9-2006.0 i686 Pentium III (Coppermine) Gentoo Base System version 1.12.1 dev-lang/python: 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.18.1 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-r2 sys-devel/gcc-config: [Not Present] sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.16 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium3 -fforce-addr -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=pentium3 -fforce-addr -fomit-frame-pointer -pipe" DISTDIR="/usr/local/portage/distfiles" FEATURES="autoconfig collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict test userpriv usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="C" LC_ALL="C" LDFLAGS="-Wl,-O1 -Wl,--sort-common" LINGUAS="en" MAKEOPTS="-j3" 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/vmware" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 7zip X acl alsa apache2 apm authfile avi berkdb bitmap-fonts bzip2 cairo caps cjk cli crypt ctype cups curl curlwrappers dri eds emboss encode esd expat fontconfig foomaticdb fortran ftp gcj gd gdbm gif glibc-omitfp glitz gmp gpm gstreamer gtk gtk2 hash iconv imap imlib inifile ipv6 isdnlog java jpeg ldap libg++ libwww mad memlimit mikmod mmx motif mp3 mpeg mpm-prefork mysql mysqli ncurses nfs nls no-old-linux nonfsv4 nptl nptlonly ogg opengl oss pam pcre pdflib pear perl php png ppds pppd python qt quicktime readline reflection rewrite samba sasl sdl sendfile session shaper simplexml sitemisc soap sockets softquota spell spl sse ssl symlink tcltk tcpd test tiff tools truetype truetype-fonts type1-fonts udev unicode unzip vda vorbis xinetd xml xml2 xmlrpc xmms xorg xpm xsl xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_en userland_GNU video_cards_r128" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Please delete /usr/bin/i686-pc-linux-gnu-g77. gcc4 uses gfortran
Yes, but some apps use g77 explicitly (like lapack-3.0). What to do?
Encountered this bug when trying to emerge fftw on a fresh amd64 install with gcc-4.1.1 being the primary compiler. It apparently relies on explicitely calling g77. On the other hand, I also have an i686 laptop on which I use gcc-4.1.1 too and if I try using g77, the wrapper automagically call gfortran, which is not the case on my amd64 box. The latter gives me gcc-config error: g77 wrapper: Unable to determine executable. CTARGET=x86_64-pc-linux-gnu exec=g77 Would it be a bug in the eselect-compiler package, not installing wrappers correctly on every platform? PS. It it helps, both of my machines are ~arch
I can confirm this bug on a previously working ~x86 athlon-xp machine. This bug depends on the AC_PROG_F77 macro finding /usr/bin/g77 before /usr/bin/gfortran. This should not be a problem if g77 was correctly configured, but there obviously is an error. A workaround is to override the macro by doing echo 'export F77=/usr/bin/gfortran' >> /etc/portage/bashrc
The problem is that g77 used to be an alias to gfortran in the configs, but that was in error and was removed. Removing the alias still left the dangling wrapper. If you remove the wrapper or switch to 3.4 then back to 4.x (which removes the wrapper), you sould be fine.
*** Bug 137180 has been marked as a duplicate of this bug. ***
*** Bug 137171 has been marked as a duplicate of this bug. ***
*** Bug 137880 has been marked as a duplicate of this bug. ***
bug #135688 can also cause the /usr/bin/{g77,gfortran} wrapper to remain when it shouldn't, so could be causing this effect.
*** This bug has been marked as a duplicate of 135688 ***
*** Bug 138956 has been marked as a duplicate of this bug. ***
*** Bug 140058 has been marked as a duplicate of this bug. ***
*** Bug 140127 has been marked as a duplicate of this bug. ***
*** Bug 140220 has been marked as a duplicate of this bug. ***
*** Bug 140480 has been marked as a duplicate of this bug. ***
Recently while emerging updated fftw-3.1.2 I also received the error: gcc-config error: g77 wrapper: Unable to determine executable. CTARGET=x86_64-pc-linux-gnu exec=g77 This happened on both ~x86 and ~amd64 testing systems with gcc-4.1.1. Yesterday I've found an easy, working solution, faster than switching compilers (which obviously takes a long time): # emerge -av =gcc-config-1* # emerge -av =gcc-config-2* The above solution worked great for fftw - it started to use gfortran instead of g77, so it compiled/installed fine without any other problems.
*** Bug 142144 has been marked as a duplicate of this bug. ***
*** Bug 142928 has been marked as a duplicate of this bug. ***
*** Bug 143382 has been marked as a duplicate of this bug. ***
*** Bug 149206 has been marked as a duplicate of this bug. ***
*** Bug 158401 has been marked as a duplicate of this bug. ***
*** Bug 159050 has been marked as a duplicate of this bug. ***
*** Bug 167949 has been marked as a duplicate of this bug. ***
i'm using gcc 4.1.2 only here, on ~amd64. i removed /usr/bin/i686-pc-linux-gnu-g77 as suggested in previous comment. if i do : farfalla bin # /usr/bin/gfortran gcc-config error: /usr/bin/gfortran wrapper: Could not determine which compiler to use. Invalid CTARGET or CTARGET has no selected profile. and fftw will never compile. I dont know what to do.
(In reply to comment #25) > i'm using gcc 4.1.2 only here, on ~amd64. i removed > /usr/bin/i686-pc-linux-gnu-g77 as suggested in previous comment. > if i do : > farfalla bin # /usr/bin/gfortran > gcc-config error: /usr/bin/gfortran wrapper: Could not determine which compiler > to use. Invalid CTARGET or CTARGET has no selected profile. > > and fftw will never compile. I dont know what to do. > Same here and I noticed the message during the configure of other builds such as libXrandr (although it does seem to build okay). But shouldn't all this go in a bug about gcc-config, such as #157694 or rather one with a higher severity than "normal"? It's certainly not an eselect-compiler bug anyway.
*** Bug 168430 has been marked as a duplicate of this bug. ***
(In reply to comment #25) > gcc-config error: /usr/bin/gfortran wrapper: Could not determine which compiler > to use. Invalid CTARGET or CTARGET has no selected profile. > > and fftw will never compile. I dont know what to do. > See Bug 158401, Comment #4. fftw doesn't need fortran at all.
*** Bug 170559 has been marked as a duplicate of this bug. ***
*** Bug 170999 has been marked as a duplicate of this bug. ***