Home | Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo!
Not eligible to see or edit group visibility for this bug.
View Bug Activity | Format For Printing | XML | Clone This Bug
The build doesn't start since it complains gfortran is missing. This is ok since I'm using gcc-3.4.6, but it should work using g77 in the some way others ebuilds do. sci-physics/paw-2.14.04-r1 ebuild is not affected and installs fine. compass04al ~ # emerge -u cernlib Calculating dependencies ... done! >>> Verifying ebuild Manifests... >>> Emerging (1 of 1) sci-physics/cernlib-2006-r1 to / * cernlib_2006.dfsg.2.orig.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] * cernlib_2006.dfsg.2-11.diff.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking cernlib_2006.dfsg.2.orig.tar.gz ;-) ... [ ok ] * checking cernlib_2006.dfsg.2-11.diff.gz ;-) ... [ ok ] * You need one of these Fortran Compilers: gfortran g77 ifc * Installed are: g77 ... ... ... ... gmake[4]: Leaving directory `/var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig/build/kernlib/kernbit/i303' gmake[4]: Entering directory `/var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig/build/kernlib/kernbit/i303' gfortran ralph.F /bin/sh: line 8: gfortran: command not found Failing command: gfortran -g -c -march=prescott -O2 -pipe -fomit-frame-pointer -fno-strength-reduce -fno-range-check -fno-automatic -fno-second-underscore -I/var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig/build/kernlib/kernbit -I/var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig/src/kernlib/kernbit -I/var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig/src/kernlib/kernbit/i303 -I/var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig/src/include -DCERNLIB_LINUX -DCERNLIB_UNIX -DCERNLIB_LNX -DCERNLIB_QMGLIBC -DCERNLIB_GFORTRAN -o archive/ralph.o /var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig/src/kernlib/kernbit/i303/ralph.F gmake[4]: *** [archive/ralph.o] Error 127 gmake[4]: Leaving directory `/var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig/build/kernlib/kernbit/i303' gmake[3]: *** [i303/archive/objects.list] Error 2 gmake[3]: Leaving directory `/var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig/build/kernlib/kernbit' make[2]: *** [kernbit/archive/objects.list] Error 2 make[2]: Leaving directory `/var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig/build/kernlib' make[1]: *** [cernlib-libraries] Error 2 make[1]: Leaving directory `/var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig' make: *** [stampdir/cernlib-arch-stamp] Error 2 * * ERROR: sci-physics/cernlib-2006-r1 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2673: Called die * The specific snippet of code: * emake -j1 cernlib-indep cernlib-arch || die "emake libs failed" * The die message: * emake libs failed Steps to reproduce: 1. (install and) select latest gcc-3.4 2. emerge cernlib 3. compass04al ~ # emerge --info Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-3.4.6, glibc-2.5-r4, 2.6.23-gentoo-r8 i686) ================================================================= System uname: 2.6.23-gentoo-r8 i686 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz Timestamp of tree: Fri, 14 Mar 2008 05:00:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.1.4 dev-lang/python: 2.4.4-r9 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer" 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/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer" DISTDIR="/mnt/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y" FEATURES="buildpkg candy ccache distcc distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="it_IT.utf8" LC_ALL="it_IT.utf8" LINGUAS="it en" MAKEOPTS="-j6" PKGDIR="/mnt/packages" 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="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/overlays/my_portage" SYNC="rsync://compasstore01/gentoo-portage" USE="X a52 aac acl acpi alsa arts asf audiofile avi berkdb browserplugin bzip2 bzlib cairo cdr cli cracklib crypt cups dbus divx4linux djvu dmi dri dvd dvdr dvdread dvi eds emacs emboss encode evo extensions fam fame fbcon fbcondecor ffmpeg fftw firefox flac foomaticdb fortran gdbm gif gimp glibc-compat20 glitz gnome gpm gs gstreamer gtk gtk2 hal i8x0 iconv id3tag imagemagick imlib intel isdnlog ithreads java javascript jpeg kde kdeenablefinal latex libnotify lm_sensors logrotate lzo mad midi mikmod mjpeg mmx mmxext mng motif mp3 mpeg mudflap musicbrainz mysql nautilus ncurses network nis nls nopie nossp nptl nptlonly nsplugin ogg oggvorbis opengl openmp pam pch pcre pdf pdflib perl pic png ppds pppd python qt qt3 qt3support qt4 quicktime quota rdesktop readline real reflection samba sane sdl session smp sndfile spell spl sse sse2 ssl ssse3 startup-notification svg svga syslog tcl tetex theora threads tiff tk truetype twolame unicode usb userlocales utempter vcd vorbis win32codecs wma wmf wxwindows x86 xcomposite xemacs xforms xine xml xorg xpm xscreensaver xv xvid 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" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa fbdev" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Hi Stefano, Thanks for reporting. This cernlib revision had a major debian patch to make it work with gfortran, so I am not so surprised. I will take a closer look. I don't know how much you are tied to g77, but my advise would be to move to gfortran, where there are more devs and users to test to the packages.
I'm keeping all my prod Gentoo boxes the most similar to SLC4. That's why I'm using gcc 3.4.6. Then I think I'll probably have to mask new cernlib packages.
In my opinion it's not a good idea to break things in such a way. This old obscure package was developed for physicists and physicists still use it; unfortunately they are often tied to specific software version. It was two days ago I was asked to build a toolchain kernel-2.4 + glibc-2.3.2 + gcc-3.2.3; I agree it's a nightmare, but I had to do. That's why I can't accept this breaking point (and I'm sure I'm not the only one). I found out that the Debian patch adds #define Hasgfortran YES to $(CVSCOSRC)/config/host.def, making the build gcc4 based. To satisfy this request, then debian/add-ons/bin/cernlib.in passes -lgfortran. 1. Deleting "#define Hasgfortran YES" in /var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig/src/config/host.def 2. sed -i -e 's/-lgfortran/-lg2c/' /var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig/debian/add-ons/bin/cernlib.in 3. cd /var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig 4. make The build compiles fine, till it makes test when it fails with: testing in /packlib/epio/tests/ptest1... gmake[4]: Entering directory `/var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig/build/packlib/epio/tests/ptest1' Testing epio ... using ptest1_32 ./ptest1_32: error while loading shared libraries: libpacklib.so.1_gfortran: cannot open shared object file: No such file or directory Test result = 127 gmake[4]: *** [test] Error 127 gmake[4]: Leaving directory `/var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig/build/packlib/epio/tests/ptest1' gmake[3]: *** [test] Error 2 gmake[3]: Leaving directory `/var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig/build/packlib/epio/tests' gmake[2]: *** [test] Error 2 gmake[2]: Leaving directory `/var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig/build/packlib/epio' make[1]: *** [test] Error 2 make[1]: Leaving directory `/var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig/build/packlib' make[1]: Entering directory `/var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig/build/mathlib' testing in /mathlib/gen... gmake[2]: Entering directory `/var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig/build/mathlib/gen' testing in /mathlib/gen/tests... gmake[3]: Entering directory `/var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig/build/mathlib/gen/tests' Testing gen ... using gent ./gent: error while loading shared libraries: libmathlib.so.2_gfortran: cannot open shared object file: No such file or directory Test result = 127 gmake[3]: *** [test] Error 127 gmake[3]: Leaving directory `/var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig/build/mathlib/gen/tests' gmake[2]: *** [test] Error 2 gmake[2]: Leaving directory `/var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig/build/mathlib/gen' make[1]: *** [test] Error 2 make[1]: Leaving directory `/var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig/build/mathlib' make[1]: Entering directory `/var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig/build/graflib' testing in /graflib/higz... gmake[2]: Entering directory `/var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig/build/graflib/higz' testing in /graflib/higz/examples... gmake[3]: Entering directory `/var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig/build/graflib/higz/examples' ---------------------------------------- test for higz is interactive ---------------------------------------- gmake[3]: Leaving directory `/var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig/build/graflib/higz/examples' gmake[2]: Leaving directory `/var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig/build/graflib/higz' make[1]: Leaving directory `/var/tmp/portage/sci-physics/cernlib-2006-r1/work/cernlib-2006.dfsg.2.orig/build/graflib' *** Failed test suite!!! *** make: *** [stampdir/cernlib-test-pass] Error 1 Libraries (shared libraries?!?) are successifully built. neutron cernlib-2006.dfsg.2.orig # ls shlib/ libgraflib.so libkernlib.so libpacklib-lesstif.so libgraflib.so.1_gfortran libkernlib.so.1_gfortran libpacklib-lesstif.so.1_gfortran libgraflib.so.1_gfortran.2006 libkernlib.so.1_gfortran.2006 libpacklib-lesstif.so.1_gfortran.2006 libgrafX11.so libmathlib.so libpacklib.so libgrafX11.so.1_gfortran libmathlib.so.2_gfortran libpacklib.so.1_gfortran libgrafX11.so.1_gfortran.2006 libmathlib.so.2_gfortran.2006 libpacklib.so.1_gfortran.2006 Question: will ifc work?
(In reply to comment #3) > In my opinion it's not a good idea to break things in such a way. This old > obscure package was developed for physicists and physicists still use it; > unfortunately they are often tied to specific software version. The Debian maintainer did this apparently because they are slowly moving everything to gcc-4.3, and they don't have to test every single configuration like us. Note he repaired more than he broke: cernlib without all his patches I doubt cernlib would even compile at all, especially on arches other than x86. > Question: will ifc work? F77=ifort FFLAGS="my_ifort_flags" emerge cernlib should also work. If not, please open a new bug. Also, I just updated the ebuild in cvs with your comments and more. It should now work for g77.