You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, if I run cargo libcnb package on my M1 Macbook, I get:
buildpacks-python $ cargo libcnb package
π Preparing package directory...
π₯οΈ Gathering Cargo configuration (for x86_64-unknown-linux-musl)
For cross-compilation from aarch64 macos to x86_64-unknown-linux-musl,
a C compiler and linker for the target platform must be installed:
To install an x86_64 cross-compiler on macOS:
brew install messense/macos-cross-toolchains/x86_64-unknown-linux-musl
You will also need to install the Rust target:
rustup target add x86_64-unknown-linux-musl
β Failed to configure Cargo for cross-compilation
Now that we're in an era of multi-arch builder images (both for Heroku and Paketo), I think libcnb's development workflows should default to using the host architecture rather than hardcoding x86_64 here:
This will mean that anyone is both developing against a single-arch builder, and also has an ARM machine will need to explicitly pass --target x86_64-unknown-linux-musl - however, we should favour making the multi-arch path the happy path rather than vice versa.
The text was updated successfully, but these errors were encountered:
By default, if I run
cargo libcnb package
on my M1 Macbook, I get:I have to instead run this every time:
Now that we're in an era of multi-arch builder images (both for Heroku and Paketo), I think libcnb's development workflows should default to using the host architecture rather than hardcoding x86_64 here:
libcnb.rs/libcnb-cargo/src/cli.rs
Lines 26 to 27 in 3fa2c6c
This will mean that anyone is both developing against a single-arch builder, and also has an ARM machine will need to explicitly pass
--target x86_64-unknown-linux-musl
- however, we should favour making the multi-arch path the happy path rather than vice versa.The text was updated successfully, but these errors were encountered: