https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87891
--- Comment #7 from Douglas Mencken <dougmencken at gmail dot com> ---
So it’s not enough to just softlink ranlib, which is nothing more than alias to
libtool, and libtool sees it is invoked as ranlib, and fails to work as
"ranlib" when it’s powerpc64-unknown-darwin-ranlib
$ ls -l /usr/bin/ranlib
lrwxr-xr-x 1 root wheel 7 Jul 9 2014 /usr/bin/ranlib -> libtool
That’s what you need to use
sudo rm /usr/bin/powerpc64-unknown-darwin-ranlib
sudo cat << EOF > /usr/bin/powerpc64-unknown-darwin-ranlib
#!/bin/sh
exec ranlib \${1+"\$@"}
EOF
sudo chmod +x /usr/bin/powerpc64-unknown-darwin-ranlib