Issue in compiling postgres on latest macOS 14.1.1

2023-11-13 Thread Shaik Mohammad Mujeeb
Hi Team,

After updating to macOS 14.1.1, I am facing below error while compiling
postgres. Can someone help me in solving this?

ld: multiple errors: archive member '/' not a mach-o file in
'/src/port/libpgport.a'; archive member '/' not a mach-o file in
'/src/common/libpgcommon.a'
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[2]: *** [zic] Error 1
make[1]: *** [all-timezone-recurse] Error 2
make: *** [all-src-recurse] Error 2



Thanks & Regards,
Mujeeb


Re: Issue in compiling postgres on latest macOS 14.1.1

2023-11-14 Thread Shaik Mohammad Mujeeb
Hi Team,

As said by Tom Lane, I had some outdated binaries in my PATH. After
removing those outdated binaries from the PATH, I didn't face any errors in
postgres compilation.

Thank you so much for all your assistance.

Regards,
Mujeeb.

On Tue, Nov 14, 2023 at 1:29 AM Alban Hertroys  wrote:

>
> > On 13 Nov 2023, at 18:00, Tom Lane  wrote:
>
> (…)
>
> > * If you use MacPorts or Homebrew, maybe that's out of date?
> > Try removing the associated directories from your PATH to see
> > if it works better.
>
> Perhaps even worse; you had old binaries from an Intel architecture that
> were migrated onto a new ARM-based architecture? In that case the Homebrew
> uninstall scripts won’t even work anymore - at least not w/o Rosetta 2 - as
> they’re Intel-based too.
>
> A migration assistant can also work too well, I found.
>
> Alban Hertroys
> --
> There is always an exception to always.
>
>
>
>
>