[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #CKR-952840]: Building NetCDF Fortran on Big Sur
- Subject: [netCDF #CKR-952840]: Building NetCDF Fortran on Big Sur
- Date: Wed, 20 Oct 2021 11:20:37 -0600
Hello,
It appears that your environmental variable which should specify the compiler,
'F77', is set to '/usr/local/lib'. As a result, 'make' is trying to invoke
that directory to compile your code, which would explain the permissions error
you're seeing. Try setting the environmental variable F77 to 'gfortran', and
see if this resolves the issue you're observing :).
Thanks!
-Ward
> Hi,
>
> I have an installation of gcc (11.2), gfortran (11.2) and netcdf C 4.8 from
> Homebrew on my Mac running Big Sur. I then followed the instructions for
> installing netcdf-fortran since Homebrew does not offer this version of
> netcdf and I have legacy f77 code that requires netcdf fortran libraries.
>
> I seem to be running into a permissions error for the /usr/local/lib
> directory when I try to run ‘make check’. I’ve tried running it with sudo and
> changing the permissions to 777 but neither seems to fix the issue. I’m
> attaching the config.log file. Here is the error from running ‘make check’.
>
> yserra@saguaro netcdf-fortran-4.5.3 % make check
> Making check in libsrc
> make[1]: Nothing to be done for `check'.
> Making check in fortran
> /Applications/Xcode.app/Contents/Developer/usr/bin/make check-am
> Making check in nf_test
> /Applications/Xcode.app/Contents/Developer/usr/bin/make check-am
> /Applications/Xcode.app/Contents/Developer/usr/bin/make nf_test tst_int64
> tst_f77_v2 ftest nf03_test f03test tst03_f77_v2
> /usr/local/lib -DPACKAGE_NAME=\"netCDF-Fortran\"
> -DPACKAGE_TARNAME=\"netcdf-fortran\" -DPACKAGE_VERSION=\"4.5.3\"
> -DPACKAGE_STRING=\"netCDF-Fortran\ 4.5.3\"
> -DPACKAGE_BUGREPORT=\"address@hidden\" -DPACKAGE_URL=\"\"
> -DPACKAGE=\"netcdf-fortran\" -DVERSION=\"4.5.3\" -DNF_RELAX_COORD_BOUND=1
> -DENABLE_CDF5=1 -DHAVE_F2008=1 -DHAVE_TS29113_SUPPORT=1 -DTEMP_LARGE=\".\"
> -DSTDC_HEADERS=1 -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OCA=1 -DHAVE_SSIZE_T=1 -DHAVE_PTRDIFF_T=1
-DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=8 -DSIZEOF_FLOAT=4
-DSIZEOF_DOUBLE=8 -DSIZEOF_OFF_T=8 -DSIZEOF_SIZE_T=8 -DSIZEOF_PTRDIFF_T=8 -I.
-I/usr/local/include -I../fortran -c -o test_get.o test_get.F
> make[3]: /usr/local/lib: Permission denied
> make[3]: *** [test_get.o] Error 1
> make[2]: *** [check-am] Error 2
> make[1]: *** [check] Error 2
> make: *** [check-recursive] Error 1
> yserra@saguaro netcdf-fortran-4.5.3 %
>
> Thanks for your help. Yolande
> _______________________________
> Yolande L Serra (she/her), PhD
> Senior Research Scientist
> CICOES/University of Washington
> address@hidden
>
>
>
>
>
>
>
>
>
>
>
> Hi,
>
> I have an installation of gcc (11.2), gfortran (11.2) and netcdf C 4.8 from
> Homebrew on my Mac running Big Sur. I then followed the instructions for
> installing netcdf-fortran since Homebrew does not offer this version of
> netcdf and I have legacy f77 code that requires netcdf fortran libraries.
>
> I seem to be running into a permissions error for the /usr/local/lib
> directory when I try to run ‘make check’. I’ve tried running it with sudo and
> changing the permissions to 777 but neither seems to fix the issue. I’m
> attaching the config.log file. Here is the error from running ‘make check’.
>
> yserra@saguaro netcdf-fortran-4.5.3 % make check
> Making check in libsrc
> make[1]: Nothing to be done for `check'.
> Making check in fortran
> /Applications/Xcode.app/Contents/Developer/usr/bin/make check-am
> Making check in nf_test
> /Applications/Xcode.app/Contents/Developer/usr/bin/make check-am
> /Applications/Xcode.app/Contents/Developer/usr/bin/make nf_test tst_int64
> tst_f77_v2 ftest nf03_test f03test tst03_f77_v2
> /usr/local/lib -DPACKAGE_NAME=\"netCDF-Fortran\"
> -DPACKAGE_TARNAME=\"netcdf-fortran\" -DPACKAGE_VERSION=\"4.5.3\"
> -DPACKAGE_STRING=\"netCDF-Fortran\ 4.5.3\"
> -DPACKAGE_BUGREPORT=\"address@hidden\" -DPACKAGE_URL=\"\"
> -DPACKAGE=\"netcdf-fortran\" -DVERSION=\"4.5.3\" -DNF_RELAX_COORD_BOUND=1
> -DENABLE_CDF5=1 -DHAVE_F2008=1 -DHAVE_TS29113_SUPPORT=1 -DTEMP_LARGE=\".\"
> -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
> -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
> -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\"
> -DNF_INT1_T=byte -DNF_INT2_T=integer\*2 -DNF_INT8_T=integer\*8
> -DNF_INT1_IS_C_SIGNED_CHAR=1 -DNF_INT2_IS_C_SHORT=1
> -DNF_INT8_IS_C_LONG_LONG=1 -DNF_INT_IS_C_INT=1 -DNF_REAL_IS_C_FLOAT=1
> -DNF_DOUBLEPRECISION_IS_C_DOUBLE=1 -DNCBYTE_T=byte -DNCSHORT_T=integer\*2
> -DHAVE_LIBM=1 -DHAVE_NETCDF_H=1 -DHAVE_NC_DEF_OPAQUE=1 -DHAVE_NCCREATE=1
> -DHAVE_NC_SET_LOG_LEVEL=1 -DHAVE_OC_OPEN=1 -DHAV
E_NC_DEF_VAR_SZIP=1 -DHAVE_NC_GET_CHUNK_CACHE_INTS=1 -DUSE_NETCDF4=1
-DLOGGING=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_LOCALE_H=1 -DHAVE_STDIO_H=1
-DHAVE_STDARG_H=1 -DHAVE_ERRNO_H=1 -DHAVE_CTYPE_H=1 -DHAVE_FCNTL_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_TIME_H=1
-DHAVE_SYS_RESOURCE_H=1 -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1
-DTIME_WITH_SYS_TIME=1 -DHAVE_VPRINTF=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1
-DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_SSIZE_T=1 -DHAVE_PTRDIFF_T=1
-DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=8 -DSIZEOF_FLOAT=4
-DSIZEOF_DOUBLE=8 -DSIZEOF_OFF_T=8 -DSIZEOF_SIZE_T=8 -DSIZEOF_PTRDIFF_T=8 -I.
-I/usr/local/include -I../fortran -c -o test_get.o test_get.F
> make[3]: /usr/local/lib: Permission denied
> make[3]: *** [test_get.o] Error 1
> make[2]: *** [check-am] Error 2
> make[1]: *** [check] Error 2
> make: *** [check-recursive] Error 1
> yserra@saguaro netcdf-fortran-4.5.3 %
>
> Thanks for your help. Yolande
> _______________________________
> Yolande L Serra (she/her), PhD
> Senior Research Scientist
> CICOES/University of Washington
> address@hidden
>
>
>
>
>
>
>
>
>
>
>
Ticket Details
===================
Ticket ID: CKR-952840
Department: Support netCDF
Priority: Normal
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata
inquiry tracking system and then made publicly available through the web. If
you do not want to have your interactions made available in this way, you must
let us know in each email you send to us.