Re: Fix port/pg_iovec.h building extensions on x86_64-darwin

From: Wolfgang Walther <walther(at)technowledgy(dot)de>
To: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Fix port/pg_iovec.h building extensions on x86_64-darwin
Date: 2024-11-09 11:06:07
Message-ID: 8edf3c6b-f01b-4054-b943-6f92de4139b9@technowledgy.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Thomas Munro:
> Out of curiosity, is nixos deliberately using an old macOS deployment
> target or SDK, 10.something? I'm just wondering if our feature
> detection is working correctly on macOS/x86, because I'd expect real
> preadv/pwritev to be there from 11 onwards, and 11 is already out of
> support by Apple.

There has been a lot of work on the macOS SDK in nixpkgs lately, but it
seems that the default for x86-64 is still v10 [1], yes:

> x86_64-darwin uses the 10.12 SDK by default, but some software is not
> compatible with that version of the SDK. In that case, the 11.0 SDK
> used by aarch64-darwin is available for use on x86_64-darwin. [...]

It seems like the goal is to bump x86-64 to v11 in the next release
cycle [2].

Best,

Wolfgang

[1]: https://nixos.org/manual/nixpkgs/unstable/#sec-darwin
[2]:
https://discourse.nixos.org/t/on-the-future-of-darwin-sdks-or-how-you-can-stop-worrying-and-put-the-sdk-in-build-inputs/50574/11

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2024-11-09 11:35:32 Re: logical replication: restart_lsn can go backwards (and more), seems broken since 9.4
Previous Message Abhiman Panwar 2024-11-09 10:19:41 How to get started with contribution