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

cc 1.0.70 fails to build ring for target aarch64-apple-ios-sim on x86_64 host. #622

Open
sfionov opened this issue Sep 24, 2021 · 1 comment

Comments

@sfionov
Copy link

sfionov commented Sep 24, 2021

The problem is that cc ignores "-arch arm64" argument when it is in quotes. If I run this command with -arch arm64 without quotes, it compiles.

  --- stderr
  running "/usr/bin/cc" "-O3" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch arm64" "-mios-simulator-version-min=11.2" "-isysroot" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk" "-fembed-bitcode" "-I" "include" "-Wall" "-Wextra" "-pedantic" "-pedantic-errors" "-Wall" "-Wextra" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wenum-compare" "-Wfloat-equal" "-Wformat=2" "-Winline" "-Winvalid-pch" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wundef" "-Wuninitialized" "-Wwrite-strings" "-fno-strict-aliasing" "-fvisibility=hidden" "-fstack-protector" "-g3" "-DNDEBUG" "-c" "-o/Users/buildagent/.conan/data/quiche/0.9.0/AdguardTeam/NativeLibsCommon/build/6d052288a44309b7369d4a26703162f0cb5a9d94/source_subfolder/target/aarch64-apple-ios-sim/release/build/ring-d34770fe4c482e36/out/aesv8-armx-ios64.o" "/Users/buildagent/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/pregenerated/aesv8-armx-ios64.S"
  clang: warning: argument unused during compilation: '-arch arm64' [-Wunused-command-line-argument]
  In file included from /Users/buildagent/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/pregenerated/aesv8-armx-ios64.S:12:
  include/GFp/arm_arch.h:96:5: error: "unsupported ARM architecture"
  #   error "unsupported ARM architecture"

Related to #614

@madsmtm
Copy link
Contributor

madsmtm commented Nov 4, 2024

Pretty sure this has been fixed a while ago, but it's definitely fixed in #1256 which removes the -arch flag altogether on Apple targets, and instead specifying --target

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

No branches or pull requests

2 participants