[root@amax conversion]# /bin/sh ../../libtool --tag=CC --mode=compile icc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../include -pthread -I/usr/lib64/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/libxml2 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/include/freetype2 -mmic -g -Wall -MT im_text.lo -MD -MP -MF .deps/im_text.Tpo -c -o im_text.lo im_text.c icc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../include -pthread -I/usr/lib64/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/libxml2 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/include/freetype2 -mmic -g -Wall -MT im_text.lo -MD -MP -MF .deps/im_text.Tpo -c im_text.c -fPIC -DPIC -o .libs/im_text.o /usr/include/pango-1.0/pango/pangoft2.h(26): catastrophic error: cannot open source file "fontconfig/fontconfig.h" #include <fontconfig/fontconfig.h> ^ compilation aborted for im_text.c (code 4) [root@amax conversion]# cd /usr/include/pango-1.0/pango/pango pango-attributes.h pango-enum-types.h pango-glyph.h pango-modules.h pango-utils.h pangoft2.h pango-bidi-type.h pango-features.h pango-gravity.h pango-ot.h pango.h pangox.h pango-break.h pango-font.h pango-item.h pango-renderer.h pangocairo.h pangoxft-render.h pango-context.h pango-fontmap.h pango-language.h pango-script.h pangofc-decoder.h pangoxft.h pango-coverage.h pango-fontset.h pango-layout.h pango-tabs.h pangofc-font.h pango-engine.h pango-glyph-item.h pango-matrix.h pango-types.h pangofc-fontmap.h [root@amax conversion]# /bin/sh ../../libtool --tag=CC --mode=compile icc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../include -pthread -I/usr/lib64/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/libxml2 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/include/freetype2 -g -Wall -MT im_text.lo -MD -MP -MF .deps/im_text.Tpo -c -o im_text.lo im_text.c icc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../include -pthread -I/usr/lib64/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/libxml2 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/include/freetype2 -g -Wall -MT im_text.lo -MD -MP -MF .deps/im_text.Tpo -c im_text.c -fPIC -DPIC -o .libs/im_text.o icc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../include -pthread -I/usr/lib64/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/libxml2 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/include/freetype2 -g -Wall -MT im_text.lo -MD -MP -MF .deps/im_text.Tpo -c im_text.c -o im_text.o >/dev/null 2>&1 [root@amax conversion]#
------------------------------------------------
icc is ok, error with icc -mmic
Any help?
Link Copied
Hi - It looks like the path to fontconfig.h is not found by the compiler. Where on the system is fontconfig.h. located? Try adding another -I option to point to that directory.
AmandaS (Intel) wrote:
Hi - It looks like the path to fontconfig.h is not found by the compiler. Where on the system is fontconfig.h. located? Try adding another -I option to point to that directory.
I tried to add -l/usr/include, still error
libtool: link: icpc -shared .libs/dummy.o .libs/dummy2.o -Wl,--whole-archive acquire/.libs/libacquire.a resample/.libs/libresample.a arithmetic/.libs/libarithmetic.a boolean/.libs/libboolean.a colour/.libs/libcolour.a conversion/.libs/libconversion.a convolution/.libs/libconvolution.a deprecated/.libs/libdeprecated.a cimg/.libs/libcimg.a format/.libs/libformat.a freq_filt/.libs/libfreq_filt.a histograms_lut/.libs/libhistograms_lut.a inplace/.libs/libinplace.a iofuncs/.libs/libiofuncs.a mask/.libs/libmask.a morphology/.libs/libmorphology.a mosaicing/.libs/libmosaicing.a other/.libs/libother.a relational/.libs/librelational.a video/.libs/libvideo.a -Wl,--no-whole-archive -Wl,-rpath,/usr/linux-k1om-4.7/x86_64-k1om-linux/lib/../lib64 -Wl,-rpath,/usr/linux-k1om-4.7/x86_64-k1om-linux/lib/../lib64 -lpng12 -lxml2 -lpangoft2-1.0 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lfftw3 -L/opt/intel/composer_xe_2013.5.192/compiler/lib/mic -L/usr/linux-k1om-4.7/linux-k1om/../lib/gcc/x86_64-k1om-linux/4.7.0 -L/usr/linux-k1om-4.7/linux-k1om/../lib/gcc -L/usr/linux-k1om-4.7/linux-k1om/../x86_64-k1om-linux/lib64 -L/usr/linux-k1om-4.7/linux-k1om/lib64 -L/usr/linux-k1om-4.7/linux-k1om/usr/lib64 -L/usr/linux-k1om-4.7/linux-k1om/lib -L/usr/linux-k1om-4.7/linux-k1om/usr/lib -limf -lirng -lm -lipgo -ldecimal -lcilkrts /usr/linux-k1om-4.7/x86_64-k1om-linux/lib/../lib64/libstdc++.so -lintlc -lsvml -lgcc -lgcc_s -lirc_s -ldl -lc -mmic -pthread -Wl,--export-dynamic -pthread -pthread -pthread -Wl,-soname -Wl,libvips.so.15 -o .libs/libvips.so.15.14.2
x86_64-k1om-linux-ld: cannot find -lpng12
x86_64-k1om-linux-ld: cannot find -lxml2
x86_64-k1om-linux-ld: cannot find -lpangoft2-1.0
x86_64-k1om-linux-ld: cannot find -lpango-1.0
x86_64-k1om-linux-ld: cannot find -lfreetype
x86_64-k1om-linux-ld: cannot find -lfontconfig
x86_64-k1om-linux-ld: cannot find -lgobject-2.0
x86_64-k1om-linux-ld: cannot find -lgmodule-2.0
x86_64-k1om-linux-ld: cannot find -lgthread-2.0
x86_64-k1om-linux-ld: cannot find -lglib-2.0
x86_64-k1om-linux-ld: cannot find -lfftw3
make[3]: *** [libvips.la] Error 1
make[3]: Leaving directory `xxxx/pkgs/apps/vips/src/libvips'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `xxx/pkgs/apps/vips/src/libvips'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `xxx/pkgs/apps/vips/src'
make: *** [all] Error 2
-------------
The libs are not found, such as png12,xml2 and pango-1.0.
I think I should recompile these libs with "icc -mmic", as they are compiled by "gcc" or "icc".
Yes, the k1om link ignores .o files built to target host.
Tim is right. You need to build all dependencies for target coprocessor with -mmic.
For more complete information about compiler optimizations, see our Optimization Notice.