Making `install' in directory /var/tmp/portage/netcdf-3.6.1/work/netcdf-3.6.1/src/cxx make[2]: Entering directory `/var/tmp/portage/netcdf-3.6.1/work/netcdf-3.6.1/src/cxx' ar cru libnetcdf_c++.a netcdf.o ncvalues.o i686-pc-linux-gnu-ranlib libnetcdf_c++.a /bin/install -c libnetcdf_c++.a /var/tmp/portage/netcdf-3.6.1/image//usr/lib/libnetcdf_c++.a /bin/install -c netcdfcpp.h /var/tmp/portage/netcdf-3.6.1/image//usr/include/netcdfcpp.h /bin/install -c ncvalues.h /var/tmp/portage/netcdf-3.6.1/image//usr/include/ncvalues.h /bin/install -c netcdf.hh /var/tmp/portage/netcdf-3.6.1/image//usr/include/netcdf.hh make[2]: Leaving directory `/var/tmp/portage/netcdf-3.6.1/work/netcdf-3.6.1/src/cxx' Returning to directory /var/tmp/portage/netcdf-3.6.1/work/netcdf-3.6.1/src make[1]: Leaving directory `/var/tmp/portage/netcdf-3.6.1/work/netcdf-3.6.1/src' mv: cannot stat `/var/tmp/portage/netcdf-3.6.1/image//usr/share/man/man3/netcdf.3f': No such file or directory !!! ERROR: sci-libs/netcdf-3.6.1 failed. Call stack: ebuild.sh, line 1527: Called dyn_install ebuild.sh, line 1005: Called src_install netcdf-3.6.1.ebuild, line 43: Called die
Without any "emerge --info" it's hard to tell, but I'll bet you don't have Fortran support built in your gcc. Try the updated version on a portage mirror near you...
Accepting bug...
Seems you are right: checking for i686-pc-linux-gnu-ifc... no checking for i686-pc-linux-gnu-efc... no checking for i686-pc-linux-gnu-pgf95... no checking for i686-pc-linux-gnu-lf95... no checking for i686-pc-linux-gnu-g95... no checking for i686-pc-linux-gnu-f95... no checking for i686-pc-linux-gnu-gfortran... i686-pc-linux-gnu-gfortran checking whether we are using the GNU Fortran compiler... no checking whether i686-pc-linux-gnu-gfortran accepts -g... no checking for i686-pc-linux-gnu-i686-pc-linux-gnu-gfortran... (cached) i686-pc-linux-gnu-gfortran checking whether we are using the GNU Fortran compiler... (cached) no checking whether i686-pc-linux-gnu-gfortran accepts -g... (cached) no checking "i686-pc-linux-gnu-gfortran" as Fortran-90 compiler... failed to build test program checking for xlf90... no checking for f95... no checking for f90... no checking for pgf90... no checking for g95... no checking for gfortran... gfortran checking F90 F90FLAGS... gfortran checking if F90 flag needed... checking Fortran-90 compiler "gfortran"... failed to build test program configure: WARNING: "Could not find working Fortran-90 compiler" configure: WARNING: "The Fortran-90 interface will not be built" configure: checking for m4 preprocessor... checking for m4... m4 checking m4 flags... -B10000 checking ARFLAGS... cru checking type ar... ar is /usr/bin/ar checking NM... nm checking NMFLAGS... checking type nm... nm is /usr/bin/nm checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E checking user-defined Fortran-77 compiler "i686-pc-linux-gnu-gfortran"... failed to compile test program configure: WARNING: "The Fortran-77 interface will not be built" checking for Fortran .F compiler... checking for Fortran preprocessor... i686-pc-linux-gnu-gcc -E configure: checking for math library... checking for tanh in -lc... no checking for tanh in -lm... yes make[1]: Leaving directory `/var/tmp/portage/netcdf-3.6.1/work/netcdf-3.6.1/src' mv: cannot stat `/var/tmp/portage/netcdf-3.6.1/image/usr/share/man/man3/netcdf.3f': No such file or directory !!! ERROR: sci-libs/netcdf-3.6.1 failed. Call stack: ebuild.sh, line 1531: Called dyn_install ebuild.sh, line 1005: Called src_install netcdf-3.6.1.ebuild, line 54: Called die Portage 2.1_rc3-r2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r3, 2.6.17-rc3 i686) ================================================================= System uname: 2.6.17-rc3 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz Gentoo Base System version 1.12.0 dev-lang/python: 2.3.4-r1, 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/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 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/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /u sr/share/config /usr/spool/PBS /var/bind /var/qmail/alias /var/qmail/control /var/spool/PBS /var/vpopmail/domains /var/vpopmail/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d" 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" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --tim eout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 FFmpeg X Xaw3d a52 aac aalib acpi alsa amr apache2 apm asf ati avi berkdb bitmap-fonts bonobo caca cdparanoia cdr cli cpudetectio n crypt cscope ctype cups curl dba dga directfb divx divx5 divx5linux dri dts dv dvb dvd dvdr dvdread eds emacs emacs-w3 emboss encode eth ereal evo f77 faad faad2 fam fame fbcon ffmpeg flac flash foomaticdb fortran fvwm fvwm2 gb gd gdbm ggi gif gphoto2 gpm gstreamer gtk gtk2 gtkhtml i8x0 icc iconv ieee1394 ifc imagemagick imlib imlib2 inifile innodb isdnlog ithreads java jpeg kerberos lcms leim libcaca libg++ l ibwww lirc live lzo mad matroska mcal mesa mhash mikmod ming mmx mmx2 mmxext modplug motif mozilla mp3 mpeg mule musepack mysql ncurses ne twork nls nptl nptlonly ogg oggvorbis opengl oss pam pcre pda pdflib perl plotutils plugin png ppds pppd pthread pthreads python qt qtx qu icktime readline reflection rtc samba scanner scp server session slp spell spl sse sse2 ssl stroke tcltk tcpd tetex theora thread threads tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales v4l v4l2 vcd vorbis win32codecs winvidix wmf x264 xanim xml xml2 xmm s xorg xosd xprint xv xvid xvmc zeo zlib elibc_glibc kernel_linux userland_GNU video_cards_ati" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
It looks like your fortran support is incomplete or broken somehow; you should get something like this for GNU fortran: checking for x86_64-pc-linux-gnu-gfortran... x86_64-pc-linux-gnu-gfortran checking whether we are using the GNU Fortran compiler... yes checking whether x86_64-pc-linux-gnu-gfortran accepts -g... yes Maybe the netcdf configure is horribly broken and sees gfortran when you have none, and right now I can't find a box without either g77 or gfortran... I've updated the fortran detection stuff as best I could, but the netcdf configure options don't have a --disable-fortran switch. Try the updated ebuild, and make sure your fortran compiler actually works; since you have "fortran" in your USE flags, I'm a little puzzled why you also get "checking whether we are using the GNU Fortran compiler... no" right after it detects gfortran (the new ebuild should take care of it if you only have g77).
13:52:50 (50.07 KB/s) - `/usr/portage/distfiles/netcdf-3.6.1.tar.gz' saved [883888/883888] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking netcdf-3.6.1.tar.gz ;-) ... [ ok ] * You need one of these Fortran Compilers: gfortran ifc g77 * Installed are: gfortran ifort g77 >>> Unpacking source... >>> Unpacking netcdf-3.6.1.tar.gz to /var/tmp/portage/netcdf-3.6.1/work * Applying fPIC.patch ... [ ok ] >>> Source unpacked. >>> Compiling source in /var/tmp/portage/netcdf-3.6.1/work/netcdf-3.6.1/src ... * econf: updating netcdf-3.6.1/src/config.guess with /usr/share/gnuconfig/config.guess * econf: updating netcdf-3.6.1/src/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib CPPFLAGS=-DpgiFortran --build=i686-pc-linux-gnu configure: netCDF 3.6.1 checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking whether configure should try to set compiler flags... no checking whether netCDF is to be built in 64-bit mode... no checking where to put large files... . checking for top-level source-directory... /var/tmp/portage/netcdf-3.6.1/work/netcdf-3.6.1/src checking for i686-pc-linux-gnu-pathcc... no checking for i686-pc-linux-gnu-xlc... no checking for i686-pc-linux-gnu-icc... no checking for i686-pc-linux-gnu-cc... no checking for i686-pc-linux-gnu-c89... no checking for i686-pc-linux-gnu-acc... no checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i686-pc-linux-gnu-gcc accepts -g... yes checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed checking for i686-pc-linux-gnu-pathCC... no checking for i686-pc-linux-gnu-cl... no checking for i686-pc-linux-gnu-KCC... no checking for i686-pc-linux-gnu-CC... no checking for i686-pc-linux-gnu-icpc... no checking for i686-pc-linux-gnu-cxx... no checking for i686-pc-linux-gnu-cc++... no checking for i686-pc-linux-gnu-xlC... no checking for i686-pc-linux-gnu-aCC... no checking for i686-pc-linux-gnu-c++... i686-pc-linux-gnu-c++ checking whether we are using the GNU C++ compiler... yes checking whether i686-pc-linux-gnu-c++ accepts -g... yes checking C++ compiler "i686-pc-linux-gnu-c++"... works checking for i686-pc-linux-gnu-pathf90... no checking for i686-pc-linux-gnu-xlf... no checking for i686-pc-linux-gnu-fort... no checking for i686-pc-linux-gnu-xlf95... no checking for i686-pc-linux-gnu-ifort... no checking for i686-pc-linux-gnu-ifc... no checking for i686-pc-linux-gnu-efc... no checking for i686-pc-linux-gnu-pgf95... no checking for i686-pc-linux-gnu-lf95... no checking for i686-pc-linux-gnu-g95... no checking for i686-pc-linux-gnu-f95... no checking for i686-pc-linux-gnu-gfortran... i686-pc-linux-gnu-gfortran checking whether we are using the GNU Fortran compiler... yes checking whether i686-pc-linux-gnu-gfortran accepts -g... yes checking for i686-pc-linux-gnu-i686-pc-linux-gnu-gfortran... (cached) i686-pc-linux-gnu-gfortran checking whether we are using the GNU Fortran compiler... (cached) yes checking whether i686-pc-linux-gnu-gfortran accepts -g... (cached) yes checking "i686-pc-linux-gnu-gfortran" as Fortran-90 compiler... works configure: checking for m4 preprocessor... checking for m4... m4 checking m4 flags... -B10000 checking how to make dependencies... false checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... 64 checking for _LARGE_FILES value needed for large files... no configure: checking for ar utility... checking for ar... ar checking ar flags... cru configure: checking for nm utility... checking for nm... nm checking nm flags... checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib checking for a BSD-compatible install... /bin/install -c checking CPPFLAGS... -DpgiFortran checking CC CFLAGS... i686-pc-linux-gnu-gcc -O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe checking type i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc is /usr/bin/i686-pc-linux-gnu-gcc checking CXX... i686-pc-linux-gnu-c++ checking CXXFLAGS... -O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe checking type i686-pc-linux-gnu-c++... i686-pc-linux-gnu-c++ is /usr/bin/i686-pc-linux-gnu-c++ checking FC... i686-pc-linux-gnu-gfortran checking FFLAGS... checking type i686-pc-linux-gnu-gfortran... i686-pc-linux-gnu-gfortran is /usr/bin/i686-pc-linux-gnu-gfortran checking F90... i686-pc-linux-gnu-gfortran checking F90FLAGS... checking type i686-pc-linux-gnu-gfortran... i686-pc-linux-gnu-gfortran is /usr/bin/i686-pc-linux-gnu-gfortran checking AR... ar checking ARFLAGS... cru checking type ar... ar is /usr/bin/ar checking NM... nm checking NMFLAGS... checking type nm... nm is /usr/bin/nm checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E checking user-defined Fortran-77 compiler "i686-pc-linux-gnu-gfortran"... works checking for Fortran .F compiler... checking if Fortran-77 compiler handles *.F files... yes checking for C-equivalent to Fortran routine "SUB"... sub_ checking for Fortran "byte"... yes checking for Fortran "integer*2"... yes checking if Fortran "byte" is C "signed char"... yes checking if Fortran "byte" is C "short"... no checking if Fortran "byte" is C "int"... no checking if Fortran "byte" is C "long"... no checking if Fortran "integer*2" is C "short"... yes checking if Fortran "integer*2" is C "int"... no checking if Fortran "integer*2" is C "long"... no checking if Fortran "integer" is C "int"... yes checking if Fortran "real" is C "float"... yes checking if Fortran "doubleprecision" is C "double"... yes checking for Fortran-equivalent to netCDF "byte"... byte checking for Fortran-equivalent to netCDF "short"... integer*2 configure: checking for math library... checking for tanh in -lc... no checking for tanh in -lm... yes [...] make[2]: Entering directory `/var/tmp/portage/netcdf-3.6.1/work/netcdf-3.6.1/src/f90' i686-pc-linux-gnu-gfortran -c typeSizes.f90 i686-pc-linux-gnu-gfortran -c netcdf.f90 ar cru ../libsrc/libnetcdf.a netcdf.o typeSizes.o i686-pc-linux-gnu-ranlib ../libsrc/libnetcdf.a make[2]: Leaving directory `/var/tmp/portage/netcdf-3.6.1/work/netcdf-3.6.1/src/f90' So, I think I did not have fortran compiled into gcc, of otherwise I do not understand that. Maybe older gcc-config/eselect-compiler profiles did not hav it and maybe I was using some older profile? :(