[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #PGA-706638]: libtool error on make check for FORTRAN build



Hello,

I don't have access to the intel compiler, but it appears that the problem 
might be the blank 'F77' environmental variable.  What happens if you also 
specify F77=ifort?

-Ward

> Running CentOS-7 64bit.
> 
> 
> I built netcdf-4.4.0 using icc.  'Make check' didn't throw any errors and the 
> installation put the executables and libraries in the correct location 
> (/usr/local/).
> 
> 
> Configured netcdf-fortran-4.4.3 just fine using ifort (and icc).  'Make 
> check' throws the following error:
> 
> 
> Making check in fortran
> make[1]: Entering directory `/root/netcdf-fortran-4.4.3/fortran'
> make  check-am
> make[2]: Entering directory `/root/netcdf-fortran-4.4.3/fortran'
> make[2]: Nothing to be done for `check-am'.
> make[2]: Leaving directory `/root/netcdf-fortran-4.4.3/fortran'
> make[1]: Leaving directory `/root/netcdf-fortran-4.4.3/fortran'
> Making check in nf_test
> make[1]: Entering directory `/root/netcdf-fortran-4.4.3/nf_test'
> make  nf_test tst_f77_v2 ftst_vars ftst_vars2 ftst_vars3 ftst_vars4 
> ftst_vars5 ftst_vars6 ftst_types ftst_types2 ftst_types3 ftst_groups 
> ftst_path ftst_rengrps f90tst_vars tst_types tst_types2 f90tst_vars_vlen 
> tst_f90_nc4 f90tst_grps f90tst_fill f90tst_fill2 f90tst_vars3 f90tst_vars4 
> f90tst_vars2 f90tst_path f90tst_rengrps ftst_v2    ftest tst_f90
> make[2]: Entering directory `/root/netcdf-fortran-4.4.3/nf_test'
> /bin/sh ../libtool  --tag=F77   --mode=link  -I../fortran   -I../fortran   
> -L/usr/local/lib -o nf_test f03lib_f_interfaces.o test_get.o test_put.o 
> nf_error.o nf_test.o test_read.o test_write.o util.o f03lib.o 
> ../fortran/libnetcdff.la -lnetcdf
> libtool: link: unrecognized option `-I../fortran'
> libtool: link: Try `libtool --help' for more information.
> make[2]: *** [nf_test] Error 1
> make[2]: Leaving directory `/root/netcdf-fortran-4.4.3/nf_test'
> make[1]: *** [check-am] Error 2
> make[1]: Leaving directory `/root/netcdf-fortran-4.4.3/nf_test'
> make: *** [check-recursive] Error 1
> 
> 
> A post from last year indicated that the LD_LIBRARY_PATH needed to be set but 
> that was for an unconventional path in /usr/local.
> 
> 
> I've attached the config logs for both the c build and the FORTRAN build.
> 
> 
> Thanks!!
> 
> 
> - Adam
> 
> 


Ticket Details
===================
Ticket ID: PGA-706638
Department: Support netCDF
Priority: Normal
Status: Closed