Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136363 - i686-pc-linux-gnu-g77 wrapper: Unable to determine executable
Summary: i686-pc-linux-gnu-g77 wrapper: Unable to determine executable
Status: RESOLVED DUPLICATE of bug 135688
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
: 137171 137180 137880 138956 140058 140127 140220 140480 142144 142928 143382 149206 158401 159050 167949 168430 170559 170999 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-11 01:03 UTC by Michael Cramer
Modified: 2007-03-21 15:19 UTC (History)
21 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 Michael Cramer 2006-06-11 01:03:32 UTC
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
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2006-06-11 16:45:08 UTC
Please delete /usr/bin/i686-pc-linux-gnu-g77.  gcc4 uses gfortran
Comment 2 Renato Caldas 2006-06-15 17:43:04 UTC
Yes, but some apps use g77 explicitly (like lapack-3.0).

What to do?
Comment 3 Guillaume Ceccarelli 2006-06-18 06:21:22 UTC
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
Comment 4 Johan Bondeson 2006-06-21 06:54:49 UTC
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
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2006-06-21 11:36:24 UTC
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.
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2006-06-21 12:52:32 UTC
*** Bug 137180 has been marked as a duplicate of this bug. ***
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2006-06-21 12:52:48 UTC
*** Bug 137171 has been marked as a duplicate of this bug. ***
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-06-24 14:55:39 UTC
*** Bug 137880 has been marked as a duplicate of this bug. ***
Comment 9 Kevin F. Quinn (RETIRED) gentoo-dev 2006-06-24 16:14:16 UTC
bug #135688 can also cause the /usr/bin/{g77,gfortran} wrapper to remain when it shouldn't, so could be causing this effect.
Comment 10 Jeremy Huddleston (RETIRED) gentoo-dev 2006-06-24 22:41:00 UTC

*** This bug has been marked as a duplicate of 135688 ***
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2006-07-02 23:28:48 UTC
*** Bug 138956 has been marked as a duplicate of this bug. ***
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2006-07-12 00:48:06 UTC
*** Bug 140058 has been marked as a duplicate of this bug. ***
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2006-07-12 08:57:45 UTC
*** Bug 140127 has been marked as a duplicate of this bug. ***
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2006-07-13 05:51:21 UTC
*** Bug 140220 has been marked as a duplicate of this bug. ***
Comment 15 Jakub Moc (RETIRED) gentoo-dev 2006-07-15 06:09:22 UTC
*** Bug 140480 has been marked as a duplicate of this bug. ***
Comment 16 Wiktor Wandachowicz 2006-07-28 04:23:45 UTC
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.
Comment 17 Jakub Moc (RETIRED) gentoo-dev 2006-07-30 03:46:30 UTC
*** Bug 142144 has been marked as a duplicate of this bug. ***
Comment 18 Jakub Moc (RETIRED) gentoo-dev 2006-08-05 15:51:47 UTC
*** Bug 142928 has been marked as a duplicate of this bug. ***
Comment 19 Jakub Moc (RETIRED) gentoo-dev 2006-08-09 13:09:08 UTC
*** Bug 143382 has been marked as a duplicate of this bug. ***
Comment 20 Jakub Moc (RETIRED) gentoo-dev 2006-09-26 13:03:47 UTC
*** Bug 149206 has been marked as a duplicate of this bug. ***
Comment 21 Jakub Moc (RETIRED) gentoo-dev 2006-12-19 02:33:30 UTC
*** Bug 158401 has been marked as a duplicate of this bug. ***
Comment 22 Jakub Moc (RETIRED) gentoo-dev 2006-12-25 01:23:27 UTC
*** Bug 159050 has been marked as a duplicate of this bug. ***
Comment 23 Jakub Moc (RETIRED) gentoo-dev 2006-12-25 01:39:09 UTC
*** Bug 159050 has been marked as a duplicate of this bug. ***
Comment 24 Jakub Moc (RETIRED) gentoo-dev 2007-02-22 08:25:06 UTC
*** Bug 167949 has been marked as a duplicate of this bug. ***
Comment 25 Thomas Capricelli 2007-02-24 01:26:57 UTC
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.
Comment 26 PL Hayes 2007-02-24 08:46:33 UTC
(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.
Comment 27 Jakub Moc (RETIRED) gentoo-dev 2007-02-26 09:14:55 UTC
*** Bug 168430 has been marked as a duplicate of this bug. ***
Comment 28 Jakub Moc (RETIRED) gentoo-dev 2007-02-26 09:16:52 UTC
(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.
Comment 29 Jakub Moc (RETIRED) gentoo-dev 2007-03-12 12:59:02 UTC
*** Bug 170559 has been marked as a duplicate of this bug. ***
Comment 30 Jakub Moc (RETIRED) gentoo-dev 2007-03-15 08:01:21 UTC
*** Bug 170999 has been marked as a duplicate of this bug. ***