Closed hbina closed 3 years ago
The image is based off of Debian, not Ubuntu.
Yes, you can install Rust on to an ubuntu base image.
Do you have any idea how to fix this error?
Running `rustc --crate-name lupinas_lullaby --edition=2018 src/bin/lupinas-lullaby.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -C lto -C metadata=b0368c6058fe20e7 --out-dir /builds/project-0/target/x86_64-apple-darwin/release/deps --target x86_64-apple-darwin -C linker=x86_64-apple-darwin14-clang -L dependency=/builds/project-0/target/x86_64-apple-darwin/release/deps -L dependency=/builds/project-0/target/release/deps --extern clap=/builds/project-0/target/x86_64-apple-darwin/release/deps/libclap-dfa7ee4d5c781676.rlib --extern openapi=/builds/project-0/target/x86_64-apple-darwin/release/deps/libopenapi-3fc09eda27b5855f.rlib --extern reqwest=/builds/project-0/target/x86_64-apple-darwin/release/deps/libreqwest-68061a8d84e61abc.rlib --extern serde=/builds/project-0/target/x86_64-apple-darwin/release/deps/libserde-50a30cd900126cad.rlib --extern serde_json=/builds/project-0/target/x86_64-apple-darwin/release/deps/libserde_json-79d1234ddf2da739.rlib --extern serde_yaml=/builds/project-0/target/x86_64-apple-darwin/release/deps/libserde_yaml-d710f569916a15ed.rlib`
error: linking with `x86_64-apple-darwin14-clang` failed: exit code: 1
|
= note: "x86_64-apple-darwin14-clang" "-m64" "-arch" "x86_64" "-L" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib" "/builds/project-0/target/x86_64-apple-darwin/release/deps/lupinas_lullaby.lupinas_lullaby.bn7njmnh-cgu.2.rcgu.o" "-o" "/builds/project-0/target/x86_64-apple-darwin/release/deps/lupinas_lullaby" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/builds/project-0/target/x86_64-apple-darwin/release/deps" "-L" "/builds/project-0/target/release/deps" "-L" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-57851e98e05f8123.rlib" "-framework" "Security" "-framework" "CoreFoundation" "-liconv" "-lSystem" "-lresolv" "-lc" "-lm"
= note: Undefined symbols for architecture x86_64:
"_SecTrustEvaluateWithError", referenced from:
security_framework::secure_transport::MidHandshakeClientBuilder$LT$S$GT$::handshake::h1e72be237be33dcd in lupinas_lullaby.lupinas_lullaby.bn7njmnh-cgu.2.rcgu.o
security_framework::secure_transport::MidHandshakeClientBuilder$LT$S$GT$::handshake::h9af4b917b181f81a in lupinas_lullaby.lupinas_lullaby.bn7njmnh-cgu.2.rcgu.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I do not, but this repository is probably not the right place to ask for support on cross compiling from Linux to macOS.
I have no idea what I am doing. Does
rust:latest
use a trimmed version of Ubuntu or Alpine or something? Can't I just useubuntu:latest
and mimic a common Rustup installation setup instead?https://gitlab.com/hbina/lupinas-lullaby/-/jobs/1070042915