CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2 > SU2 Installation

Error during Building from Source in Windows 11

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 27, 2023, 05:22
Exclamation Error during Building from Source in Windows 11
  #1
New Member
 
Aarib Irfan
Join Date: Mar 2020
Posts: 18
Rep Power: 6
Aarib is on a distinguished road
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?
Aarib is offline   Reply With Quote

Reply

Tags
error, installation, su2, windows

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using PengRobinsonGas EoS with sprayFoam Jabo OpenFOAM Running, Solving & CFD 36 July 16, 2024 04:52
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 04:30
Building from Source on Windows using Cygwin64 ericthefatguy SU2 2 May 12, 2015 19:23
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 17:02
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 13:41


All times are GMT -4. The time now is 20:49.