1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
|
Cannot build QEMU on MSYS2 on Windows 10 22H2
Description of problem:
I have followed build instructions on Wiki, section Native builds with MSYS2. MSYS2 and other tools are installed without any errors. But when run `./configure --enable-sdl --enable-gtk`, I have this error that I have never seen before:
```
# ./configure --enable-sdl --enable-gtk
Using './build' as the directory for build output
ln: failed to create symbolic link 'aarch64-softmmu/qemu-system-aarch64.exe': No such file or directory
ln: failed to create symbolic link 'alpha-softmmu/qemu-system-alpha.exe': No such file or directory
ln: failed to create symbolic link 'arm-softmmu/qemu-system-arm.exe': No such file or directory
ln: failed to create symbolic link 'avr-softmmu/qemu-system-avr.exe': No such file or directory
ln: failed to create symbolic link 'cris-softmmu/qemu-system-cris.exe': No such file or directory
ln: failed to create symbolic link 'hppa-softmmu/qemu-system-hppa.exe': No such file or directory
ln: failed to create symbolic link 'i386-softmmu/qemu-system-i386.exe': No such file or directory
ln: failed to create symbolic link 'loongarch64-softmmu/qemu-system-loongarch64.exe': No such file or directory
ln: failed to create symbolic link 'm68k-softmmu/qemu-system-m68k.exe': No such file or directory
ln: failed to create symbolic link 'microblaze-softmmu/qemu-system-microblaze.exe': No such file or directory
ln: failed to create symbolic link 'microblazeel-softmmu/qemu-system-microblazeel.exe': No such file or directory
ln: failed to create symbolic link 'mips-softmmu/qemu-system-mips.exe': No such file or directory
ln: failed to create symbolic link 'mips64-softmmu/qemu-system-mips64.exe': No such file or directory
ln: failed to create symbolic link 'mips64el-softmmu/qemu-system-mips64el.exe': No such file or directory
ln: failed to create symbolic link 'mipsel-softmmu/qemu-system-mipsel.exe': No such file or directory
ln: failed to create symbolic link 'nios2-softmmu/qemu-system-nios2.exe': No such file or directory
ln: failed to create symbolic link 'or1k-softmmu/qemu-system-or1k.exe': No such file or directory
ln: failed to create symbolic link 'ppc-softmmu/qemu-system-ppc.exe': No such file or directory
ln: failed to create symbolic link 'ppc64-softmmu/qemu-system-ppc64.exe': No such file or directory
ln: failed to create symbolic link 'riscv32-softmmu/qemu-system-riscv32.exe': No such file or directory
ln: failed to create symbolic link 'riscv64-softmmu/qemu-system-riscv64.exe': No such file or directory
ln: failed to create symbolic link 'rx-softmmu/qemu-system-rx.exe': No such file or directory
ln: failed to create symbolic link 's390x-softmmu/qemu-system-s390x.exe': No such file or directory
ln: failed to create symbolic link 'sh4-softmmu/qemu-system-sh4.exe': No such file or directory
ln: failed to create symbolic link 'sh4eb-softmmu/qemu-system-sh4eb.exe': No such file or directory
ln: failed to create symbolic link 'sparc-softmmu/qemu-system-sparc.exe': No such file or directory
ln: failed to create symbolic link 'sparc64-softmmu/qemu-system-sparc64.exe': No such file or directory
ln: failed to create symbolic link 'tricore-softmmu/qemu-system-tricore.exe': No such file or directory
ln: failed to create symbolic link 'x86_64-softmmu/qemu-system-x86_64.exe': No such file or directory
ln: failed to create symbolic link 'xtensa-softmmu/qemu-system-xtensa.exe': No such file or directory
ln: failed to create symbolic link 'xtensaeb-softmmu/qemu-system-xtensaeb.exe': No such file or directory
The Meson build system
Version: 1.2.3
Source dir: C:/msys64/home/DuyThanh/qemu-ios
Build dir: C:/msys64/home/DuyThanh/qemu-ios/build
Build type: native build
Project name: qemu
Project version: 7.2.50
C compiler for the host machine: cc -m64 -mcx16 (gcc 13.2.0 "cc (Rev2, Built by MSYS2 project) 13.2.0")
C linker for the host machine: cc -m64 -mcx16 ld.bfd 2.41
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program scripts/symlink-install-tree.py found: YES (C:/msys64/mingw64/bin/python.exe C:/msys64/home/DuyThanh/qemu-ios/scripts/symlink-install-tree.py)
Program sh found: YES (C:\msys64\usr\bin/sh.EXE)
Program python3 found: YES (C:/msys64/mingw64/bin/python.exe)
Program bzip2 found: YES (C:\msys64\mingw64\bin/bzip2.EXE)
Program iasl found: NO
Compiler for C supports link arguments -Wl,-z,relro: NO
Compiler for C supports link arguments -Wl,-z,now: NO
Compiler for C supports link arguments -Wl,--no-seh: YES
Compiler for C supports link arguments -Wl,--nxcompat: YES
C++ compiler for the host machine: c++ -m64 -mcx16 (gcc 13.2.0 "c++ (Rev2, Built by MSYS2 project) 13.2.0")
C++ linker for the host machine: c++ -m64 -mcx16 ld.bfd 2.41
Compiler for C++ supports link arguments -Wl,--warn-common: YES
Program cgcc found: NO
Library m found: YES
Run-time dependency threads found: YES
Traceback (most recent call last):
File "C:/msys64/mingw64/lib/python3.11/site-packages/mesonbuild/mesonmain.py", line 194, in run
return options.run_func(options)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:/msys64/mingw64/lib/python3.11/site-packages/mesonbuild/msetup.py", line 358, in run
app.generate()
File "C:/msys64/mingw64/lib/python3.11/site-packages/mesonbuild/msetup.py", line 183, in generate
return self._generate(env, capture, vslite_ctx)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:/msys64/mingw64/lib/python3.11/site-packages/mesonbuild/msetup.py", line 228, in _generate
intr.run()
File "C:/msys64/mingw64/lib/python3.11/site-packages/mesonbuild/interpreter/interpreter.py", line 3002, in run
super().run()
File "C:/msys64/mingw64/lib/python3.11/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 164, in run
self.evaluate_codeblock(self.ast, start=1)
File "C:/msys64/mingw64/lib/python3.11/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 190, in evaluate_codeblock
raise e
File "C:/msys64/mingw64/lib/python3.11/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 182, in evaluate_codeblock
self.evaluate_statement(cur)
File "C:/msys64/mingw64/lib/python3.11/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 198, in evaluate_statement
self.assignment(cur)
File "C:/msys64/mingw64/lib/python3.11/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 635, in assignment
value = self.evaluate_statement(node.value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:/msys64/mingw64/lib/python3.11/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 200, in evaluate_statement
return self.method_call(cur)
^^^^^^^^^^^^^^^^^^^^^
File "C:/msys64/mingw64/lib/python3.11/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 550, in method_call
res = obj.method_call(method_name, args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:/msys64/mingw64/lib/python3.11/site-packages/mesonbuild/interpreterbase/baseobjects.py", line 94, in method_call
return method(args, kwargs)
^^^^^^^^^^^^^^^^^^^^
File "C:/msys64/mingw64/lib/python3.11/site-packages/mesonbuild/interpreterbase/decorators.py", line 109, in wrapped
ret = f(*wrapped_args, **wrapped_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:/msys64/mingw64/lib/python3.11/site-packages/mesonbuild/interpreterbase/decorators.py", line 277, in wrapper
return f(*nargs, **wrapped_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:/msys64/mingw64/lib/python3.11/site-packages/mesonbuild/interpreterbase/decorators.py", line 596, in wrapper
return f(*wrapped_args, **wrapped_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:/msys64/mingw64/lib/python3.11/site-packages/mesonbuild/interpreter/compiler.py", line 635, in find_library_method
linkargs = self.compiler.find_library(libname, self.environment, search_dirs, libtype)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:/msys64/mingw64/lib/python3.11/site-packages/mesonbuild/compilers/mixins/clike.py", line 1191, in find_library
return self._find_library_impl(libname, env, extra_dirs, code, libtype, lib_prefix_warning)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:/msys64/mingw64/lib/python3.11/site-packages/mesonbuild/compilers/mixins/clike.py", line 1180, in _find_library_impl
value = self._find_library_real(libname, env, extra_dirs, code, libtype, lib_prefix_warning)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:/msys64/mingw64/lib/python3.11/site-packages/mesonbuild/compilers/mixins/clike.py", line 1158, in _find_library_real
for d in itertools.chain(extra_dirs, self.get_library_dirs(env, elf_class)):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:/msys64/mingw64/lib/python3.11/site-packages/mesonbuild/compilers/mixins/clike.py", line 261, in get_library_dirs
return self._get_library_dirs(env, elf_class).copy()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:/msys64/mingw64/lib/python3.11/site-packages/mesonbuild/compilers/mixins/clike.py", line 220, in _get_library_dirs
dirs = self.get_compiler_dirs(env, 'libraries')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:/msys64/mingw64/lib/python3.11/site-packages/mesonbuild/compilers/mixins/gnu.py", line 515, in get_compiler_dirs
return self._split_fetch_real_dirs(line.split('=', 1)[1])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:/msys64/mingw64/lib/python3.11/site-packages/mesonbuild/compilers/mixins/gnu.py", line 497, in _split_fetch_real_dirs
if pobj.exists():
^^^^^^^^^^^^^
File "C:/msys64/mingw64/lib/python3.11/pathlib.py", line 1237, in exists
self.stat()
File "C:/msys64/mingw64/lib/python3.11/pathlib.py", line 1015, in stat
return os.stat(self, follow_symlinks=follow_symlinks)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [WinError 1005] The volume does not contain a recognized file system.
Please make sure that all required file system drivers are loaded and that the volume is not corrupted: 'D:/a/msys64/mingw64/lib/x86_64-w64-mingw32/13.2.0'
ERROR: Unhandled python OSError. This is probably not a Meson bug, but an issue with your build environment.
ERROR: meson setup failed
```
Steps to reproduce:
1. Install MSYS2 and follow the wiki page
2. Git clone
3. Run configure then error
Additional information:
No
|