Stream: t-compiler/help

Topic: libstd and friends compile for incorrect architecture


luxxxy (Jun 18 2020 at 01:43, on Zulip):

i thought llvm_target would decide that, but nope, compiled for unknown-arm64 but trying to link with ios-arm64e
https://github.com/Crabapple-iOS/rust/blob/crabapple/src/librustc_target/spec/arm64e_apple_ios.rs

luxxxy (Jun 18 2020 at 01:46, on Zulip):
error: linking with `/Users/wlm/Builds/llvm-apple/bin/clang` failed: exit code: 1
  |
  = note: "/Users/wlm/Builds/llvm-apple/bin/clang" "-arch" "arm64e" "-isysroot" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk" "-Wl,-syslibroot" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk" "-L" "/Users/wlm/Code/rust/build/x86_64-apple-darwin/stage2/lib/rustlib/arm64-apple-ios-armv83/lib" "/Users/wlm/Code/rust/build/x86_64-apple-darwin/stage2-std/arm64-apple-ios-armv83/release/deps/std-0f013c4469e37115.std.3x8dl8c3-cgu.0.rcgu.o" "/Users/wlm/Code/rust/build/x86_64-apple-darwin/stage2-std/arm64-apple-ios-armv83/release/deps/std-0f013c4469e37115.std.3x8dl8c3-cgu.1.rcgu.o" "/Users/wlm/Code/rust/build/x86_64-apple-darwin/stage2-std/arm64-apple-ios-armv83/release/deps/std-0f013c4469e37115.std.3x8dl8c3-cgu.10.rcgu.o" "/Users/wlm/Code/rust/build/x86_64-apple-darwin/stage2-std/arm64-apple-ios-armv83/release/deps/std-0f013c4469e37115.std.3x8dl8c3-cgu.11.rcgu.o" "/Users/wlm/Code/rust/build/x86_64-apple-darwin/stage2-std/arm64-apple-ios-armv83/release/deps/std-0f013c4469e37115.std.3x8dl8c3-cgu.12.rcgu.o" "/Users/wlm/Code/rust/build/x86_64-apple-darwin/stage2-std/arm64-apple-ios-armv83/release/deps/std-0f013c4469e37115.std.3x8dl8c3-cgu.13.rcgu.o" "/Users/wlm/Code/rust/build/x86_64-apple-darwin/stage2-std/arm64-apple-ios-armv83/release/deps/std-0f013c4469e37115.std.3x8dl8c3-cgu.14.rcgu.o" "/Users/wlm/Code/rust/build/x86_64-apple-darwin/stage2-std/arm64-apple-ios-armv83/release/deps/std-0f013c4469e37115.std.3x8dl8c3-cgu.15.rcgu.o" "/Users/wlm/Code/rust/build/x86_64-apple-darwin/stage2-std/arm64-apple-ios-armv83/release/deps/std-0f013c4469e37115.std.3x8dl8c3-cgu.2.rcgu.o" "/Users/wlm/Code/rust/build/x86_64-apple-darwin/stage2-std/arm64-apple-ios-armv83/release/deps/std-0f013c4469e37115.std.3x8dl8c3-cgu.3.rcgu.o" "/Users/wlm/Code/rust/build/x86_64-apple-darwin/stage2-std/arm64-apple-ios-armv83/release/deps/std-0f013c4469e37115.std.3x8dl8c3-cgu.4.rcgu.o" "/Users/wlm/Code/rust/build/x86_64-apple-darwin/stage2-std/arm64-apple-ios-armv83/release/deps/std-0f013c4469e37115.std.3x8dl8c3-cgu.5.rcgu.o" "/Users/wlm/Code/rust/build/x86_64-apple-darwin/stage2-std/arm64-apple-ios-armv83/release/deps/std-0f013c4469e37115.std.3x8dl8c3-cgu.6.rcgu.o" "/Users/wlm/Code/rust/build/x86_64-apple-darwin/stage2-std/arm64-apple-ios-armv83/release/deps/std-0f013c4469e37115.std.3x8dl8c3-cgu.7.rcgu.o" "/Users/wlm/Code/rust/build/x86_64-apple-darwin/stage2-std/arm64-apple-ios-armv83/release/deps/std-0f013c4469e37115.std.3x8dl8c3-cgu.8.rcgu.o" "/Users/wlm/Code/rust/build/x86_64-apple-darwin/stage2-std/arm64-apple-ios-armv83/release/deps/std-0f013c4469e37115.std.3x8dl8c3-cgu.9.rcgu.o" "-o" "/Users/wlm/Code/rust/build/x86_64-apple-darwin/stage2-std/arm64-apple-ios-armv83/release/deps/libstd-0f013c4469e37115.dylib" "-Wl,-exported_symbols_list,/var/folders/tp/nyvf4xbj3yq_rfth2dvm0bhr0000gn/T/rustcgCQ8Ef/list" "/Users/wlm/Code/rust/build/x86_64-apple-darwin/stage2-std/arm64-apple-ios-armv83/release/deps/std-0f013c4469e37115.25636yboi1jshd4i.rcgu.o" "/Users/wlm/Code/rust/build/x86_64-apple-darwin/stage2-std/arm64-apple-ios-armv83/release/deps/std-0f013c4469e37115.n3e17uxrkfvgews.rcgu.o" "-Wl,-dead_strip" "-dynamiclib" "-Wl,-dylib" "-Wl,-install_name" "-Wl,@rpath/libstd-0f013c4469e37115.dylib" "-nodefaultlibs" "-L" "/Users/wlm/Code/rust/build/x86_64-apple-darwin/stage2-std/arm64-apple-ios-armv83/release/deps" "-L" "/Users/wlm/Code/rust/build/x86_64-apple-darwin/stage2-std/release/deps" "-L" "/Users/wlm/Code/rust/build/x86_64-apple-darwin/stage2-std/arm64-apple-ios-armv83/release/build/compiler_builtins-837a193a3f848474/out" "-L" "/Users/wlm/Code/rust/build/x86_64-apple-darwin/stage2-std/arm64-apple-ios-armv83/release/build/backtrace-sys-271d59547ce8be3d/out" "-L" "/Users/wlm/Code/rust/build/x86_64-apple-darwin/stage2/lib/rustlib/arm64-apple-ios-armv83/lib" "-lSystem" "-lobjc" "-framework" "Security" "-framework" "Foundation" "-lresolv" "-Wl,-force_load" "-Wl,/var/folders/tp/nyvf4xbj3yq_rfth2dvm0bhr0000gn/T/rustcgCQ8Ef/libpanic_unwind-f0d495f0f3f8c656.rlib" "-Wl,-force_load" "-Wl,/var/folders/tp/nyvf4xbj3yq_rfth2dvm0bhr0000gn/T/rustcgCQ8Ef/libhashbrown-c6f55a6b7853fe15.rlib" "-Wl,-force_load" "-Wl,/var/folders/tp/nyvf4xbj3yq_rfth2dvm0bhr0000gn/T/rustcgCQ8Ef/librustc_std_workspace_alloc-a8baf5de741b3891.rlib" "-Wl,-force_load" "-Wl,/var/folders/tp/nyvf4xbj3yq_rfth2dvm0bhr0000gn/T/rustcgCQ8Ef/libbacktrace-6cb76458ec873119.rlib" "-Wl,-force_load" "-Wl,/var/folders/tp/nyvf4xbj3yq_rfth2dvm0bhr0000gn/T/rustcgCQ8Ef/libbacktrace_sys-361f80a36ce52eca.rlib" "-Wl,-force_load" "-Wl,/var/folders/tp/nyvf4xbj3yq_rfth2dvm0bhr0000gn/T/rustcgCQ8Ef/librustc_demangle-edf2b74550373e1c.rlib" "-Wl,-force_load" "-Wl,/var/folders/tp/nyvf4xbj3yq_rfth2dvm0bhr0000gn/T/rustcgCQ8Ef/libunwind-4037863fe650bcd2.rlib" "-Wl,-force_load" "-Wl,/var/folders/tp/nyvf4xbj3yq_rfth2dvm0bhr0000gn/T/rustcgCQ8Ef/libcfg_if-936c749435b510f5.rlib" "-Wl,-force_load" "-Wl,/var/folders/tp/nyvf4xbj3yq_rfth2dvm0bhr0000gn/T/rustcgCQ8Ef/liblibc-90ea993fb158ae77.rlib" "-Wl,-force_load" "-Wl,/var/folders/tp/nyvf4xbj3yq_rfth2dvm0bhr0000gn/T/rustcgCQ8Ef/liballoc-3ea647848da850be.rlib" "-Wl,-force_load" "-Wl,/var/folders/tp/nyvf4xbj3yq_rfth2dvm0bhr0000gn/T/rustcgCQ8Ef/librustc_std_workspace_core-c8a44757347062b8.rlib" "-Wl,-force_load" "-Wl,/var/folders/tp/nyvf4xbj3yq_rfth2dvm0bhr0000gn/T/rustcgCQ8Ef/libcore-1c11f7240ed117a4.rlib" "/var/folders/tp/nyvf4xbj3yq_rfth2dvm0bhr0000gn/T/rustcgCQ8Ef/libcompiler_builtins-58939d709e21dd6a.rlib" "-lc" "-lm" "-Wl,-rpath,@loader_path/../lib"
  = note: ld: warning: ignoring file /Users/wlm/Code/rust/build/x86_64-apple-darwin/stage2-std/arm64-apple-ios-armv83/release/deps/std-0f013c4469e37115.std.3x8dl8c3-cgu.0.rcgu.o, building for iOS-arm64e but attempting to link with file built for unknown-arm64
          ld: warning: ignoring file /Users/wlm/Code/rust/build/x86_64-apple-darwin/stage2-std/arm64-apple-ios-armv83/release/deps/std-0f013c4469e37115.std.3x8dl8c3-cgu.1.rcgu.o, building for iOS-arm64e but attempting to link with file built for unknown-arm64
          ld: warning: ignoring file /Users/wlm/Code/rust/build/x86_64-apple-darwin/stage2-std/arm64-apple-ios-armv83/release/deps/std-0f013c4469e37115.std.3x8dl8c3-cgu.10.rcgu.o, building for iOS-arm64e but attempting to link with file built for unknown-arm64
          ld: warning: ignoring file /Users/wlm/Code/rust/build/x86_64-apple-darwin/stage2-std/arm64-apple-ios-armv83/release/deps/std-0f013c4469e37115.std.3x8dl8c3-cgu.11.rcgu.o, building for iOS-arm64e but attempting to link with file built for unknown-arm64
          ld: warning: ignoring file /Users/wlm/Code/rust/build/x86_64-apple-darwin/stage2-std/arm64-apple-ios-armv83/release/deps/std-0f013c4469e37115.std.3x8dl8c3-cgu.12.rcgu.o, building for iOS-arm64e but attempting to link with file built for unknown-arm64
...
luxxxy (Jun 18 2020 at 01:49, on Zulip):

the object files aren't being compiled to arm64e for some reason

Last update: Sep 28 2020 at 16:30UTC