I am using gentoo 1.4 and gcc 3.2.3-r1. I was trying to emerge netcdf, but I got the following errors. >>> 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... no checking for fort77... no checking for g77... g77 checking for Fortran .F compiler... checking if Fortran-77 compiler handles *.F files... no checking for Fortran preprocessor... gcc -E checking "g77" 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"... sub_ checking for Fortran "byte"... yes checking for Fortran "integer*2"... yes checking if Fortran "byte" is C "signed char"... configure: error: Could not link conftestf.o and conftest.o !!! ERROR: app-sci/netcdf-3.5.0-r2 failed. !!! Function econf, Line 324, Exitcode 1 !!! econf failed
please provide #emerge info
Created attachment 17825 [details] The emerge info bash-2.05b# emerge info Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22) ================================================================= System uname: 2.4.22 i686 Pentium III (Coppermine) 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/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mmx mpeg ncurses nls pdflib png quicktime spell xml2 xmms xv zlib gdbm berkdb slang readline arts svga java guile sdl gpm tcpd pam libwww ssl python esd imlib oggvorbis qt kde motif opengl X gtk -alsa -3dnow pcmcia sse pnp pda slp dga fbcon tcltk aalib lcms tiff oss ggi dvd flash xface mozilla xml plotutils tetex perl ruby gnome atlas truetype pic doc"
can you please try again using a more stable gcc. gcc-3.3.1 for example.
using gcc (GCC) 3.3.1 20030904 (Gentoo Linux 3.3.1-r1, propolice). works for me.
Assuming the user has bumped to a newer gcc version.