This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
> Hi, > I'm trying to build the netcdf 3.6.2 on a Solaris10 in an Intel 64bit box. > I set the variables CFLAGS, CXXFLAGS and FFLAGS to -xarch=native64 > But when I run make check I get this: > > > /bin/bash ../libtool --mode=link f90 -I../libsrc -M../f90 -g -o > tst_f90 tst_f90.o ../fortran/libnetcdff.la -lm ../libsrc/libnetcdf.la > libtool: link: f90 -I../libsrc -M../f90 -g -o .libs/tst_f90 tst_f90.o > ../fortran/.libs/libnetcdff.so -lm ../libsrc/.libs/libnetcdf.so > -R/usr/local/lib > ld: fatal: file ../fortran/.libs/libnetcdff.so: wrong ELF class: ELFCLASS64 > ld: fatal: File processing errors. No output written to .libs/tst_f90 > *** Error code 1 > make: Fatal error: Command failed for target `tst_f90' > Current working directory /opt/install/netcdf-3.6.2/nf_test > *** Error code 1 > make: Fatal error: Command failed for target `check-am' > Current working directory /opt/install/netcdf-3.6.2/nf_test > *** Error code 1 > The following command caused the error: > failcom='exit 1'; \ > for f in x $MAKEFLAGS; do \ > case $f in \ > *=* | --[!k]*);; \ > *k*) failcom='fail=yes';; \ > esac; \ > done; \ > dot_seen=no; \ > target=`echo check-recursive | sed s/-recursive//`; \ > list='f90 fortran libsrc nctest ncgen ncdump nf_test cxx nc_test > examples'; for subdir in $list; do \ > echo "Making $target in $subdir"; \ > if test "$subdir" = "."; then \ > dot_seen=yes; \ > local_target="$target-am"; \ > else \ > local_target="$target"; \ > fi; \ > (cd $subdir && make $local_target) \ > || eval $failcom; \ > done; \ > if test "$dot_seen" = "no"; then \ > make "$target-am" || exit 1; \ > fi; test -z "$fail" > make: Fatal error: Command failed for target `check-recursive' > > > > > Thanks in advance. > > > -- > Paulo Roberto Vieira Brando > > Set also FCFLAGS, for the F90 compiler... Please let me know if this doesn't help. Thanks, Ed Ticket Details =================== Ticket ID: GHV-935598 Department: Support netCDF Priority: Normal Status: Closed