when I try to emerge netcdf the configure script could not find the "C-equivalent to Fortran routine "SUB"... nm: conftest.o:". Here is the comments out of the emerge : emerge netcdf Calculating dependencies ...done! >>> emerge (1 of 1) app-sci/netcdf-3.5.0-r2 to / >>> md5 src_uri ;-) netcdf-3.5.0.tar.Z >>> Unpacking source... >>> Unpacking netcdf-3.5.0.tar.Z to /var/tmp/portage/netcdf-3.5.0-r2/work patching file ncvalues.h patching file ncvalues.cpp Hunk #1 succeeded at 7 with fuzz 1. patching file netcdfcpp.h patching file nctst.cpp >>> Source unpacked. creating cache ./config.cache checking for top-level source-directory /var/tmp/portage/netcdf-3.5.0-r2/work/netcdf-3.5.0/src checking for m4 preprocessor checking for m4... m4 checking m4 flags... -B10000 checking C compiler "gcc"... works checking how to make dependencies... false checking for g++... g++ checking C++ compiler "g++"... works checking how to run the C preprocessor... gcc -E checking for f77... f77 checking for Fortran .F compiler... checking if Fortran-77 compiler handles *.F files... no checking for Fortran preprocessor... gcc -E checking "f77" as Fortran-90 compiler... failed to build test program checking for xlf90... no checking for f90... no configure: warning: Could not find working Fortran-90 compiler configure: warning: The Fortran-90 interface will not be built checking for nm utility checking for nm... nm checking nm flags... checking for C-equivalent to Fortran routine "SUB"... nm: conftest.o: No such file or directory configure: error: not found !!! ERROR: app-sci/netcdf-3.5.0-r2 failed. !!! Function econf, Line 338, Exitcode 1 !!! econf failed I have try using the gcc-3.3.1-r1/r5 as weel and the merge always failed Reproducible: Always Steps to Reproduce: 1. 2. 3. Here is the output of the emerge info : Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r7) ================================================================= System uname: 2.4.20-gentoo-r7 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.40GHz Gentoo Base System version 1.4.3.10p1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="http://technet.oma.be/gentoo http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.stwente.nl/pub/os/linux/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss crypt encode foomaticdb gif jpeg libg++ mad mikmod mpeg ncurses nls pdflib png xml2 xmms xv zlib gdbm berkdb slang readline tetex svga java X sdl pam libwww ssl perl python esd imlib oggvorbis gtk qt kde motif opengl -3dnow -gnome sse apm pda tetx cdr dvd aalib directfb fbcon acpi alsa arts avi cups gpm pcmcia pnp quicktime spell tcltk tcpd truetype usb"
*** Bug 32247 has been marked as a duplicate of this bug. ***
According to what you write, you're using gcc 3.3.x- according to emerge info, it's 3.2.3. Could you please try gcc-config to check/set the compiler version? There seems to be some confusion. I could not reproduce your problem with both gcc versions. I'm setting this to INVALID, if the problem persists feel free to add comments to this bug.
Oki seems to have had a confusion: First try to emerge netcdf was done using gcc-3.2.3 as the emerge info output says. But I also tried gcc 3.3.1 as someone suggested in another bug report. Nevertheless I found the origin of the problem this morning: the problem was that f2c was also installed on my machien. unmerhing f2c netcdf merged without any problem. I thank you all for your help resolving the problem.