run 'py meson.py build' got OSError: [WinError 123] 文件名、目录名或卷标语法不正确。 #2108
zhaokuohaha
started this conversation in
General
Replies: 1 comment
-
可以尝试在externals\meson\mesonbuild\dependencies\mpi.py中,将大概233行的self.link_args = ['-l' + os.path.join(libdir, 'msmpi')]改为self.link_args = ['-lmsmpi'],之后在meson.build开头中手动添加链接库目录 tmp_mpi_lib_path = 'C:/Program Files (x86)/Microsoft SDKs/MPI/Lib/x64' foreach lan : languages su2_deps += dependency('C:/Program Files (x86)/Microsoft SDKs/MPI/Lib/x64/msmpi.lib')add_project_link_arguments('-L' + tmp_mpi_lib_path, language: lan) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
When I build a parallel version of SU2 under Win10, I get an error after run
py meson.py build
, the error likeTraceback (most recent call last):
File "F:\suflow\resources\softwares\SU2\externals\meson\mesonbuild\mesonmain.py", line 146, in run
return options.run_func(options)
File "F:\suflow\resources\softwares\SU2\externals\meson\mesonbuild\msetup.py", line 294, in run
app.generate()
File "F:\suflow\resources\softwares\SU2\externals\meson\mesonbuild\msetup.py", line 185, in generate
self._generate(env)
File "F:\suflow\resources\softwares\SU2\externals\meson\mesonbuild\msetup.py", line 247, in _generate
intr.backend.generate()
File "F:\suflow\resources\softwares\SU2\externals\meson\mesonbuild\backend\ninjabackend.py", line 553, in generate
self.generate_target(t)
File "F:\suflow\resources\softwares\SU2\externals\meson\mesonbuild\backend\ninjabackend.py", line 900, in generate_target
elem = self.generate_link(target, outname, final_obj_list, linker, pch_objects, stdlib_args=stdlib_args)
File "F:\suflow\resources\softwares\SU2\externals\meson\mesonbuild\backend\ninjabackend.py", line 3062, in generate_link
dep_targets.extend(self.guess_external_link_dependencies(linker, target, commands, internal))
File "F:\suflow\resources\softwares\SU2\externals\meson\mesonbuild\backend\ninjabackend.py", line 2907, in guess_external_link_dependencies
search_dirs, static_patterns)
File "F:\suflow\resources\softwares\SU2\externals\meson\mesonbuild\backend\ninjabackend.py", line 2848, in guess_library_absolute_path
trial = CCompiler._get_file_from_list(self.environment, trial)
File "F:\suflow\resources\softwares\SU2\externals\meson\mesonbuild\compilers\mixins\clike.py", line 1036, in _get_file_from_list
if p.is_file():
File "C:\Users\zeng\AppData\Local\Programs\Python\Python37\lib\pathlib.py", line 1387, in is_file
return S_ISREG(self.stat().st_mode)
File "C:\Users\zeng\AppData\Local\Programs\Python\Python37\lib\pathlib.py", line 1183, in stat
return self._accessor.stat(self)
OSError: [WinError 123] 文件名、目录名或卷标语法不正确。: 'C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin\..\lib\gcc\x86_64-w64-mingw32\8.1.0\libC:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x64\msmpi.a'
I noticed that other people on Github have also raised this issue, but they are on the second step
ninja -C build install
when I got this error on the first steppy meson.py build
. so the solve solutions are not work for me.For issue #1471 I found this silimar proplem between 7.3.1
thanks!
To Reproduce
Please provide a config file and mesh for a minimal example that recreates the problem.
meson-log.txt
meson-info.json.txt
Desktop (please complete the following information):
OS: [win11 ]
C++ compiler and version: [ g++ (GCC) 8.1.0]
MPI implementation and version: [Microsoft MPI v10.1.2]
SU2 Version: [v7.5.1]
Other informations:
the full console output : console.txt
Beta Was this translation helpful? Give feedback.
All reactions