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 07:50:06
Message-ID: CAEcwFGd2BgNmmhWRur_Eo-1SK03fCtdp99WEjPHmiSQ-tQQ=wg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

Sergey Shinderuk <s(dot)shinderuk(at)postgrespro(dot)ru> 于2021年9月23日周四 下午3:35写道:

> Hi,
>
> On 23.09.2021 10:09, zhang listar wrote:
> > Hi, guys, I encount a problem on compiling pssql, the environment is:
> > os: macos big sur version 11.5.2 (20G95)
> > compiler: gcc-11 (Homebrew GCC 11.2.0) 11.2.0
>
> I've just tried building with gcc-11 on Catalina (yes, it's time to
> upgrade) and it went fine, no warnings.
>
> Maybe `git clean -fdx` would help? (Be careful, though, it removes any
> changes you may have maid.)
>
>
> > /usr/local/bin/gcc-11 -Wall -Wmissing-prototypes -Wpointer-arith
> > -Wdeclaration-after-statement -Werror=vla -Wendif-labels
> > -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type
> > -Wformat-security -fno-strict-aliasing -fwrapv
> > -fexcess-precision=standard -Wno-format-truncation
> > -Wno-stringop-truncation -O2 zic.o -L../../src/port -L../../src/common
> > -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk
> > -L/usr/local/opt/binutils/lib -Wl,-dead_strip_dylibs -lpgcommon
> > -lpgport -lz -lreadline -lm -o zic
>
> Here is what I have:
>
> /usr/local/bin/gcc-11 -Wall -Wmissing-prototypes -Wpointer-arith
> -Wdeclaration-after-statement -Werror=vla -Wendif-labels
> -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type
> -Wformat-security -fno-strict-aliasing -fwrapv
> -fexcess-precision=standard -Wno-format-truncation
> -Wno-stringop-truncation -g -O2 zic.o -L../../src/port
> -L../../src/common -isysroot
> /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
> -Wl,-dead_strip_dylibs -lpgcommon -lpgport -lz -lreadline -lm -o zic
>
> Looks the same, and gives no warnings.
>
> Just in case, I configured like that:
>
> ./configure --prefix=$(cd ..;pwd)/install-gcc-11 --enable-cassert
> --enable-debug --enable-tap-tests CC=/usr/local/bin/gcc-11
>
> Hope that helps.
>
> --
> Sergey Shinderuk https://postgrespro.com/
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Nancarrow 2021-09-23 07:59:13 Re: Added schema level support for publication.
Previous Message Sergey Shinderuk 2021-09-23 07:35:44 Re: Compile fail on macos big sur