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

Failed compilation on arm64 windows #2135

Open
Gami13 opened this issue Aug 19, 2024 · 0 comments
Open

Failed compilation on arm64 windows #2135

Gami13 opened this issue Aug 19, 2024 · 0 comments

Comments

@Gami13
Copy link

Gami13 commented Aug 19, 2024

Hi,

I'm trying to compile a project that uses ring as an implicit dependency but get following errors during compilation


warning: [email protected]: In file included from crypto/curve25519/curve25519.c:24:
warning: [email protected]: In file included from crypto/curve25519/internal.h:20:
warning: [email protected]: In file included from crypto/curve25519/../internal.h:115:
warning: [email protected]: include/ring-core/check.h:27:11: fatal error: 'assert.h' file not found
warning: [email protected]:    27 | # include <assert.h>
warning: [email protected]:       |           ^~~~~~~~~~
warning: [email protected]: 1 error generated.

error: failed to run custom build command for `ring v0.17.7`

Caused by:
  process didn't exit successfully: `C:\Users\gamin\Desktop\Projects\strife\src-tauri\target\debug\build\ring-6873f4b6ce2562b5\build-script-build` (exit code: 1)
  --- stdout
  cargo:rerun-if-env-changed=RING_PREGENERATE_ASM
  cargo:rustc-env=RING_CORE_PREFIX=ring_core_0_17_7_
  OPT_LEVEL = Some("0")
  TARGET = Some("aarch64-pc-windows-msvc")
  HOST = Some("aarch64-pc-windows-msvc")
  cargo:rerun-if-env-changed=CC_aarch64-pc-windows-msvc
  CC_aarch64-pc-windows-msvc = None
  cargo:rerun-if-env-changed=CC_aarch64_pc_windows_msvc
  CC_aarch64_pc_windows_msvc = None
  cargo:rerun-if-env-changed=HOST_CC
  HOST_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("neon")
  DEBUG = Some("true")
  cargo:rerun-if-env-changed=CFLAGS_aarch64-pc-windows-msvc
  CFLAGS_aarch64-pc-windows-msvc = None
  cargo:rerun-if-env-changed=CFLAGS_aarch64_pc_windows_msvc
  CFLAGS_aarch64_pc_windows_msvc = None
  cargo:rerun-if-env-changed=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  running: "clang" "-O0" "--target=aarch64-pc-windows-msvc" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "--target=aarch64-pc-windows-msvc" "-I" "include" "-I" "C:\\Users\\gamin\\Desktop\\Projects\\strife\\src-tauri\\target\\debug\\build\\ring-9445e572da104be7\\out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-pedantic" "-Wall" "-Wextra" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wenum-compare" "-Wfloat-equal" "-Wformat=2" "-Winline" "-Winvalid-pch" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-Wwrite-strings" "-g3" "-DNDEBUG" "-o" "C:\\Users\\gamin\\Desktop\\Projects\\strife\\src-tauri\\target\\debug\\build\\ring-9445e572da104be7\\out\\crypto/curve25519/curve25519.o" "-c" "crypto/curve25519/curve25519.c"  
  cargo:warning=In file included from crypto/curve25519/curve25519.c:24:

  cargo:warning=In file included from crypto/curve25519/internal.h:20:

  cargo:warning=In file included from crypto/curve25519/../internal.h:115:

  cargo:warning=include/ring-core/check.h:27:11: fatal error: 'assert.h' file not found

  cargo:warning=   27 | # include <assert.h>

  cargo:warning=      |           ^~~~~~~~~~

  cargo:warning=1 error generated.

  exit code: 1```
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

1 participant