meson/ninja are relatively recent, but apparently they don't do checks ahead of time to ensure that the current process has enough permissions to write to the install target

instead, it tries, lets it fail, and shows a stack trace. why?

ninja build log. there's a big python traceback, finishing with:

PermissionError: [Errno 13] Permission denied: '/usr/local/lib/x86_64-linux-gnu'

ERROR: Unhandled python OSError. This is probably not a Meson bug, but an issue with your build environment.
0

If you have a fediverse account, you can quote this note from your own instance. Search https://hachyderm.io/users/fasterthanlime/statuses/114199457434942521 on your instance and quote it. (Note that quoting is not supported in Mastodon.)