NCEPLIB in Mac
Tao Zhang
tao.zhang at colorado.edu
Thu Jul 7 21:48:01 UTC 2022
Hi,
When I compile the code in other machine (maybe Linux), it works fine.
But it does not work in Mac because of the lib. issue. see below.
I find that there are some info. about NCEP lib., see
https://github.com/NOAA-EMC/NCEPLIBS
I am asking if Macport can easily install some of them, especially for
NCEPLIBS-bacio <https://github.com/NOAA-EMC/NCEPLIBS-bacio>, NCEPLIBS-ip
<https://github.com/NOAA-EMC/NCEPLIBS-ip>, NCEPLIBS-sp
<https://github.com/NOAA-EMC/NCEPLIBS-sp>,
NCEPLIBS-w3emc <https://github.com/NOAA-EMC/NCEPLIBS-w3emc>, and
*NCEPLIBS-w3nco <https://github.com/NOAA-EMC/NCEPLIBS-w3nco>
*
**
Also, does gfortran work with these libs.?
Thanks
Tao
/Users/tzhang/Disk/CPC/mkgrbsst/anncli/File2> gflib
gribsst.daily.PSD.SST_cli.1991-2020.f
ld: warning: ignoring file
/Users/tzhang/Disk/CPC/mkgrbsst/bin/libsp_4.a, file was built for
archive which is not the architecture being linked (x86_64):
/Users/tzhang/Disk/CPC/mkgrbsst/bin/libsp_4.a
ld: warning: ignoring file
/Users/tzhang/Disk/CPC/mkgrbsst/bin/libip_4.a, file was built for
archive which is not the architecture being linked (x86_64):
/Users/tzhang/Disk/CPC/mkgrbsst/bin/libip_4.a
ld: warning: ignoring file
/Users/tzhang/Disk/CPC/mkgrbsst/bin/libw3emc_4.a, file was built for
archive which is not the architecture being linked (x86_64):
/Users/tzhang/Disk/CPC/mkgrbsst/bin/libw3emc_4.a
ld: warning: ignoring file
/Users/tzhang/Disk/CPC/mkgrbsst/bin/libw3nco_4.a, file was built for
archive which is not the architecture being linked (x86_64):
/Users/tzhang/Disk/CPC/mkgrbsst/bin/libw3nco_4.a
ld: warning: ignoring file
/Users/tzhang/Disk/CPC/mkgrbsst/bin/libbacio_4.a, file was built for
archive which is not the architecture being linked (x86_64):
/Users/tzhang/Disk/CPC/mkgrbsst/bin/libbacio_4.a
Undefined symbols for architecture x86_64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
/Users/tzhang/Disk/CPC/mkgrbsst/anncli/File2> which gfnew
gfnew: aliased to gfortran -m64 -ffixed-line-length-0
-finit-local-zero -fbounds-check
gflib:
-----
#set -x
gfnew \
/Users/tzhang/Disk/CPC/mkgrbsst/bin/libsp_4.a \
/Users/tzhang/Disk/CPC/mkgrbsst/bin/libip_4.a \
/Users/tzhang/Disk/CPC/mkgrbsst/bin/libw3emc_4.a \
/Users/tzhang/Disk/CPC/mkgrbsst/bin/libw3nco_4.a \
/Users/tzhang/Disk/CPC/mkgrbsst/bin/libbacio_4.a
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20220707/b8cedab1/attachment-0001.htm>
More information about the macports-dev
mailing list