Skip to content

fix(ci): rebuild vendored OpenSSL for aarch64 (unblock 4.7.0 arm64 publish) - #106

Merged
thiagoluiznunes merged 1 commit into
topfreegames:masterfrom
chagretes:fix/linux-arm64-openssl
Jul 6, 2026
Merged

fix(ci): rebuild vendored OpenSSL for aarch64 (unblock 4.7.0 arm64 publish)#106
thiagoluiznunes merged 1 commit into
topfreegames:masterfrom
chagretes:fix/linux-arm64-openssl

Conversation

@chagretes

Copy link
Copy Markdown
Contributor

Problem

The 4.7.0 release failedbuild-linux-arm64 (added in #105) failed at make build-linux:

/usr/bin/ld: ../../deps/openssl/linux/lib/libssl.a(methods.o): Relocations in generic ELF (EM: 62)
../../deps/openssl/linux/lib/libssl.a: error adding symbols: file in wrong format

deps/openssl/linux is a precompiled x86_64 OpenSSL, so the arm64 link fails. Because that job is in the package job's needs, the failure blocked publish → 4.7.0 was tagged but never pushed to Artifactory (latest there is still 4.6.5).

Fix

In build-linux-arm64, rebuild the vendored OpenSSL 1.1.1q for linux-aarch64 into deps/openssl/linux (installing perl for OpenSSL's Configure) before make build-linux. Same image/flow otherwise.

Validation

Ran the exact recipe in the same ubuntu:20.04 arm64 builder (podman, native aarch64): make build-linux completes with 0 errors and produces an aarch64 libpitaya-linux.so (verified ELF machine = 0xB7). The earlier prebuilt arm64 .so from this recipe also dlopens inside the target game image.

After merge, please cut a new tag so the release/publish runs (4.7.0 never published, so 4.7.0 or 4.7.1 both work).

The 4.7.0 release failed: build-linux-arm64's `make build-linux` links the
vendored deps/openssl/linux, which is a precompiled x86_64 OpenSSL, so on
arm64 the final link fails ("libssl.a ... file in wrong format", EM: 62).
That failed job blocked the package/release jobs, so 4.7.0 was never
published to Artifactory.

Rebuild OpenSSL 1.1.1q for linux-aarch64 into deps/openssl/linux (install
perl in the builder for OpenSSL's Configure) before `make build-linux`.
Verified end-to-end in the same ubuntu:20.04 arm64 builder image: produces
an aarch64 libpitaya-linux.so with 0 errors.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@cursor

cursor Bot commented Jul 6, 2026

Copy link
Copy Markdown

Bugbot is not enabled for this team, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@thiagoluiznunes
thiagoluiznunes merged commit 97fa5f5 into topfreegames:master Jul 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants