This is an auto-filled bug because media-libs/rtaudio calls ar directly.
The issue was originally discovered on arm64, but it may be reproducible on other arches as well.
If you think that a different summary clarifies the issue better, feel free to change it.
Attached build log and emerge --info.
If you think it doesn't make sense fix these type of issues, I'd like to point out that won't be possible use a different AR implementation (like llvm-ar) by setting the AR variable. So this issue has been reproduced by setting the AR variable to aarch64-unknown-linux-gnu-ar and by removing the /usr/bin/ar binary.
Created attachment 635998 [details]
build log and emerge --info
Created attachment 679287 [details, diff]
Attempt at a fix
Please try this patch, I applied it and moved /usr/bin/ar out of the way temporarily and the build succeeded.
Hello, thanks for the patch. I believe you can speed up the process by making a pull-request via Github.
ci has reproduced this issue with version 5.2.0 - Updating summary.