- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have just installed Intel® Parallel Studio XE Composer Edition for Fortran OS X* (m_fcompxe_2015.3.187.dmg), and I have just used it to compile my program on Mac OS 10.9.5 . It seems that there is no problem for compiling, creating the executable file (actually, there are still some warnings). However, error message came when I executed it... I really have no idea what is going on. Would you give me some comments on it ?
Here are some messages when I compile my program:
ifort -O2 -xSSSE3 -shared-intel -auto -openmp -c patom.f90 -L/opt/intel/mkl/lib/ -L/Users/mac/intel_ode/lib/intel64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -liode_intel64 -lm -I/opt/intel/mkl/include/intel64 -I/Users/mac/intel_ode/include
ifort -O2 -xSSSE3 -shared-intel -auto -openmp -c sub19.f90
ifort -O2 -xSSSE3 -shared-intel -auto -openmp -o b.e patom.o sub19.o -L/opt/intel/mkl/lib/ -L/Users/mac/intel_ode/lib/intel64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -liode_intel64 -lm -I/opt/intel/mkl/include/intel64 -I/Users/mac/intel_ode/include
ipo: warning #11062: /Users/mac/intel_ode/lib/intel64/libiode_intel64.a is an archive, but has no symbols (this can happen if ar is used where xiar is needed)
ld: warning: ignoring file /Users/mac/intel_ode/lib/intel64/libiode_intel64.a, file was built for archive which is not the architecture being linked (x86_64): /Users/mac/intel_ode/lib/intel64/libiode_intel64.a
Here are the error messages after I execute the executable file:
dyld: Library not loaded: libmkl_intel_lp64.dylib
Referenced from: /Users/mac/programming/Mac/patom2.2/./b.e
Reason: image not found
Trace/BPT trap: 5
p.s.: this program works when I compile it on the Linux using ifort.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There seems to be a problem with how iode_intel64.a was built, but you don't show the steps for that. The error message suggests that perhaps ar was used instead of xiar (if the library was compiled with -ipo), but that's just a guess.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve,
Thanks for your rely!
Now, I make my program(which is just print out "Hello") and makefile simpler, and also ignore the intel ODE solver subroutine:
Here is the messages when compiling
ifort -O2 -xSSSE3 -auto -c test.f90 -L/opt/intel/mkl/lib/ -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -I/opt/intel/mkl/include/intel64
ifort -O2 -xSSSE3 -auto -c sub19.f90
ifort -O2 -xSSSE3 -auto -o b.e test.o sub19.o -L/opt/intel/mkl/lib/ -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -I/opt/intel/mkl/include/intel64
Again, the executable can be created. However, when I execute it, it fails.
Here is the error message:
dyld: Library not loaded: libmkl_intel_lp64.dylib
Referenced from: /Users/mac/programming/Mac/test/./b.e
Reason: image not found
Trace/BPT trap: 5
Do you know what is the problem???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You probably need to set LD_LIBRARY_PATH to include MKL. I know this is needed on Linux, not sure if the variable is the same name on OS X. I am moving your question to the MKL forum where the experts there can help you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please check the environment variable DYLD_LIBRARY_PATH. It should contain the file directory where libmkl_intel_lp64.dylib can be found.
--Lorri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve and Lorri,
I am grateful for your relies! It works!! Thank you very much!!!
Besides, I have one more question about the ifort for Mac. I used to set "mcmodel" for my code. However, it seems that ifort for Mac does not support this option. Here is the error message:
ifort -O2 -xSSSE3 -mcmodel=medium -shared-intel -auto -openmp -c test.f90 -L/opt/intel/composer_xe_2015.3.187/mkl/lib -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -I/opt/intel/composer_xe_2015.3.187/mkl/include
ifort: command line warning #10152: option '-mcmodel medium' not supported
ifort -O2 -xSSSE3 -mcmodel=medium -shared-intel -auto -openmp -c sub19.f90
ifort: command line warning #10152: option '-mcmodel medium' not supported
ifort -O2 -xSSSE3 -mcmodel=medium -shared-intel -auto -openmp -o b.e test.o sub19.o -L/opt/intel/composer_xe_2015.3.187/mkl/lib -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -I/opt/intel/composer_xe_2015.3.187/mkl/include
ifort: command line warning #10152: option '-mcmodel medium' not supported
But, I did see this option in the manual!! Would you tell me why I cannot use it in ifort for Mac ? (it works when I compile it in Linux)
Thank you!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OS X doesn't need (nor support) -mcmodel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve Lionel (Intel) wrote:
OS X doesn't need (nor support) -mcmodel.
Does that mean that, in effect, mcmodel=medium (or something else) is the default and only option for Mac?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As I understand it, yes. At least medium, if not large.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Steve.
We are supposed to addressed the link problem : dyld: Library not loaded: libmkl_intel_lp64.dylib in user guide or some articles.
I found one:
https://software.intel.com/en-us/articles/quick-link-intel-mkl-in-xcode-ide-a-fortran-sample
6. Troubleshooting
dyld: Library not loaded: libmkl_intel_lp64.dylib
Please either set the environment variable DYLD_LIBRARY_PATH in Xcode environment as step 5 or use mkl environment setting tool before run the executable file in Command line windows, i.e .
>source /opt/intel/composer_xe_2013/mkl/bin/mklvars.sh intel 64
> executable
Best Regards,
Ying
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you very much Ying!!!
It works ~ !!

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page