Re: Compile fail on macos big sur

From: zhang listar <zhanglinuxstar(at)gmail(dot)com>
To: Sergey Shinderuk <s(dot)shinderuk(at)postgrespro(dot)ru>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Compile fail on macos big sur
Date: 2021-09-23 09:05:47
Message-ID: CAEcwFGeXnuUm4nNm_ciCUiOOpVZqpnLxh2SKQzj9jsLFVjMpBQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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(dot)shinderuk(at)postgrespro(dot)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.
>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Joe Wildish 2021-09-23 09:33:32 Re: [PATCH] Allow queries in WHEN expression of FOR EACH STATEMENT triggers
Previous Message Drouvot, Bertrand 2021-09-23 08:44:16 Re: [BUG] Logical replication failure "ERROR: could not map filenode "base/13237/442428" to relation OID" with catalog modifying txns