Skip to content

static binary CI fails postgresql build #1937

@henderkes

Description

@henderkes

What happened?

Our CI in FrankenPHP has been red since we switched from postgresql 16 to 18 at static-php-cli. The weird thing is that when I run either static-builder-gnu or static-builder-musl manually, it succeeds. Likewise, our static-php-cli CI and my spc-packages CI are also green.

Perhaps there's a cache layer on GitHub that needs to be cleared? @dunglas

Build Type

Official static build

Worker Mode

No

Operating System

Other (tell us more in the description)

CPU Architecture

x86_64

PHP configuration

-

Relevant log output

#23 1208.3 [10:45:42] [I] [EXEC] ../configure --prefix=/go/src/app/dist/static-php-cli/buildroot --enable-coverage=no --with-ssl=openssl --with-readline --with-libxml --with-icu --with-ldap --without-libxslt --with-zstd --without-lz4 --without-perl --without-python --without-pam --without-bonjour --without-tcl 

1113#23 1212.9 ✗ Command execution failed: Command exited with non-zero code: 1 

1114#23 1212.9 ---------------------------------------- 

1115#23 1212.9 

1116#23 1212.9 Failed module: library postgresql builder for Linux 

1117#23 1212.9 

1118#23 1212.9 Failed command: ../configure --prefix=/go/src/app/dist/static-php-cli/buildroot --enable-coverage=no --with-ssl=openssl --with-readline --with-libxml --with-icu --with-ldap --without-libxslt --with-zstd --without-lz4 --without-perl --without-python --without-pam --without-bonjour --without-tcl 

1119#23 1212.9 Command executed in: /go/src/app/dist/static-php-cli/source/postgresql/build 

1120#23 1212.9 Command inline env variables: 

1121#23 1212.9 CFLAGS=-I/go/src/app/dist/static-php-cli/buildroot/include -fPIE -fPIC -O3 

1122#23 1212.9 CXXFLAGS=-fPIC -Os 

1123#23 1212.9 CPPFLAGS=-DPIC 

1124#23 1212.9 LDFLAGS=-L/go/src/app/dist/static-php-cli/buildroot/lib 

1125#23 1212.9 LIBS=-lzstd -lldap -llber -lsodium -lgmp -licuio -licui18n -licuuc -licudata -lpthread -lm -lreadline -lncurses -lssl -lcrypto -lxml2 -lz -liconv -lcharset -ldl -lpthread -lm -lstdc++ 

1126#23 1212.9 

1127#23 1212.9 ---------------------------------------- 

1128#23 1212.9 

1129#23 1212.9 ⚠ The console output log is saved in /go/src/app/dist/static-php-cli/log/spc.output.log 

1130#23 1212.9 ⚠ The shell output log is saved in /go/src/app/dist/static-php-cli/log/spc.shell.log 

1131#23 1212.9 ⚠ If you want to see more details in console, use `--debug` option. 

1132#23 ERROR: process "/bin/ash -eo pipefail -c GITHUB_TOKEN=$(cat /run/secrets/github-token) ./build-static.sh && \trm -Rf dist/static-php-cli/source/*" did not complete successfully: exit code: 1 

1133------ 

1134 > [stage-0 11/12] RUN --mount=type=secret,id=github-token 	GITHUB_TOKEN=$(cat /run/secrets/github-token) ./build-static.sh && 	rm -Rf dist/static-php-cli/source/*: 

11351212.9 CXXFLAGS=-fPIC -Os 

11361212.9 CPPFLAGS=-DPIC 

11371212.9 LDFLAGS=-L/go/src/app/dist/static-php-cli/buildroot/lib 

11381212.9 LIBS=-lzstd -lldap -llber -lsodium -lgmp -licuio -licui18n -licuuc -licudata -lpthread -lm -lreadline -lncurses -lssl -lcrypto -lxml2 -lz -liconv -lcharset -ldl -lpthread -lm -lstdc++ 

11391212.9 

11401212.9 ---------------------------------------- 

11411212.9 

11421212.9 ⚠ The console output log is saved in /go/src/app/dist/static-php-cli/log/spc.output.log 

11431212.9 ⚠ The shell output log is saved in /go/src/app/dist/static-php-cli/log/spc.shell.log 

11441212.9 ⚠ If you want to see more details in console, use `--debug` option. 

1145------ 

1146static-builder-musl.Dockerfile:103 

1147-------------------- 

1148 102 | 

1149 103 | >>> RUN --mount=type=secret,id=github-token \ 

1150 104 | >>> 	GITHUB_TOKEN=$(cat /run/secrets/github-token) ./build-static.sh && \ 

1151 105 | >>> 	rm -Rf dist/static-php-cli/source/* 

1152 106 | 

1153-------------------- 

1154ERROR: failed to solve: process "/bin/ash -eo pipefail -c GITHUB_TOKEN=$(cat /run/secrets/github-token) ./build-static.sh && \trm -Rf dist/static-php-cli/source/*" did not complete successfully: exit code: 1 

1155Build references 

1157Check build summary support 

1159Error: buildx bake failed with: ERROR: failed to solve: process "/bin/ash -eo pipefail -c GITHUB_TOKEN=$(cat /run/secrets/github-token) ./build-static.sh && \trm -Rf dist/static-php-cli/source/*" did not complete successfully: exit code: 1

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingupstreamIssue or PR related to upstream dependencies such as static-php-cli

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions