Skip to content
pi-c Check-in [061c21b2e4]
Login

Check-in [061c21b2e4]

Overview
Comment:Build with gcc, not only clang

gcc 13 refused the tree under -Werror: -Wformat-truncation fires on snprintf into the fixed error and display buffers, where a clipped message is the intended outcome, and the benchmark ignored freopen's result. The warning is now out of the fatal set, the benchmark fails its child when the redirect fails, and the README gains the build section it never had.

Running the suite with gcc on Linux also found two things clang's builds cannot: an ssize_t that the drain loop's guard always assigns but the compiler cannot prove, and a sql_text result in model resolution used only as a truth test and never freed (Linux LeakSanitizer; macOS does not detect leaks). Both are fixed.

test-pic passes with clang (230 cases) and with gcc 13 (228; the schema-3 migration case skips where the sqlite3 command is absent).

Timelines: family | ancestors | descendants | both | gcc-build
Files: files | file ages | folders
SHA3-256: 061c21b2e4cf69cdf7a4eb88208b5061c1abfdaf22d0744178ed25f9ba4bd6f5
User & Date: dlair on 2026-11-19 16:14:04.498
Other Links: branch diff | manifest | tags
Context
2026-11-19
16:16
Declare strptime for glibc

The model-catalog fetcher calls strptime and timegm. Darwin declares both under _DARWIN_C_SOURCE, which the build already sets; glibc keeps strptime behind _XOPEN_SOURCE/_GNU_SOURCE, so a Linux build stopped at an implicit declaration. _GNU_SOURCE is added to the build's feature macros; Darwin ignores it. check-in: 56507bd89c user: dlair tags: gcc-build

16:14
Build with gcc, not only clang

gcc 13 refused the tree under -Werror: -Wformat-truncation fires on snprintf into the fixed error and display buffers, where a clipped message is the intended outcome, and the benchmark ignored freopen's result. The warning is now out of the fatal set, the benchmark fails its child when the redirect fails, and the README gains the build section it never had.

Running the suite with gcc on Linux also found two things clang's builds cannot: an ssize_t that the drain loop's guard always assigns but the compiler cannot prove, and a sql_text result in model resolution used only as a truth test and never freed (Linux LeakSanitizer; macOS does not detect leaks). Both are fixed.

test-pic passes with clang (230 cases) and with gcc 13 (228; the schema-3 migration case skips where the sqlite3 command is absent). check-in: 061c21b2e4 user: dlair tags: gcc-build

16:06
Create new branch named "gcc-build" check-in: 626baaecb6 user: dlair tags: gcc-build
Changes