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

Fix iOS CI build #12

Closed
Johennes opened this issue Dec 11, 2024 · 2 comments · Fixed by #14
Closed

Fix iOS CI build #12

Johennes opened this issue Dec 11, 2024 · 2 comments · Fixed by #14

Comments

@Johennes
Copy link
Collaborator

The CI build for iOS started failing without any changes.

    Compiling matrix-sdk-ui v0.7.0 (/Users/runner/work/react-native-matrix-sdk/react-native-matrix-sdk/rust_modules/matrix-rust-sdk/crates/matrix-sdk-ui)
warning: `matrix-sdk` (lib) generated 1 warning
error: linking with `cc` failed: exit status: 1
  |
  = note: env -u MACOSX_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/runner/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/private/var/folders/0w/4z5l9vds32nbkz7l22n8j6s80000gn/T/xfs-85d8dcd4:/private/var/folders/0w/4z5l9vds32nbkz7l22n8j6s80000gn/T/xfs-5d38fb86:/Users/runner/hostedtoolcache/node/18.20.5/arm64/bin:/opt/homebrew/lib/ruby/gems/3.0.0/bin:/opt/homebrew/opt/[email protected]/bin:/Users/runner/.local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/runner/.cargo/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/runner/bin:/Users/runner/.yarn/bin:/Users/runner/Library/Android/sdk/tools:/Users/runner/Library/Android/sdk/platform-tools:/Library/Frameworks/Python.framework/Versions/Current/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/runner/.dotnet/tools" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-Wl,-exported_symbols_list" "-Wl,/var/folders/0w/4z5l9vds32nbkz7l22n8j6s80000gn/T/rustcEIeQ9a/list" "/var/folders/0w/4z5l9vds32nbkz7l22n8j6s80000gn/T/rustcEIeQ9a/symbols.o" "/Users/runner/work/react-native-matrix-sdk/react-native-matrix-sdk/rust_modules/matrix-rust-sdk/target/aarch64-apple-ios/debug/deps/matrix_sdk_ffi.matrix_sdk_ffi.7e8194b4bbd86ce1-cgu.00.rcgu.o" "/Users/runner/work/react-native-matrix-sdk/react-native-matrix-sdk/rust_modules/matrix-rust-sdk/target/aarch64-apple-ios/debug/deps/matrix_sdk_ffi.matrix_sdk_ffi.7e8194b4bbd86ce1-cgu.01.rcgu.o" ...
          ld: warning: object file (/Users/runner/work/react-native-matrix-sdk/react-native-matrix-sdk/rust_modules/matrix-rust-sdk/target/aarch64-apple-ios/debug/deps/libring-b59f9738185c7efb.rlib[36](8912af01511d326c-vpaes-armv8-ios64.o)) was built for newer 'iOS' version (17.5) than being linked (10.0)
          ld: warning: object file (/Users/runner/work/react-native-matrix-sdk/react-native-matrix-sdk/rust_modules/matrix-rust-sdk/target/aarch64-apple-ios/debug/deps/libring-b59f9738185c7efb.rlib[37](8912af01511d326c-armv8-mont-ios64.o)) was built for newer 'iOS' version (17.5) than being linked (10.0)
          ld: warning: object file (/Users/runner/work/react-native-matrix-sdk/react-native-matrix-sdk/rust_modules/matrix-rust-sdk/target/aarch64-apple-ios/debug/deps/libring-b59f9738185c7efb.rlib[38](8912af01511d326c-p256-armv8-asm-ios64.o)) was built for newer 'iOS' version (17.5) than being linked (10.0)
          ld: warning: object file (/Users/runner/work/react-native-matrix-sdk/react-native-matrix-sdk/rust_modules/matrix-rust-sdk/target/aarch64-apple-ios/debug/deps/libring-b59f9738185c7efb.rlib[39](8912af01511d326c-ghash-neon-armv8-ios64.o)) was built for newer 'iOS' version (17.5) than being linked (10.0)
          ld: warning: object file (/Users/runner/work/react-native-matrix-sdk/react-native-matrix-sdk/rust_modules/matrix-rust-sdk/target/aarch64-apple-ios/debug/deps/libring-b59f9738185c7efb.rlib[40](8912af01511d326c-aesv8-gcm-armv8-ios64.o)) was built for newer 'iOS' version (17.5) than being linked (10.0)
          ld: warning: object file (/Users/runner/work/react-native-matrix-sdk/react-native-matrix-sdk/rust_modules/matrix-rust-sdk/target/aarch64-apple-ios/debug/deps/libring-b59f9738185c7efb.rlib[41](8912af01511d326c-sha512-armv8-ios64.o)) was built for newer 'iOS' version (17.5) than being linked (10.0)
          ld: warning: object file (/Users/runner/work/react-native-matrix-sdk/react-native-matrix-sdk/rust_modules/matrix-rust-sdk/target/aarch64-apple-ios/debug/deps/libring-b59f9738185c7efb.rlib[42](8912af01511d326c-sha256-armv8-ios64.o)) was built for newer 'iOS' version (17.5) than being linked (10.0)
          ld: warning: object file (/Users/runner/work/react-native-matrix-sdk/react-native-matrix-sdk/rust_modules/matrix-rust-sdk/target/aarch64-apple-ios/debug/deps/libblake3-cd760d640577e3b0.rlib[6](db3b6bfb95261072-blake3_neon.o)) was built for newer 'iOS' version (17.5) than being linked (10.0)
          Undefined symbols for architecture arm64:
            "___chkstk_darwin", referenced from:
                _blake3_hash4_neon in libblake3-cd760d640577e3b0.rlib[6](db3b6bfb95261072-blake3_neon.o)
          ld: symbol(s) not found for architecture arm64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
@olliiiver
Copy link
Contributor

Looks like this is a SDK specific thing. I've opened an issue here:
matrix-org/matrix-rust-sdk#4416

@olliiiver
Copy link
Contributor

Hi @Johennes, #14 should fix the build process.
It disables NEON like mentioned in BLAKE3-team/BLAKE3#437.
It's not optimal, but it should work for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants