- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I'm new in intel fortran compiler, the error message arises when I try to install xmlf90:
ifort -qopenmp -static -o count m_count.o count.o -L/home/dompink/code_SCAOCC/code_SCAOCC/xmlf90-1.2g/macros//lib/ -lflib
ld: /home/dompink/intel/oneapi/compiler/2021.2.0/linux/bin/intel64/../../compiler/lib/intel64_lin/libiomp5.a(ompt-general.o): in function `ompt_pre_init':
(.text+0x29a2): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
The environment is
- ubuntu 20.04.02
- Intel fortran compiler classic
- the PATH added :
- export PATH=$PATH:/home/dompink/intel/oneapi/compiler/2021.2.0/linux/bin/intel64
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/dompink/intel/oneapi/compiler/2021.2.0/linux/compiler/lib/intel64
Another problem is
ld: cannot find -lmkl_intel_lp64
ld: cannot find-lmkl_intel_thread
ld: cannot find-lmkl_core
Can someone solve these problems?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm not a Linux expert, but I can tell you that this has nothing to do with the compiler or the Fortran language.
The message from ld about dlopen, if my understanding from what some web searches tell me is correct, is saying that if you want to use dlopen (and the library you're calling may do that), you can't link to the static libraries. So take out -static.
The second set of ld errors refer to Intel MKL libraries (a component of the Intel oneAPI Base Toolkit), and either MKL is not installed or the library path for it was not correctly set. I'm guessing that these are from a different set of build commands you didn't show us. On Linux, one has to explicitly name libraries you want to link to (the ifort driver supplies the compiler support libraries when it invokes ld), but for MKL you either have to name them or use -qmkl to have ifort supply a default set of library names. Something in your build DID ask for the MKL libraries, but they can't be found in LD_LIBRARY_PATH (they aren't in the same directory as the Fortran compiler libraries.)
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm not a Linux expert, but I can tell you that this has nothing to do with the compiler or the Fortran language.
The message from ld about dlopen, if my understanding from what some web searches tell me is correct, is saying that if you want to use dlopen (and the library you're calling may do that), you can't link to the static libraries. So take out -static.
The second set of ld errors refer to Intel MKL libraries (a component of the Intel oneAPI Base Toolkit), and either MKL is not installed or the library path for it was not correctly set. I'm guessing that these are from a different set of build commands you didn't show us. On Linux, one has to explicitly name libraries you want to link to (the ifort driver supplies the compiler support libraries when it invokes ld), but for MKL you either have to name them or use -qmkl to have ifort supply a default set of library names. Something in your build DID ask for the MKL libraries, but they can't be found in LD_LIBRARY_PATH (they aren't in the same directory as the Fortran compiler libraries.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks a lot! The second error is solved when I install Intel MKL libraries correctly

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