Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

icc compilation: Intel file not found

Gary_Mamon
Beginner
584 Views
  • I just installed Intel C++ Composer XE for Mac OS X - Intel in the standard way, by clicking on m_ccompxe_2011.10.328.dmg in my Downloads directory

I added the line [bash]source /opt/intel/composerxe/bin/compilervars.csh intel64[/bash]in the system tcsh initialization file/etc/csh.cshrc, launched a new X11 window and with[bash]printenv | grep -i intel[/bash]I got[bash]TBBROOT=/opt/intel/composer_xe_2011_sp1.10.328/tbb LIBRARY_PATH=/opt/intel/composer_xe_2011_sp1.10.328/compiler/lib:/opt/intel/composer_xe_2011_sp1.10.328/ipp/../compiler/lib:/opt/intel/composer_xe_2011_sp1.10.328/ipp/lib:/opt/intel/composer_xe_2011_sp1.10.328/compiler/lib:/opt/intel/composer_xe_2011_sp1.10.328/mkl/lib:/opt/intel/composer_xe_2011_sp1.10.328/tbb/lib DYLD_LIBRARY_PATH=/opt/intel/composer_xe_2011_sp1.10.328/compiler/lib:/opt/intel/composer_xe_2011_sp1.10.328/compiler/lib/intel64:/opt/intel/composer_xe_2011_sp1.10.328/ipp/../compiler/lib:/opt/intel/composer_xe_2011_sp1.10.328/ipp/lib:/opt/intel/composer_xe_2011_sp1.10.328/compiler/lib:/opt/intel/composer_xe_2011_sp1.10.328/mkl/lib:/opt/intel/composer_xe_2011_sp1.10.328/tbb/lib CPATH=/opt/intel/composer_xe_2011_sp1.10.328/mkl/include:/opt/intel/composer_xe_2011_sp1.10.328/tbb/include MKLROOT=/opt/intel/composer_xe_2011_sp1.10.328/mkl NLSPATH=/opt/intel/composer_xe_2011_sp1.10.328/compiler/lib/locale/en_US/%N:/opt/intel/composer_xe_2011_sp1.10.328/ipp/lib/locale/en_US/%N:/opt/intel/composer_xe_2011_sp1.10.328/mkl/lib/locale/%l_%t/%N INCLUDE=/opt/intel/composer_xe_2011_sp1.10.328/ipp/include:/opt/intel/composer_xe_2011_sp1.10.328/mkl/lib/locale/%l_%t/%N FPATH=/opt/intel/composer_xe_2011_sp1.10.328/mkl/include IPPROOT=/opt/intel/composer_xe_2011_sp1.10.328/ipp INTEL_LICENSE_FILE=/opt/intel/composer_xe_2011_sp1.10.328/licenses:/opt/intel/licenses:/Users/gam/intel/licenses:/Users/Shared/Library/Application Support/Intel/Licenses [/bash] So, all is OK.

  • But when I compile: [cpp]icc -O3 -no-prec-div -unroll -D_REENTRANT -DMKL_ILP64 -static-intel -openmp-link static -shared-libgcc -o scamp astrefcat.o astrsolve.o astrstats.o catout.o check.o colour.o astrcplot.o cplot.o photcplot.o crossid.o fft.o fgroup.o field.o fitswcs.o header.o main.o makeit.o match.o misc.o mosaic.o photsolve.o prefs.o proper.o samples.o threads.o xml.o -mkl ../src/fits/libfits.a ../src/wcs/libwcs_c.a -lplplotd -lm[/cpp] I get the error message: [cpp]ld: file not found: /usr/bin/icc-2011-base/compiler/lib/libmkl_intel_lp64.a[/cpp] The directory /usr/bin/icc-2011-base/compiler/lib/ is present but the file libmkl_intel_lp64.a is not. However the file is present in /opt/intel/composer_xe_2011_sp1.10.328/mkl/lib/
  • Is this a bug in the Intel installation procedure?
0 Kudos
2 Replies
Greeshma_Y_Intel
Employee
584 Views
Hi
Thanks for reporting. I was able to reproduce the problem. This issue is already being tracked in our internal bug tracking system. Issue id: DPD200177316.The issue seems to be that we are linking in libraries from the wrong path (compiler/lib instead of mkl/lib) when using -static-intel.
One option would be to link in the libraries yourself without using -static-intel option. You can refer to :

http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/to figure out the right libraries to link in.

Thanks

Greeshma

0 Kudos
Greeshma_Y_Intel
Employee
584 Views
This issue has been fixed in compiler version 12 update 12 and also in version 13.0. Please download the package from our Registration Center : https://registrationcenter.intel.com/. We believe that this release resolves this issue. However, if you still see the problem, please reopen this problem report.
0 Kudos
Reply