Thanks. It is the binuitls problem. I do "brew uninstall binutils" and
compile successfully.
Actually it is the lib $(which ranlib) -V problem.
The similar issue here: https://github.com/bitcoin/bitcoin/issues/20825

Sergey Shinderuk <s.shinde...@postgrespro.ru> 于2021年9月23日周四 下午4:03写道:

> On 23.09.2021 10:50, zhang listar wrote:
> > Thanks for your reply, I do make distclean and git clean -fdx, but it
> > does no help.
> >
> > the code: master, c7aeb775df895db240dcd6f47242f7e08899adfb
> > It looks like the macos issue, because of the ignoring of some lib, it
> > drives the compiling error.
>
> Maybe you could try adding -v to the problematic gcc command to see what
> really goes on.
>
> I see that gcc calls /usr/bin/ld, not binutils ld installed with
> Homebrew.  I saw an advice to `brew unlink binutils` somewhere.
>

Reply via email to