CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > SU2 > SU2 Installation

Meson Error SU2 compilation

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

LinkBack Thread Tools Search this Thread Display Modes
Old   February 5, 2024, 09:37
Exclamation Meson Error SU2 compilation
New Member
Mustafa Lone
Join Date: Sep 2023
Posts: 1
Rep Power: 0
mustafalone is on a distinguished road
I ran using the following command
python build -Denable-autodiff=true -Denable-directdiff=true -Denable-pywrapper=true -Denable-tests=true
It didn't find the mpicc install and the rest ran fine but at the end i got the following error.

SU2 8.0.0 "Harrier"

  User defined options
    enable-autodiff  : true
    enable-directdiff: true
    enable-pywrapper : true
    enable-tests     : true

Found ninja.exe-1.9.0 at C:\su2code\ninja.exe
Traceback (most recent call last):
  File "C:\su2code\externals\meson\mesonbuild\", line 146, in run
    return options.run_func(options)
  File "C:\su2code\externals\meson\mesonbuild\", line 294, in run
  File "C:\su2code\externals\meson\mesonbuild\", line 185, in generate
  File "C:\su2code\externals\meson\mesonbuild\", line 247, in _generate
  File "C:\su2code\externals\meson\mesonbuild\backend\", line 553, in generate
  File "C:\su2code\externals\meson\mesonbuild\backend\", line 900, in generate_target
    elem = self.generate_link(target, outname, final_obj_list, linker, pch_objects, stdlib_args=stdlib_args)
  File "C:\su2code\externals\meson\mesonbuild\backend\", line 3062, in generate_link
    dep_targets.extend(self.guess_external_link_dependencies(linker, target, commands, internal))
  File "C:\su2code\externals\meson\mesonbuild\backend\", line 2907, in guess_external_link_dependencies
    search_dirs, static_patterns)
  File "C:\su2code\externals\meson\mesonbuild\backend\", line 2848, in guess_library_absolute_path
    trial = CCompiler._get_file_from_list(self.environment, trial)
  File "C:\su2code\externals\meson\mesonbuild\compilers\mixins\", line 1036, in _get_file_from_list
    if p.is_file():
  File "C:\Program Files\Python37\lib\", line 1344, in is_file
    return S_ISREG(self.stat().st_mode)
  File "C:\Program Files\Python37\lib\", line 1140, in stat
    return self._accessor.stat(self)
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'C:\\mingw64\\bin\\..\\lib\\gcc\\x86_64-w64-mingw32\\8.1.0\\libC:\\Program Files (x86)\\Microsoft SDKs\\MPI\\Lib\\x64\\msmpi.a'

ERROR: Unhandled python exception

    This is a Meson bug and should be reported!
It seems like it can't find the right files or is looking for the wrong files as I look through those directories I find

C:\mingw64\lib\gcc\x86_64-w64-mingw32\lib (not in the folder 8.1.0)
C:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x64\msmpi.lib
Not really sure what's happening when I try to run ninja I get this

ninja: error: loading '': The system cannot find the file specified.

ninja: Entering directory `build'
mustafalone is offline   Reply With Quote

Old   February 15, 2024, 14:43
New Member
Vanessa Chung
Join Date: Jan 2024
Posts: 3
Rep Power: 2
vanessachung is on a distinguished road
Hi, I am getting the exact same error. Did you happen to know what's going on? Thanks!
vanessachung is offline   Reply With Quote


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
A problem with compilation of OlaFlow Mahdi_Kh OpenFOAM 4 January 16, 2023 02:01
Error during compilation (python-wrapper) wimcardoen SU2 Installation 1 March 13, 2022 23:29
[] foam-extend-3.2 compilation on windows kirmaks OpenFOAM Installation 7 December 3, 2019 20:20
Compilation Error (V 1.7.1; Icc 12.1.0, OpenMPI 1.4.3) floydfan OpenFOAM Installation 7 December 20, 2011 05:56
Compilation Error.... Arnab Siemens 4 September 12, 2004 15:54

All times are GMT -4. The time now is 06:56.