This is an auto-filled bug because sys-libs/libsemanage calls ranlib directly.
The issue was originally discovered on arm64, but it may be reproducible on other arches as well.
Attached build log and emerge --info.
To reproduce this issue you may want to temporarily move the /usr/bin/ranlib binary.
Created attachment 633582 [details]
build log and emerge --info