Comments (6)
+1
from aws-lc-rs.
From https://rust-lang.github.io/rustup/cross-compilation.html
Note that rustup target add only installs the Rust standard library for a given target. There are typically other tools necessary to cross-compile, particularly a linker. For example, to cross compile to Android the Android NDK must be installed. In the future, rustup will provide assistance installing the NDK components as well. See the target section of the cargo configuration for how to setup a linker to use for a certain target.
from aws-lc-rs.
I can reproduce this on my Linux host. I'm investigating now.
from aws-lc-rs.
The parameter appears to be added here: https://github.com/rust-lang/cc-rs/blob/994dc909dc54caa9eaa473b9807c171e1763d27e/src/lib.rs#L2659
...
match arch {
AppleArchSpec::Device(_) if is_mac => {
cmd.args
.push(format!("-mmacosx-version-min={}", min_version).into());
}
...
It seems related to this issue: rust-lang/cc-rs#1030
from aws-lc-rs.
Another related issue: rust-lang/cc-rs#710
I'm not certain cross-compiling C/C++ code to MacOS from Linux via cc-rs
is expect to work like this. I tried this same method and reproduced the failure with ring and openssl; they both generate errors about these same flags:
cargo:warning=cc: error: unrecognized debug output level ‘full’
cargo:warning=cc: error: unrecognized command-line option ‘-arch’
cargo:warning=cc: error: unrecognized command-line option ‘-mmacosx-version-min=10.7’
from aws-lc-rs.
Since cross-compiling from Linux to Mac is not something we currently plan to support. I'm closing this issue. Feel free to open another issue as a feature request if you'd like us to further investigate this as a cross-compilation option.
from aws-lc-rs.
Related Issues (20)
- Add `-Z minimal-versions` CI integration test
- feature request: RSA key generation support HOT 1
- Remove CMake requirement for builds HOT 2
- HPKE base mode support or ephemeral-static ECDH API HOT 3
- MSRV not respected on aarch64-apple-darwin
- Fails to build on Apple Silicon M2 HOT 9
- aws-lc-sys --features ssl,bindgen failed to build HOT 3
- Please document the licensing of aws-lc HOT 2
- AWS-LC’s libcrypto means, is it support for libcrypto of OpenSSL library added?
- Remove NASM requirement for windows builds
- Link to guide on bindgen requirement HOT 2
- Build fails for some targets because of missing _ISOC11_SOURCE preprocessor definition HOT 2
- Consolidate FFI bindings HOT 4
- Build fails for iOS simulator on x86_64 HOT 2
- Build failed at target: aarch64-pc-windows-msvc HOT 16
- Support streaming API for CBC
- Compilation Errors on `x86_64-pc-windows-gnu` Target due to Uninitialized Variables in `aws-lc` HOT 4
- Cross build for target x86_64-pc-windows-gnu failed HOT 6
- Android build fails HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-lc-rs.