Open pizaCat opened 4 months ago
This is probably due to https://github.com/cross-rs/cross/blob/7b79041c9278769eca57fae10c74741f5aa5c14b/docker/Dockerfile.aarch64-unknown-linux-musl#L36
Can you try removing that env var with
[build]
env.passthrough = ["CMAKE_TOOLCHAIN_FILE_aarch64_unknown_linux_musl"]
That worked, thanks for the quick workaround! Does that mean that the CMAKE_TOOLCHAIN_FILE
environment variable set in the images should not be there?
it should be set, but it's doing something unexpected in this case
Checklist
Describe your issue
I have a project that uses
rdkafka
with ssl. When updating to the latestcross
from main, I could no longer get it to build.I have made a demo project that can reproduce the issue: https://github.com/pizaCat/cross-musl-demo
Here is a copy of the README:
Demo project for a compilation failure with the latest cross (7b79041).
Cross must be installed with
The following fails:
With the following error:
When forcing image
0.2.5
, the build succeeds:What target(s) are you cross-compiling for?
aarch64-unknown-linux-musl, x86_64-unknown-linux-musl, other (specify in description)
Which operating system is the host (e.g computer cross is on) running?
What architecture is the host?
What container engine is cross using?
cross version
cross 0.2.5 (7b79041 2024-07-11)
Example
fails to build rdkafka
Additional information / notes
When forcing image
0.2.5
, the build succeeds: