[ncl-install] Trouble in Building NCL on Mac OS with Ifort and Clang
Kevin Hallock
hallock at ucar.edu
Fri Jul 7 11:20:30 MDT 2017
Hi Kian,
“ft2build.h” is provided by XQuartz in the “/opt/X11/include/freetype2” directory, so you might need to add “-I/opt/X11/include/freetype2” to your clang command.
I don’t have any experience with ifort myself, and I’m not sure why it’s failing to load the appropriate dynamic libraries, but I will ask some of the other NCL developers if they’ve experienced this behavior when using ifort.
Kevin
> On Jul 7, 2017, at 1:41 AM, Kian <kian-huang at qq.com> wrote:
>
>
> Hi everyone,
>
> I am trying to build NCL on Mac OS with ifort, clang compilers and XQuartz library these days and I have some trouble. I have solved some of these problem, but still left some. Thank you for reading and hope for solutions.
>
> This is my operational system kernel information:
> Darwin Kernel Version 16.6.0
>
> The error information I met list as following:
>
> clang -O -I../../../.././include -I/opt/X11/include -DDarwin -DCTXT -DX11 -DPS -DPDF -DPIX -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -D__UNIXOS2__ -D_DARWIN_C_SOURCE -DNeedFuncProto -c -o cro_device.o cro_device.c
> In file included from cro_device.c:26:
> In file included from ./cro.h:147:
> /opt/X11/include/cairo/cairo-ft.h:46:10: fatal error: 'ft2build.h' file not found
> #include <ft2build.h>
> ^
> 1 error generated.
> make[5]: *** [cro_device.o] Error 1
>
>
> Previously, I met another problem. Log file (make-output) showed that the compiler can not load the ifort dynamic libraries. I solved it by using static linking by setting
>
> #define CtoFLibraries /opt/intel/lib/libifcore.a /opt/intel/lib/libsvml.a /opt/intel/lib/libimf.a /opt/intel/lib/libirc.a /opt/intel/lib/libiomp5.a
> #define CtoFLibrariesUser /opt/intel/lib/libifcore.a /opt/intel/lib/libsvml.a /opt/intel/lib/libimf.a /opt/intel/lib/libirc.a /opt/intel/lib/libiomp5.a
>
> But it was invalid for ifort -openmp option (Maybe change makefile setting will solve that. I have not tried it yet).
> ------------------
> Kian Huang
>
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20170707/f1853fd3/attachment.html
More information about the ncl-install
mailing list