Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 169741 - sci-libs/pgplot-5.2.2-r1 requires g77
Summary: sci-libs/pgplot-5.2.2-r1 requires g77
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2007-03-07 12:01 UTC by Martin Mokrejš
Modified: 2007-04-27 11:23 UTC (History)
1 user (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 Martin Mokrejš 2007-03-07 12:01:34 UTC
It is unclear to me why the is no /usr/bin/fortrand or /usr/bin/g77 symlinked to /usr/bin/g77-$blah. It breaks at leats two packages. The first is bug #146448, second is here:

 * checking ebuild checksums ;-) ...                                                                                                                                                                                            [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                                           [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                                          [ ok ]
 * checking pgplot522.tar.gz ;-) ...                                                                                                                                                                                            [ ok ]
 * None of the needed Fortran Compilers (g77) is installed.
 * To install one of these, choose one of the following steps:
 * [1] USE="fortran" emerge =sys-devel/gcc-3*

!!! ERROR: sci-libs/pgplot-5.2.2-r1 failed.
Call stack:
  ebuild.sh, line 1630:   Called dyn_setup
  ebuild.sh, line 702:   Called qa_call 'pkg_setup'
  ebuild.sh, line 38:   Called pkg_setup
  ebuild.sh, line 1304:   Called fortran_pkg_setup
  fortran.eclass, line 181:   Called need_fortran 'g77'
  fortran.eclass, line 109:   Called die

!!! Install a Fortran Compiler !
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sci-libs/pgplot-5.2.2-r1/temp/build.log'.


# equery belongs g77-3.3.6
[ Searching for file(s) g77-3.3.6 in *... ]
sys-devel/gcc-3.3.6-r1 (/usr/bin/g77-3.3.6 -> /usr/i686-pc-linux-gnu/gcc-bin/3.3.6/i686-pc-linux-gnu-g77)
# equery belongs g77-3.4.6  
[ Searching for file(s) g77-3.4.6 in *... ]
sys-devel/gcc-3.4.6-r2 (/usr/bin/g77-3.4.6 -> /usr/i686-pc-linux-gnu/gcc-bin/3.4.6/i686-pc-linux-gnu-g77)
# equery belongs gfortran
[ Searching for file(s) gfortran in *... ]
sys-devel/gcc-4.1.2 (/usr/i686-pc-linux-gnu/gcc-bin/4.1.2/gfortran -> i686-pc-linux-gnu-gfortran)
#

I would expect gcc-config takes care of this.

# emerge --info
Portage 2.1.2.1-r1 (default-linux/x86/2006.0, gcc-4.1.2, glibc-2.5-r0, 2.6.20.1 i686)
=================================================================
System uname: 2.6.20.1 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 07 Mar 2007 09:00:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r4
dev-lang/python:     2.3.6, 2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.15
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /usr/spool/PBS /var/bind /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe"
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"
LINGUAS="en cs cz"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="FFmpeg X Xaw3d a52 aac aalib acpi alsa amr apache2 apm asf ati avi berkdb bitmap-fonts bonobo caca cairo cdparanoia cdr cli cpudetection cracklib crypt cscope ctype cups curl dba dga directfb divx divx5 divx5linux dri dts dv dvb dvd dvdr dvdread eds emacs emacs-w3 emboss emf encode ethereal evo f77 faad faad2 fam fame fbcon ffmpeg flac flash foomaticdb fortran fvwm fvwm2 gb gcj gd gdbm ggi gif gphoto2 gpm gstreamer gtk gtk2 gtkhtml highvolume i8x0 icc iconv ieee1394 ifc imagemagick imlib imlib2 inifile innodb isdnlog ithreads java jpeg kerberos lcms leim libcaca libedit libg++ libwww live lzo mad matroska mcal mesa mhash midi mikmod ming mmx mmx2 mmxext mng modplug motif mozilla mp3 mpeg mule musepack mysql ncurses network nls nptl nptlonly ogg oggvorbis opengl oss pam pcre pda pdf pdflib perl plotutils plugin png poppler ppds pppd pthread pthreads python qt qt3 qt4 qtx quicktime readline reflection rtc samba scanner scp server session slp spell spl sse sse2 ssl stroke svg tcl tcltk tcpd tetex theora thread threads tiff tk truetype truetype-fonts type1-fonts unicode usb userlocales v4l v4l2 vcd vorbis win32codecs winvidix wmf x264 x86 xanim xml xml2 xorg xosd xprint xv xvid xvmc zeo 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en cs cz" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-03-07 12:13:23 UTC
Because gcc-4* doesn't have any g77, it has gfortran, as you have noticed.

> * [1] USE="fortran" emerge =sys-devel/gcc-3*

Not a gcc-config bug.
Comment 2 Martin Mokrejš 2007-03-07 12:16:35 UTC
Yes, as you can see I do have "fortran" in my USE flags, but still things don't work "out of the box". ;)
Comment 3 Sébastien Fabbro (RETIRED) gentoo-dev 2007-03-07 12:34:23 UTC
Hi,

It is not a pgplot bug.

>  * None of the needed Fortran Compilers (g77) is installed.
>  * To install one of these, choose one of the following steps:
>  * [1] USE="fortran" emerge =sys-devel/gcc-3*

pgplot can not be built with gfortran from gcc-4.1* (it might with >=gcc-4.2).
It needs g77 from gcc-3*, as mentioned. 
gcc-config does not allow you to use both gfortran and g77 AFAIK. It might be a good idea. The only thing is to make a symlink of g77-* to g77 and update some PATH variables.

Sébastien
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-03-07 14:04:43 UTC
(In reply to comment #3)
> It needs g77 from gcc-3*, as mentioned. 
> gcc-config does not allow you to use both gfortran and g77 AFAIK. It might be a
> good idea. The only thing is to make a symlink of g77-* to g77 and update some
> PATH variables.

Erm... If something requires gcc-3* (pretty much broken already at this point), then it should require user to have gcc-3 set via gcc-config. I.e., fix the ebuild or the eclass or both, instead of creating messy symlinks to different gcc versions in /usr/bin which only calls for lots of trouble.

<snip>
inherit toolchain-funcs

pkg_setup() {
        if [ "$(gcc-major-version)" == "4" ]; then
                die "You must build this with gcc-3*"
        fi
}
</snip>
Comment 5 Sébastien Fabbro (RETIRED) gentoo-dev 2007-03-08 00:53:15 UTC
(In reply to comment #4)
> Erm... If something requires gcc-3* (pretty much broken already at this point),
> then it should require user to have gcc-3 set via gcc-config. I.e., fix the
> ebuild or the eclass or both, instead of creating messy symlinks to different
> gcc versions in /usr/bin which only calls for lots of trouble.

This is actually already handled by the fortran eclass, and emerging pgplot with gfortran dies properly.

gfortran does not support yet all fortran 77 features g77 has. gcc-config could let g77 and gfortran coexist on a system. This could help a few other scientific packages and fortran 77 users.
Comment 6 Sébastien Fabbro (RETIRED) gentoo-dev 2007-03-14 17:07:04 UTC
Actually I commited an update on pgplot ebuild. It is now possible to compile it with gfortran, but some drivers won't be available. These are the gif, wd and pp drivers. They are not absolutely necessary given the amount of other available drivers, and saves the hassle to install g77.
Full functionality is only possible with g77 right now.
Comment 7 Martin Mokrejš 2007-04-25 17:59:51 UTC
>>> Emerging (1 of 1) sci-libs/pgplot-5.2.2-r2 to /
...
>>> Unpacking pgplot522.tar.gz to /var/tmp/portage/sci-libs/pgplot-5.2.2-r2/work
 * Applying patches for selected FORTRAN compiler: gfortran
 * Applying pgplot-drivers.patch ...                                                                                                [ ok ]
 * Applying pgplot-makemake.patch ...                                                                                               [ ok ]
 * Applying pgplot-compile-setup.patch ...                                                                                          [ ok ]
 * Applying pgplot-pgdisp.patch ...                                                                                                 [ ok ]
 * 
 * Warning!
 * gfortran selected: does not yet compile all drivers
 * disabling gif, wd, and ppd drivers
 * if you want more drivers, use g77
 * 
>>> Source unpacked.


Yes, thanks it compiled/installed fine.
Comment 8 Sébastien Fabbro (RETIRED) gentoo-dev 2007-04-27 11:23:58 UTC
(In reply to comment #7)

> Yes, thanks it compiled/installed fine.

As my hack is temporary fix, resolved as later until g77/gfortran coexist fine.