Re: Annoying build warnings from latest Apple toolchain

From: Andres Freund <andres(at)anarazel(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Annoying build warnings from latest Apple toolchain
Date: 2023-09-29 02:33:15
Message-ID: 20230929023315.yxmzvz7oyjjjqiah@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 2023-09-28 19:20:27 -0700, Andres Freund wrote:
> Thus the easiest fix looks to be to use this:
>
> diff --git a/meson.build b/meson.build
> index 5422885b0a2..16a2b0f801e 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -224,7 +224,7 @@ elif host_system == 'darwin'
> library_path_var = 'DYLD_LIBRARY_PATH'
>
> export_file_format = 'darwin'
> - export_fmt = '-exported_symbols_list=(at)0@'
> + export_fmt = '-Wl,-exported_symbols_list,@0@'
>
> mod_link_args_fmt = ['-bundle_loader', '@0@']
> mod_link_with_dir = 'bindir'
>
>
> I don't have anything older than Ventura to check though.

Attached is the above change and a commit to change CI over to Sonoma. Not
sure when we should switch, but it seems useful to include for testing
purposes at the very least.

Greetings,

Andres Freund

Attachment Content-Type Size
v1-0001-meson-macos-Correct-exported_symbols_list-syntax-.patch text/x-diff 1.0 KB
v1-0002-ci-macos-Switch-to-Sonoma.patch text/x-diff 1.6 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrei Lepikhov 2023-09-29 02:52:47 Re: Add the ability to limit the amount of memory that can be allocated to backends.
Previous Message Michael Paquier 2023-09-29 02:30:21 Re: The danger of deleting backup_label