Re: Compile fail on macos big sur - Mailing list pgsql-hackers

From zhang listar
Subject Re: Compile fail on macos big sur
Date
Msg-id CAEcwFGeXnuUm4nNm_ciCUiOOpVZqpnLxh2SKQzj9jsLFVjMpBQ@mail.gmail.com
Whole thread Raw
In response to Re: Compile fail on macos big sur  (Sergey Shinderuk <s.shinderuk@postgrespro.ru>)
List 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.

Sergey Shinderuk <s.shinderuk@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.

pgsql-hackers by date:

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