[Bug bootstrap/87891] problems with building cross GCC for target powerpc64-darwin from powerpc-darwin
dougmencken at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Nov 6 07:19:00 GMT 2018
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
More information about the Gcc-bugs
mailing list