- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ld: cannot find -lintrins
gmake: *** [run2d.Linux.Intel.Intel.ex] Error 1
# FC := ifc -cm
FC := ifort -cm
fC := $(FC) -cm
FDEBF += -g
fDEBF += -g
FOPTF += -g
fOPTF += -g
FOPTF += -O2
# FOPTF += -axK
fOPTF += -O2
# fOPTF += -axK
fDEBF += -w
fOPTF += -w
ifneq ($(DIM),3)
FDEBF += -CB -CU -CA
fDEBF += -CB -CU -CA
endif
__ifc_version := $(shell $(FC) -V 2>&1 1>/dev/null | grep Version)
override XTRALIBS += -lintrins -lIEPCF90 -lF90 -limf -lcprts -lcxa -lirc
ifeq ($(findstring Version 5.0.1, $(__ifc_version)), Version 5.0.1)
IFC_VERSION := 5.0.1
IFC_MAJOR_VERSION := 5
IFC_MINOR_VERSION := 0
LIBRARY_LOCATIONS += $(IA32ROOT)/lib
override XTRALIBS += $(IA32ROOT)/lib/icrt.link
else
ifeq ($(findstring Version 6.0, $(__ifc_version)), Version 6.0)
IFC_VERSION := 6.0
IFC_MAJOR_VERSION := 6
IFC_MINOR_VERSION := 0
LIBRARY_LOCATIONS += /opt/intel/compiler60/ia32/lib
else
ifeq ($(findstring Version 7, $(__ifc_version)), Version 7)
IFC_MAJOR_VERSION := 7
ifeq ($(findstr Version 7.0, $(__ifc_version)), 7.0)
IFC_VERSION := 7.0
IFC_MINOR_VERSION := 0
else
ifeq ($(findstr Version 7.1, $(__ifc_version)), 7.1)
IFC_VERSION := 7.1
IFC_MINOR_VERSION := 1
endif
endif
LIBRARY_LOCATIONS += /opt/intel/compiler70/ia32/lib
endif
endif
endif
endif
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you need to know exactly the command passed to ld by ifort with the options you have chosen, use ifort to link a program, giving those options, including -# to get a verbose screen display.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
with
override XTRALIBS += -limf -lcprts -lcxa -lirc -lifcore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Tim18,
I'm getting thesame error in an IA64 Linux cluster after compiling with Intel version 9.0, but I didn't understand how to set LD_LIBRARY_PATHin my environment before compiling. Can you give a clue about how to find the correctpath for lintrins library?
Thanks,
Juan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The ifortvars scripts in the compiler installation should present a correct example how to set the PATH variables for ifort, unless your installation was moved after installing. The previous poster was describing a Makefile which disregarded advice not to bury specific compiler version dependent library names in the build.
If you are looking for a libintrins from an Intel compiler, there isn't such a library in currently supported versions. The ifort scripts include the names of the current libraries, and you shouldn't normally be second guessing them at this level.

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