Skip to content

fix: add Cross.toml to install libssl-dev for Linux cross-compilation#4

Closed
noahgift wants to merge 1 commit intomainfrom
fix/cross-openssl-deps
Closed

fix: add Cross.toml to install libssl-dev for Linux cross-compilation#4
noahgift wants to merge 1 commit intomainfrom
fix/cross-openssl-deps

Conversation

@noahgift
Copy link
Copy Markdown
Contributor

@noahgift noahgift commented Apr 5, 2026

Summary

Fixes nightly Linux build failure where openssl-sys can't find libssl-dev in the cross Docker image.

Root cause

Could not find openssl via pkg-config
The system library \`openssl\` required by crate \`openssl-sys\` was not found

openssl-sys is pulled transitively via:

  • reqwest (default-tls → native-tls → openssl-sys) used by pforge-runtime
  • pmcp websocket (tokio-tungstenite → native-tls)

The cross container doesn't have libssl-dev preinstalled.

Fix

Add Cross.toml with pre-build step to install libssl-dev + pkg-config.

Alternative (deferred)

Switching reqwest to rustls-tls + patching pmcp to avoid native-tls would eliminate the native dep entirely. Larger PR, deferred.

🤖 Generated with Claude Code

pforge nightly Linux build fails with:
  Could not find openssl via pkg-config
  The system library `openssl` required by crate `openssl-sys` was not found

Root cause: openssl-sys is pulled transitively via reqwest (default-tls →
native-tls → openssl-sys) and pmcp's websocket (tokio-tungstenite).
The `cross` Docker image used for cross-compilation doesn't have libssl-dev
or pkg-config preinstalled.

Fix: add Cross.toml with pre-build step to install libssl-dev + pkg-config
in the cross container before build.

Alternative (deferred): switch reqwest to rustls-tls and patch pmcp to
avoid native-tls entirely. More work, no binary-size benefit given
trueno-db also pulls openssl indirectly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 5, 2026

Thank you for your interest in this project, @noahgift.

This repository only accepts pull requests from organization members and authorized contributors. Your PR has been closed automatically.

If you believe you should have access, please open an issue to discuss your contribution first.

@github-actions github-actions bot closed this Apr 5, 2026
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.

1 participant