Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x86_64 apple darwin fails to build CLI on release CI #198

Open
cainthebest opened this issue Mar 27, 2024 · 1 comment
Open

x86_64 apple darwin fails to build CLI on release CI #198

cainthebest opened this issue Mar 27, 2024 · 1 comment
Labels
bug Something isn't working ci Continous integration cli
Milestone

Comments

@cainthebest
Copy link
Member

Describe the bug
Seems to be a linking error in what OS version we are targeting (10.8). we should try 10.12 as log says.

Steps To Reproduce
view for action for details
https://github.com/gamedig/rust-gamedig/actions/runs/8299893209/job/22716634008

Expected behavior
It should build without errors

Screenshots or Data
log:

error: linking with `/opt/osxcross/target/bin/x86_64-apple-darwin14-clang` failed: exit status: 1
  |
  = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/usr/local/rustup/toolchains/1.76.0-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/bin:/opt/osxcross/target/bin:/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" ZERO_AR_DATE="1" "/opt/osxcross/target/bin/x86_64-apple-darwin14-clang" "-arch" "x86_64" "-m64" "/tmp/rustcR6YZvD/symbols.o" "/github/workspace/crates/cli/./target/x86_64-apple-darwin/release/deps/gamedig_cli-ce8d69e2f8f23a82.gamedig_cli.2a712326cf93e[214](https://github.com/gamedig/rust-gamedig/actions/runs/8299893209/job/22716634008#step:4:215)-cgu.0.rcgu.o" "-L" "/github/workspace/crates/cli/./target/x86_64-apple-darwin/release/deps" "-L" "/github/workspace/crates/cli/./target/release/deps" "-L" "/usr/local/rustup/toolchains/1.76.0-x86_64-unknown-linux-musl/lib/rustlib/x86_64-apple-darwin/lib" "/usr/local/rustup/toolchains/1.76.0-x86_64-unknown-linux-musl/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-1ebaaaec5ccf50e8.rlib" "-framework" "CoreServices" "-framework" "CoreFoundation" "-liconv" "-lSystem" "-lc" "-lm" "-L" "/usr/local/rustup/toolchains/1.76.0-x86_64-unknown-linux-musl/lib/rustlib/x86_64-apple-darwin/lib" "-o" "/github/workspace/crates/cli/./target/x86_64-apple-darwin/release/deps/gamedig_cli-ce8d69e2f8f23a82" "-Wl,-dead_strip" "-nodefaultlibs" "-Wl,-rpath,@loader_path/../../../../../../../../usr/local/rustup/toolchains/1.76.0-x86_64-unknown-linux-musl/lib/rustlib/x86_64-apple-darwin/lib"
  = note: ld: warning: object file (/tmp/rustcR6YZvD/symbols.o) was built for newer macOS version (10.12) than being linked (10.8)
          ld: warning: object file (/github/workspace/crates/cli/./target/x86_64-apple-darwin/release/deps/gamedig_cli-ce8d69e2f8f23a82.gamedig_cli.2a712326cf93e214-cgu.0.rcgu.o) was built for newer macOS version (10.12) than being linked (10.8)
          ld: warning: object file (/usr/local/rustup/toolchains/1.76.0-x86_64-unknown-linux-musl/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-1ebaaaec5ccf50e8.rlib(compiler_builtins-1ebaaaec5ccf50e8.compiler_builtins.c3559bca4639892-cgu.099.rcgu.o)) was built for newer macOS version (10.12) than being linked (10.8)
          ld: warning: object file (/usr/local/rustup/toolchains/1.76.0-x86_64-unknown-linux-musl/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-1ebaaaec5ccf50e8.rlib(compiler_builtins-1ebaaaec5ccf50e8.compiler_builtins.c3559bca4639892-cgu.007.rcgu.o)) was built for newer macOS version (10.12) than being linked (10.8)
          Undefined symbols for architecture x86_64:
            "_clock_gettime", referenced from:
                std::sys::unix::time::Timespec::now::h0ebd2e38935918ca in gamedig_cli-ce8d69e2f8f23a82.gamedig_cli.2a712326cf93e214-cgu.0.rcgu.o
            "_getentropy", referenced from:
                bson::document::Document::new::h8c46fad22ee1e139 in gamedig_cli-ce8d69e2f8f23a82.gamedig_cli.2a712326cf93e214-cgu.0.rcgu.o
                std::sys::unix::rand::hashmap_random_keys::ha92d0a2687c22b7a in gamedig_cli-ce8d69e2f8f23a82.gamedig_cli.2a712326cf93e214-cgu.0.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)
          
  
error: could not compile `gamedig-cli` (bin "gamedig-cli") due to 1 previous error
Error: Command exited with non-zero exit code
Error: Build failed

Additional context
N/A

@cainthebest cainthebest added bug Something isn't working ci Continous integration cli labels Mar 27, 2024
@Douile
Copy link
Collaborator

Douile commented Mar 28, 2024

Probably caused by ci rust-build/rust-build.action#88

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ci Continous integration cli
Projects
None yet
Development

No branches or pull requests

2 participants