[ncl-install] Trouble in Building NCL on Mac OS with Ifort and Clang

Kian kian-huang at qq.com
Fri Jul 7 01:41:31 MDT 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20170707/a05c0ca7/attachment.html 


More information about the ncl-install mailing list