Compiling error

Dear Jason,
I am compiling openfast3.0, but the following error appears(can not open mkl_intel_lp64.lib, etc), how can I solve it? I use VS2019 and Fortran2020 to compile.
Best regards
Jingyu, Bian
![6NF)PRYGZCC1A_]RW{13OK.png|970x166

Dear Jingyu,

Again, what is written to the “Output” window when you click “Build” in Visual Studio? The “Output” window is much more informative than the “Error List”.

Best regards,

Dear Jason,
The output information is attached below.
Best regards
已启动生成…
1>------ 已启动生成: 项目: FAST_Registry, 配置: Release Win32 ------
1>data.c
1>gen_c_types.c
1>gen_module_files.c
1>misc.c
1>my_strtok.c
1>registry.c
1>reg_parse.c
1>sym.c
1>symtab_gen.c
1>type.c
1>正在生成代码
1>Previous IPDB not found, fall back to full compilation.
1>All 75 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
1>已完成代码的生成
1>FAST_Registry.vcxproj → C:\Users\86151\Desktop\openfast-3.0.0\openfast-3.0.0\build\bin\Registry.exe
2>------ 已启动生成: 项目: MAP_dll, 配置: Release x64 ------
2>Performing Custom Build Tools
2>======================================================================
2>
2>----- FAST Registry --------------
2>----------------------------------------------------------
2>input file: …\modules\map\src\MAP_Registry.txt
2>opening …\modules\nwtc-library\src/Registry_NWTC_Library.txt
2>opening …\modules\map\src/MAP_Fortran_Registry.txt in usefrom mode
2>opening …\modules\nwtc-library\src/Registry_NWTC_Library.txt in usefrom mode
2>generating …\modules\map\src/MAP_Types.f90
2>CUSTOMBUILD : Registry warning : derived data type LinInitInp of type lin_initinputtype is not passed through C interface
2>CUSTOMBUILD : Registry warning : derived data type LinInitInp of type lin_initinputtype is not passed through F-C interface
2>CUSTOMBUILD : Registry warning : derived data type Ver of type progdesc is not passed through C interface
2>CUSTOMBUILD : Registry warning : derived data type LinInitOut of type lin_initoutputtype is not passed through C interface
2>CUSTOMBUILD : Registry warning : derived data type Ver of type progdesc is not passed through F-C interface
2>CUSTOMBUILD : Registry warning : derived data type LinInitOut of type lin_initoutputtype is not passed through F-C interface
2>CUSTOMBUILD : Registry warning : derived data type LinParams of type lin_paramtype is not passed through C interface
2>CUSTOMBUILD : Registry warning : derived data type LinParams of type lin_paramtype is not passed through F-C interface
2>CUSTOMBUILD : Registry warning : derived data type PtFairDisplacement of type meshtype is not passed through C interface
2>CUSTOMBUILD : Registry warning : derived data type PtFairDisplacement of type meshtype is not passed through F-C interface
2>CUSTOMBUILD : Registry warning : derived data type ptFairleadLoad of type meshtype is not passed through C interface
2>CUSTOMBUILD : Registry warning : derived data type ptFairleadLoad of type meshtype is not passed through F-C interface
2>
2>----- FAST Registry --------------
2>----------------------------------------------------------
2>input file: …\modules\map\src\MAP_Fortran_Registry.txt
2>opening …\modules\nwtc-library\src/Registry_NWTC_Library.txt
2>generating …\modules\map\src/MAP_Fortran_Types.f90
2>
2>Registry for MAP completed.
2> a
2>======================================================================
2>bstraux.c
2>C:\Users\86151\Desktop\openfast-3.0.0\openfast-3.0.0\modules\map\src\bstring\bstraux.c(1004,26): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
2>C:\Users\86151\Desktop\openfast-3.0.0\openfast-3.0.0\modules\map\src\bstring\bstraux.c(1017,13): warning C4267: “=”: 从“size_t”转换到“int”,可能丢失数据
2>bstrlib.c
2>C:\Users\86151\Desktop\openfast-3.0.0\openfast-3.0.0\modules\map\src\bstring\bstrlib.c(367,32): warning C4267: “函数”: 从“size_t”转换到“int”,可能丢失数据
2>dpmpar.c
2>enorm.c
2>enorm_u.c
2>lmder.c
2>lmpar.c
2>qrfac.c
2>qrsolv.c
2>freedata.c
2>jacobian.c
2>lineroutines.c
2>mapapi.c
2>C:\Users\86151\Desktop\openfast-3.0.0\openfast-3.0.0\modules\map\src\mapapi.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
2>maperror.c
2>mapinit.c
2>numeric.c
2>outputstream.c
2>residual.c
2>simclist.c
2>lmroutines.cc
2> 正在创建库 …\build\bin\MAP_x64.lib 和对象 …\build\bin\MAP_x64.exp
2>正在生成代码
2>Previous IPDB not found, fall back to full compilation.
2>All 293 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
2>已完成代码的生成
2>MAP_dll.vcxproj → C:\Users\86151\Desktop\openfast-3.0.0\openfast-3.0.0\build\bin\MAP_x64.dll
2>已完成生成项目“MAP_dll.vcxproj”的操作。
C:\Users\86151\Desktop\openfast-3.0.0\openfast-3.0.0\modules\nwtc-library\src\SysIVF.f90 : warning: Module ‘x64\Release\syssubs.mod’ is created by both ‘C:\Users\86151\Desktop\openfast-3.0.0\openfast-3.0.0\modules\nwtc-library\src\SysIVF.f90’ and ‘C:\Users\86151\Desktop\openfast-3.0.0\openfast-3.0.0\modules\nwtc-library\src\SysMatlabWindows.f90’.
3>------ 已启动生成: 项目: FASTlib, 配置: Release x64 ------
3>Performing Pre-Build Event…
3>‘git’ 不是内部或外部命令,也不是可运行的程序
3>或批处理文件。
3>‘git’ 不是内部或外部命令,也不是可运行的程序
3>或批处理文件。
3>Compiling with Intel(R) Visual Fortran Compiler 19.1.0.164 [Intel(R) 64]…
3>fdump.f
3>r1mach.f
3>xerprn.f
3>i1mach.f
3>d1mach.f
3>j4save.f
3>dlasrt2.f
3>fftpack4.1.f
3>xermsg.f
3>xercnt.f
3>xerhlt.f
3>dqk61.f
3>xgetua.f
3>qk61.f
3>slasrt2.f
3>xersve.f
3>VersionInfo.f90
3>SingPrec.f90
3>ED_UserSubs.f90
3>NWTC_Base.f90
3>RANLUX.f90
3>NWTC_SLATEC.f90
3>SysIVF.f90
3>C:\Users\86151\Desktop\openfast-3.0.0\openfast-3.0.0\modules\nwtc-library\src\SysIVF.f90(126): warning #7416: Fortran 2003 does not allow this intrinsic procedure. [ERF]
3>C:\Users\86151\Desktop\openfast-3.0.0\openfast-3.0.0\modules\nwtc-library\src\SysIVF.f90(136): warning #7416: Fortran 2003 does not allow this intrinsic procedure. [ERF]
3>C:\Users\86151\Desktop\openfast-3.0.0\openfast-3.0.0\modules\nwtc-library\src\SysIVF.f90(149): warning #7416: Fortran 2003 does not allow this intrinsic procedure. [ERF]
3>C:\Users\86151\Desktop\openfast-3.0.0\openfast-3.0.0\modules\nwtc-library\src\SysIVF.f90(166): warning #7416: Fortran 2003 does not allow this intrinsic procedure. [GAMMA]
3>C:\Users\86151\Desktop\openfast-3.0.0\openfast-3.0.0\modules\nwtc-library\src\SysIVF.f90(176): warning #7416: Fortran 2003 does not allow this intrinsic procedure. [GAMMA]
3>C:\Users\86151\Desktop\openfast-3.0.0\openfast-3.0.0\modules\nwtc-library\src\SysIVF.f90(186): warning #7416: Fortran 2003 does not allow this intrinsic procedure. [GAMMA]
3>C:\Users\86151\Desktop\openfast-3.0.0\openfast-3.0.0\modules\nwtc-library\src\SysIVF.f90(228): warning #7410: Fortran 2003 does not allow this keyword. [DIRECTORY]
3>C:\Users\86151\Desktop\openfast-3.0.0\openfast-3.0.0\modules\nwtc-library\src\SysIVF.f90(242): warning #7410: Fortran 2003 does not allow this keyword. [CARRIAGECONTROL]
3>C:\Users\86151\Desktop\openfast-3.0.0\openfast-3.0.0\modules\nwtc-library\src\SysIVF.f90(267): warning #7410: Fortran 2003 does not allow this keyword. [CONVERT]
3>C:\Users\86151\Desktop\openfast-3.0.0\openfast-3.0.0\modules\nwtc-library\src\SysIVF.f90(284): warning #7416: Fortran 2003 does not allow this intrinsic procedure. [EXIT]
3>NWTC_LAPACK.f90
3>NWTC_ScaLAPACK.f90
3>NWTC_Library_Types.f90
3>NWTC_IO.f90
3>NWTC_RandomNumber.f90
3>NWTC_Num.f90
3>iceLog.F90
3>ModMesh_Types.f90
3>iceInput.f90
3>ModMesh.f90
3>ModMesh_Mapping.f90
3>NWTC_Library.f90
3>WAMIT_Interp.f90
3>MoorDyn_Types.f90
3>ElastoDyn_Types.f90
3>SCDataEX_Types.f90
3>UserVSCont_KP.f90
3>IceDyn_Types.f90
3>FVW_VTK.f90
3>C:\Users\86151\Desktop\openfast-3.0.0\openfast-3.0.0\modules\aerodyn\src\FVW_VTK.f90(100): warning #7410: Fortran 2003 does not allow this keyword. [CONVERT]
3>PitchCntrl_ACH.f90
3>IfW_UniformWind_Types.f90
3>SS_Excitation_Types.f90
3>IfW_FFWind_Base_Types.f90
3>Current_Types.f90
3>FVW_BiotSavart.f90
3>StrucCtrl_Types.f90
3>IfW_FFWind_Base.f90
3>IfW_UserWind_Types.f90
3>WAMIT2_Types.f90
3>AeroAcoustics_TNO.f90
3>MoorDyn_IO.f90
3>IfW_HAWCWind_Types.f90
3>Yaml.f90
3>Waves_Types.f90
3>IfW_HAWCWind.f90
3>Current.f90
3>Morison_Types.f90
3>ExtPtfm_MCKF_Types.f90
3>FEM.f90
3>BeamDyn_Types.f90
3>Lidar_Types.f90
3>SS_Radiation_Types.f90
3>Conv_Radiation_Types.f90
3>UserSubs.f90
3>ServoDyn_Types.f90
3>FEAMooring_Types.f90
3>IfW_UniformWind.f90
3>IfW_BladedFFWind_Types.f90
3>IceDyn.f90
3>NWTC_FFTPACK.f90
3>IfW_TSFFWind_Types.f90
3>UserWaves.f90
3>BeamDyn_Subs.f90
3>SubDyn_Output_Params.f90
3>MAP_Fortran_Types.f90
3>IfW_4Dext_Types.f90
3>SubDyn_Types.f90
3>StrucCtrl.f90
3>OrcaFlexInterface_Types.f90
3>IceFloe_Types.f90
3>Waves2_Types.f90
3>DBEMT_Types.f90
3>MoorDyn.f90
3>SS_Excitation.f90
3>ElastoDyn_AllBldNdOuts_IO.f90
3>OpenFOAM_Types.f90
3>IfW_BladedFFWind.f90
3>Waves2_Output.f90
3>BeamDyn_BldNdOuts_IO.f90
3>AirfoilInfo_Types.f90
3>IceFloeBase.F90
3>IceFlexBase.F90
3>ExtPtfm_MCKF_IO.f90
3>AirfoilInfo.f90
3>FVW_VortexTools.f90
3>ServoDyn_IO.f90
3>BladedInterface.F90
3>IfW_TSFFWind.f90
3>Map_Types.f90
3>IfW_UserWind.f90
3>ExtPtfm_MCKF.f90
3>Conv_Radiation.f90
3>ElastoDyn_IO.f90
3>FEAM.f90
3>coupledCrushing.F90
3>SS_Radiation.f90
3>IfW_4Dext.f90
3>WAMIT_Types.f90
3>UnsteadyAero_Types.f90
3>OrcaFlexInterface.F90
3>C:\Users\86151\Desktop\openfast-3.0.0\openfast-3.0.0\modules\orcaflex-interface\src\OrcaFlexInterface.F90(114): warning #7025: This directive is not standard F2003.
3>C:\Users\86151\Desktop\openfast-3.0.0\openfast-3.0.0\modules\orcaflex-interface\src\OrcaFlexInterface.F90(127): warning #7025: This directive is not standard F2003.
3>C:\Users\86151\Desktop\openfast-3.0.0\openfast-3.0.0\modules\orcaflex-interface\src\OrcaFlexInterface.F90(145): warning #7025: This directive is not standard F2003.
3>InflowWind_Types.f90
3>IceFlexIEC.f90
3>ServoDyn.f90
3>InflowWind_Subs.f90
3>DBEMT.f90
3>Waves.f90
3>BeamDyn_IO.f90
3>IntegerList.f90
3>IceFlexISO.f90
3>SD_FEM.f90
3>crushingIEC.F90
3>ElastoDyn.f90
3>Morison_Output.f90
3>AeroAcoustics_Types.f90
3>map.f90
3>crushingISO.F90
3>UnsteadyAero.f90
3>SubDyn_Tests.f90
3>lockInISO.F90
3>FVW_Types.f90
3>Lidar.f90
3>BeamDyn.f90
3>WAMIT2.f90
3>intermittentCrushing.F90
3>InflowWind.f90
3>WAMIT.f90
3>C:\Users\86151\Desktop\openfast-3.0.0\openfast-3.0.0\modules\hydrodyn\src\WAMIT.f90(98): warning #6843: A dummy argument with an explicit INTENT(OUT) declaration is not given an explicit value. [INITOUT]
3>DWM_Types.f90
3>SubDyn_Output.f90
3>SubDyn.f90
3>HydroDyn_Types.f90
3>AeroAcoustics_IO.f90
3>BEMT_Types.f90
3>AeroDyn_Types.f90
3>Waves2.f90
3>AeroAcoustics.f90
3>Morison.f90
3>FVW_Subs.f90
3>FVW_IO.f90
3>BEMTUncoupled.f90
3>AeroDyn14_Types.f90
3>randomCrushing.F90
3>AeroDyn_AllBldNdOuts_IO.f90
3>DWM_Wake_Sub_ver2.f90
3>HydroDyn_Output.f90
3>FAST_Types.f90
3>SC_DataEx.f90
3>IceFloe.f90
3>FAST_Mods.f90
3>AeroDyn_IO.f90
3>FVW_Wings.f90
3>GenSubs.f90
3>mod_root1dim.f90
3>HydroDyn_Input.f90
3>DWM.f90
3>FVW_Tests.f90
3>OpenFOAM.f90
3>BEMT.f90
3>AeroSubs.f90
3>HydroDyn.f90
3>FVW.f90
3>AeroDyn.f90
3>AeroDyn14.f90
3>FAST_Solver.f90
3>FAST_Lin.f90
3>FAST_Subs.f90
3>Creating library…
3>
3>Build log written to “file://C:\Users\86151\Desktop\openfast-3.0.0\openfast-3.0.0\vs-build\FASTlib\x64\Release\BuildLog.htm”
3>FASTlib - 0 error(s), 15 warning(s)
4>------ 已跳过生成: 项目: OpenFAST-Simulink, 配置: Release_Matlab x64 ------
4>没有为此解决方案配置选中要生成的项目
5>------ 已启动生成: 项目: FAST, 配置: Release x64 ------
5>Performing Pre-Build Event…
5>‘git’ 不是内部或外部命令,也不是可运行的程序
5>或批处理文件。
5>‘git’ 不是内部或外部命令,也不是可运行的程序
5>或批处理文件。
5>Compiling with Intel(R) Visual Fortran Compiler 19.1.0.164 [Intel(R) 64]…
5>FAST_Prog.f90
5>Linking…
5>ipo: error #11018: Cannot open mkl_intel_lp64
5>ipo: error #11018: Cannot open mkl_sequential
5>ipo: error #11018: Cannot open mkl_core
5>ipo: warning #11021: unresolved SCOPY
5> Referenced in FASTlib_x64.lib(ExtPtfm_MCKF.obj)
5>ipo: warning #11021: unresolved SGEMV
5> Referenced in FASTlib_x64.lib(ExtPtfm_MCKF.obj)
5>ipo: warning #11021: unresolved DGBSV
5> Referenced in FASTlib_x64.lib(NWTC_LAPACK.obj)
5>ipo: warning #11021: unresolved SGBSV
5> Referenced in FASTlib_x64.lib(NWTC_LAPACK.obj)
5>ipo: warning #11021: unresolved DGEMM
5> Referenced in FASTlib_x64.lib(NWTC_LAPACK.obj)
5>ipo: warning #11021: unresolved SGEMM
5> Referenced in FASTlib_x64.lib(NWTC_LAPACK.obj)
5>ipo: warning #11021: unresolved DGESV
5> Referenced in FASTlib_x64.lib(NWTC_LAPACK.obj)
5>ipo: warning #11021: unresolved SGESV
5> Referenced in FASTlib_x64.lib(NWTC_LAPACK.obj)
5>ipo: warning #11021: unresolved DGETRF
5> Referenced in FASTlib_x64.lib(NWTC_LAPACK.obj)
5>ipo: warning #11021: unresolved SGETRF
5> Referenced in FASTlib_x64.lib(NWTC_LAPACK.obj)
5>ipo: warning #11021: unresolved DGETRS
5> Referenced in FASTlib_x64.lib(NWTC_LAPACK.obj)
5>ipo: warning #11021: unresolved SGETRS
5> Referenced in FASTlib_x64.lib(NWTC_LAPACK.obj)
5>ipo: warning #11021: unresolved DGETRI
5> Referenced in FASTlib_x64.lib(NWTC_LAPACK.obj)
5>ipo: warning #11021: unresolved SGETRI
5> Referenced in FASTlib_x64.lib(NWTC_LAPACK.obj)
5>ipo: warning #11021: unresolved DGGEV
5> Referenced in FASTlib_x64.lib(NWTC_LAPACK.obj)
5>ipo: warning #11021: unresolved SGGEV
5> Referenced in FASTlib_x64.lib(NWTC_LAPACK.obj)
5>ipo: warning #11021: unresolved DPOSV
5> Referenced in FASTlib_x64.lib(NWTC_LAPACK.obj)
5>ipo: warning #11021: unresolved SPOSV
5> Referenced in FASTlib_x64.lib(NWTC_LAPACK.obj)
5>ipo: warning #11021: unresolved DPPTRF
5> Referenced in FASTlib_x64.lib(NWTC_LAPACK.obj)
5>ipo: warning #11021: unresolved SPPTRF
5> Referenced in FASTlib_x64.lib(NWTC_LAPACK.obj)
5>ipo: warning #11021: unresolved DGESVD
5> Referenced in FASTlib_x64.lib(NWTC_LAPACK.obj)
5>ipo: warning #11021: unresolved SGESVD
5> Referenced in FASTlib_x64.lib(NWTC_LAPACK.obj)
5>ipo: warning #11021: unresolved DTPTTR
5> Referenced in FASTlib_x64.lib(NWTC_LAPACK.obj)
5>ipo: warning #11021: unresolved STPTTR
5> Referenced in FASTlib_x64.lib(NWTC_LAPACK.obj)
5>ipo: warning #11021: unresolved DGEMV
5> Referenced in FASTlib_x64.lib(FEM.obj)
5>ipo: error #11023: Not all components required for linking are present on command line
5>LINK : fatal error LNK1104: 无法打开文件“mkl_intel_lp64.lib”
5>
5>Build log written to “file://C:\Users\86151\Desktop\openfast-3.0.0\openfast-3.0.0\vs-build\FAST\x64\Release\BuildLog.htm”
5>FAST - 5 error(s), 25 warning(s)
========== 生成: 成功 3 个,失败 1 个,最新 0 个,跳过 1 个 ==========

Dear Jingyu,

Did you install the MKL libraries when you installed Visual Studio and the Intel Fortran compiler?

Similar questions were asked and answered on the issues page of the OpenFAST github repository:
github.com/OpenFAST/openfast/issues/322
github.com/OpenFAST/openfast/issues/328
github.com/OpenFAST/openfast/issues/566
github.com/OpenFAST/openfast/issues/638

Best regards,

I face with similar error and despite given links Im not able to fix it.
How I can move and fix this situation and OP did you solve your situation and how?

Hi Jingyu.Bian
Can you tell me how you solve this error, Im not able to fix it.

Brent and Zenia,

Errors such as “Cannot open mkl_intel_lp64” indicate that the math kernel library (MKL) may not have been properly installed with Intel Visual Fortran. If you get this error, you should check if MKL was installed, and if not, reinstall Intel Visual Fortran, making sure that you have selected to install the MKL in the process. You may be able to install MKL separately, but I do not know for sure.