| From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
|---|---|
| To: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | macOS + gcc + meson + --werror is broken |
| Date: | 2026-08-17 13:52:27 |
| Message-ID: | 7daab2c3-053a-4755-b1b5-9e78da25a587@eisentraut.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
$subject configuration now fails to build with
gcc-15 -o src/interfaces/libpq-oauth/libpq-oauth.dylib ...
ld: warning: -U option is redundant when using -undefined dynamic_lookup
ld: fatal warning(s) induced error (-fatal_warnings)
collect2: error: ld returned 1 exit status
This is because of a combination of gcc bug
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120515
which causes the ld warning, and the recent meson 1.12 change
https://mesonbuild.com/Release-notes-for-1-12-0.html#werrortrue-now-applies-to-the-linker-as-well
I was able to work around this by adding
ldflags += '-nodefaultexport'
in meson.build, as suggested in the gcc bug report. But that is an
undocumented option, so it seems bad.
Any ideas?
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bertrand Drouvot | 2026-08-17 13:52:49 | Re: basebackup: do not verify checksums on pages written before enabling checksums |
| Previous Message | Tom Lane | 2026-08-17 13:51:54 | Re: redundant double negation prevents IN-subquery pull-up and causes a slower SubPlan |