Skip to content

with get c.sqlite3: the facade gets no proofs — here "could not read the Conan Center recipe", on Arch a parse error in the amalgamation under the package's defines; 18 of 319 declared functions presented #2972

Closed

Description

@ehartford

Two independent reports of the same outcome for c.sqlite3 3.54.0: the facade has almost no proofs.

Here (macOS, with v0.16.0.8-gd2fe55dbf, 2026-11-02):

  facade: no proofs from the source of sqlite3/3.54.0: could not read the Conan Center recipe of sqlite3/3.54.0

The binary installs and the pin is added, but the proof engine never sees the source, so every function is raw.

On Arch (volkdude85/withlang-arch, VERIFICATION.md, three machines): the source is read but the amalgamation does not parse under the package build's defines:

1 unit(s) could not be read; a function only an unread unit defines is unproven:
  …/sqlite-amalgamation-3540100/sqlite3.c: parse error: invalid token at start of a preprocessor expression

Result: 18 of the 319 functions sqlite3.h declares reach the facade (3 safe, 15 raw); migrating sqlite3.c alone (no package defines) parses, so the failing expression is reachable only under the package's define set. libcurl (152 of 152) and zlib (95 of 95) present their whole public surface, so this is SQLite-specific.

Also from that report, worth fixing with it:

  • the facade report should state public-surface coverage (presented / declared in installed headers) in its summary line; the packager had to count headers by hand and got it wrong twice;
  • a library facade is handed the package's docs/examples/*.c (libcurl), each with its own main, reported as duplicate function definition for main: an entry point is per unit, never a project symbol, and a library facade should take the library target's units;
  • units generated at build time (tool_hugehelp.c) are counted among unreadable ones; they should be classified apart.

D51 §66 makes the SQLite facade the first thing that compiles against the real header; this is the gate between a user and that promise.

Activity

  1. added
    bug
    on Nov 2, 2026
  2. ehartford commented on Nov 3, 2026

    @ehartford
    ContributorAuthor

    Root cause (exact line): migrate_add_define (CiMigrate.w) turned a bare -DNAME into #define NAME (empty) where a C compiler means NAME=1; sqlite3.c line 26374 #if HAVE_LOCALTIME_R then preprocessed as #if with nothing to test, clang refused the unit, and the whole amalgamation was unreadable. The macOS report in the issue body ("could not read the Conan Center recipe") was a transient network failure; locally the Arch shape reproduces. On branch sqlite-proofs: -DNAME is NAME=1; the bridge's parse error carries file:line:col; WITH_KEEP_BUILD keeps the configured source tree; a migrator basic check pins both. Result with the fixed stage1: facade sqlite3: 303 functions, 34 presented safely, 269 raw; 0 unreadable (was 18 / 3 / 1 unreadable). The 269 raw are proof limits, not reading failures; the libcurl main and generated-unit items follow with #2980.

  3. added 2 commits that reference this issue on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions