Unclear meson error when trying to build plugins on macOS
As of commit d922088e on MacOS:
$ make tests/tcg/plugins/libinsn.dylib.p/libinsn.dylib.symbols
[1/1] Generating symbol file tests/tcg/plugins/libinsn.dylib.p/libinsn.dylib.symbols
FAILED: tests/tcg/plugins/libinsn.dylib.p/libinsn.dylib.symbols
build.dir/pyvenv/bin/meson --internal symbolextractor build.dir tests/tcg/plugins/libinsn.dylib tests/tcg/plugins/libinsn.dylib tests/tcg/plugins/libinsn.dylib.p/libinsn.dylib.symbols
Traceback (most recent call last):
File "build.dir/pyvenv/bin/meson", line 8, in <module>
sys.exit(main())
~~~~^^
File "/opt/homebrew/lib/python3.13/site-packages/mesonbuild/mesonmain.py", line 293, in main
return run(sys.argv[1:], launcher)
File "/opt/homebrew/lib/python3.13/site-packages/mesonbuild/mesonmain.py", line 281, in run
return run_script_command(args[1], args[2:])
File "/opt/homebrew/lib/python3.13/site-packages/mesonbuild/mesonmain.py", line 222, in run_script_command
return module.run(script_args)
~~~~~~~~~~^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.13/site-packages/mesonbuild/scripts/symbolextractor.py", line 319, in run
gen_symbols(libfile, impfile, outfile, options.cross_host)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.13/site-packages/mesonbuild/scripts/symbolextractor.py", line 276, in gen_symbols
osx_syms(libfilename, outfilename)
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.13/site-packages/mesonbuild/scripts/symbolextractor.py", line 136, in osx_syms
result = [arr[match + 2], arr[match + 5]] # Libreoffice stores all 5 lines but the others seem irrelevant.
^^^^^
UnboundLocalError: cannot access local variable 'match' where it is not associated with a value
ninja: build stopped: subcommand failed.
make: *** [run-ninja] Error 1