March 27, 2023, 05:22
|
Error during Building from Source in Windows 11
|
#1
|
New Member
Aarib Irfan
Join Date: Mar 2020
Posts: 18
Rep Power: 6
|
I need SU2 to perform adjoint optimization but I cannot seem to compile it no matter what I do. I've been trying it for over a week with no luck. I have followed all the steps on their website, installed all the prerequisite and I'm still getting the same error no matter what.
Code:
[2/641] Linking target externals/cgns/hdf5/H5detect.exe
FAILED: externals/cgns/hdf5/H5detect.exe
"cc" -o externals/cgns/hdf5/H5detect.exe externals/cgns/hdf5/H5detect.exe.p/H5detect.c.obj "-Wl,--allow-shlib-undefined" "-Wl,-O1" "-Wl,--start-group" "C:/msys64/mingw64/lib/libz.dll.a" "-lC:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x64\msmpi" "-Wl,--subsystem,console" "-lkernel32" "-luser32" "-lgdi32" "-lwinspool" "-lshell32" "-lole32" "-loleaut32" "-luuid" "-lcomdlg32" "-ladvapi32" "-Wl,--end-group"
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lC:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x64\msmpi: Invalid argument
collect2.exe: error: ld returned 1 exit status
[5/641] Compiling C object externals/cgns/hdf5/libsu2hdf5.a.p/H5HFcache.c.obj
../externals/cgns/hdf5/H5HFcache.c: In function 'H5HF__cache_hdr_serialize':
../externals/cgns/hdf5/H5HFcache.c:745:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
745 | hdr->f = f;
| ^
../externals/cgns/hdf5/H5HFcache.c: In function 'H5HF__cache_iblock_serialize':
../externals/cgns/hdf5/H5HFcache.c:1331:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
1331 | hdr->f = f;
| ^
[50/641] Compiling C object externals/cgns/hdf5/libsu2hdf5.a.p/H5Iint.c.obj
ninja: build stopped: subcommand failed.
I have specified MPI path in the environment and mingw64 is installed as well. What can I do to resolve this error?
|
|
|