chore(wolf): checkpoint buglog.json (978 bugs)

This commit is contained in:
Rongsong Shen 2026-08-19 10:28:42 +00:00
parent 4dcfa80ae8
commit 6d6321f2f9
No known key found for this signature in database
GPG key ID: 5BCDAAE0123E9FE2

View file

@ -17640,6 +17640,28 @@
],
"occurrences": 1,
"last_seen": "2026-08-19T08:00:00Z"
},
{
"id": "bug-1597",
"timestamp": "2026-08-19T00:00:00Z",
"error_message": "backend/reconnect.go:6:10: fatal error: client.h: No such file or directory (compilation terminated) -> make: *** [Makefile:33: build-server] Error 1",
"file": "src/frontend/Makefile (build-server target)",
"root_cause": "build-server's recipe is a bare `cd apiserver && go build -o /tmp/apiserver ./cmd/main.go` with no CGO_CFLAGS/CGO_LDFLAGS, so cgo has no -I path to src/include (client.h) or BUILD_DIR/lib (controller.capnp.h) and no -L/-l for libxce + its pkg-config deps. Unlike build-server, both test-backend (same Makefile, bug-1558) and apiserver/meson.build derive CGO_CFLAGS/CGO_LDFLAGS via pkg-config (librtti, c-capnproto, openssl, tinylog) plus -I$(BUILD_DIR)/lib / -L$(BUILD_DIR)/lib -lxce -- build-server was apparently never given the same treatment, so it only works if CGO_CFLAGS/CGO_LDFLAGS happen to already be exported in the shell (e.g. by meson's custom_target env), not under a bare `nix develop ../ --command make build-server`. Reproduced identically with and without an unrelated comment-only change staged elsewhere in the same package (apiserver/backend/handler.go), confirming this is pre-existing and unrelated to that change.",
"fix": "Not fixed (out of scope for the verification task that found it -- reported only). Workaround that does compile cleanly (exit 0): run the build-server go build with the same self-derived CGO env as test-backend, e.g. inside `nix develop ../ --command bash -c '...'`: BUILD_DIR=$(pwd)/../xce.build; CGO_CFLAGS=\"-fsanitize=address -g $(pkg-config --cflags librtti c-capnproto openssl tinylog) -I$(pwd)/../include -I$BUILD_DIR/lib\"; CGO_LDFLAGS=\"-fsanitize=address -g $(pkg-config --libs librtti c-capnproto openssl tinylog) -lm -lrt -L$BUILD_DIR/lib -lxce\"; then CGO_ENABLED=1 CGO_CFLAGS=\"$CGO_CFLAGS\" CGO_LDFLAGS=\"$CGO_LDFLAGS\" go build -o /tmp/apiserver ./cmd/main.go. Requires BUILD_DIR/lib/libxce.a to already exist (prior xce-build.sh lib run). Proper fix would mirror bug-1558's FRONTEND_CGO_CFLAGS/FRONTEND_CGO_LDFLAGS into the build-server recipe in src/frontend/Makefile.",
"tags": [
"frontend",
"apiserver",
"cgo",
"makefile",
"build-server",
"nix",
"pre-existing"
],
"related_bugs": [
"bug-1558"
],
"occurrences": 1,
"last_seen": "2026-08-19T00:00:00Z"
}
]
}