Re: Regression tests fail with musl libc because libpq.so can't be loaded
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Wolfgang Walther <walther@technowledgy.de>
Cc: Thomas Munro <thomas.munro@gmail.com>, Peter Eisentraut <peter@eisentraut.org>, Christophe Pettus <xof@thebuild.com>, Andrew Dunstan <andrew@dunslane.net>, PostgreSQL Bugs <pgsql-bugs@lists.postgresql.org>, Tom Lane <tgl@sss.pgh.pa.us>, Bruce Momjian <bruce@momjian.us>
Date: 2024-03-26T00:14:47Z
Lists: pgsql-bugs, pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Allow "make check"-style testing to work with musl C library.
- d82605bcd666 14.12 landed
- 8a92b70c11ba 17.0 landed
- 7651fd387697 16.3 landed
- 7124e7d528a8 12.19 landed
- 3c3f4fd741d0 15.7 landed
- 243e9953281f 13.15 landed
-
Fix compiler warnings on MSYS2
- 8c6d30f21139 13.0 cited
Hi, On 2024-03-22 08:55:52 +0100, Wolfgang Walther wrote: > Andres Freund: > > FWIW, independent of which fix we go with, I think we need a buildfarm animal > > using musl. Even better if one of the CI tasks can be made to use musl as > > well. > > I am already working with Andrew to set up a buildfarm animal to run Alpine > Linux/musl. I can look into the CI task as well. Are you suggesting to > change an existing task to run with Alpine/musl or to add a new task for it? > It would be docker image based for sure. I'd rather adapt one of the existing tasks, to avoid increasing CI costs unduly. The way we currently run CI for testing of not-yet-merged patches runs all tasks other than macos as full VMs, that turned out to be faster & cheaper. FWIW, except for one small issue, building postgres against musl works on debian and the tests pass if I install first. The small problem mentioned above is that on debian linux/fs.h isn't available when building with musl, which in turn causes src/bin/pg_upgrade/file.c to fail to compile. I assume that's not the case on "fully musl" distro? Greetings, Andres Freund