Stream: t-compiler/help

Topic: Help with arm64 apple-iOS support on a Linux host


luxxxy (Jun 15 2020 at 20:18, on Zulip):

I have an Apple LLVM toolchain compiled for linux, with arm64/arm64e support. I have added the appropiate targets to the rustc source code, but get various errors

[target.arm64-apple-ios]
linker = "/home/aleister/Builds/ios-arm64e-clang-toolchain/bin/ld64"
cc = "/home/aleister/Builds/ios-arm64e-clang-toolchain/bin/clang"
cxx = "/home/aleister/Builds/ios-arm64e-clang-toolchain/bin/clang++"
ar = "/home/aleister/Builds/ios-arm64e-clang-toolchain/bin/llvm-ar"
ranlib = "/home/aleister/Builds/ios-arm64e-clang-toolchain/bin/llvm-ranlib"
llvm-filecheck = "/home/aleister/Builds/ios-arm64e-clang-toolchain/bin/FileCheck"
llvm-config = "/home/aleister/Builds/ios-arm64e-clang-toolchain/bin/llvm-config"

[target.arm64e-apple-ios]
linker = "/home/aleister/Builds/ios-arm64e-clang-toolchain/bin/ld64"
cc = "/home/aleister/Builds/ios-arm64e-clang-toolchain/bin/clang"
cxx = "/home/aleister/Builds/ios-arm64e-clang-toolchain/bin/clang++"
ar = "/home/aleister/Builds/ios-arm64e-clang-toolchain/bin/llvm-ar"
ranlib = "/home/aleister/Builds/ios-arm64e-clang-toolchain/bin/llvm-ranlib"
llvm-filecheck = "/home/aleister/Builds/ios-arm64e-clang-toolchain/bin/FileCheck"
llvm-config = "/home/aleister/Builds/ios-arm64e-clang-toolchain/bin/llvm-config"
luxxxy (Jun 15 2020 at 20:19, on Zulip):

and yes, I have renamed aarch64-apple-ios to arm64-apple-ios and updated the appropriate locations in the source, because arm64 is the proper terminology.

luxxxy (Jun 15 2020 at 23:52, on Zulip):

help would be appreciated, i'm tired of using a macOS VM.

mark-i-m (Jun 16 2020 at 04:12, on Zulip):

personally, I have very little knowledge about iOS or arm, but would rustup target add aarch64-apple-ios work?

mark-i-m (Jun 16 2020 at 04:13, on Zulip):

and then compile with cargo build --target aarch64-apple-ios

mark-i-m (Jun 16 2020 at 04:14, on Zulip):

(sorry, corrected the rustup command)

mark-i-m (Jun 16 2020 at 04:15, on Zulip):

(also, sorry, if this is a completely off-base suggestion...)

luxxxy (Jun 16 2020 at 17:41, on Zulip):

mark-i-m said:

personally, I have very little knowledge about iOS or arm, but would rustup target add aarch64-apple-ios work?

not rly, because the official target has dynamic linking support off, even though it fully works when turned off.

plus i need to compile in arm64e support, which is currently a pain because cc-rs/compiler-builtins is an ass.

mark-i-m (Jun 16 2020 at 18:23, on Zulip):

ah, sorry, I don't have any ideas then

Last update: Jan 22 2021 at 13:00UTC