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

Compilation Error on M1 architecture macs #86

Closed
ozgunozerk opened this issue Sep 24, 2021 · 0 comments · Fixed by #89
Closed

Compilation Error on M1 architecture macs #86

ozgunozerk opened this issue Sep 24, 2021 · 0 comments · Fixed by #89

Comments

@ozgunozerk
Copy link

ozgunozerk commented Sep 24, 2021

Hi there!
As the title summarized, under M1 macs, this crate's compilation crates the following error:


warning: clang: error: the clang compiler does not support '-march=native'

error: failed to run custom build command for `reed-solomon-erasure v4.0.2`

Caused by:
  process didn't exit successfully: `/Users/ozgunozerk/IdeaProjects/subspace/target/debug/build/reed-solomon-erasure-66669dc99d0ef38f/build-script-build` (exit status: 1)
  --- stdout
  TARGET = Some("aarch64-apple-darwin")
  HOST = Some("aarch64-apple-darwin")
  CC_aarch64-apple-darwin = None
  CC_aarch64_apple_darwin = None
  HOST_CC = None
  CC = None
  CFLAGS_aarch64-apple-darwin = None
  CFLAGS_aarch64_apple_darwin = None
  HOST_CFLAGS = None
  CFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("true")
  CARGO_CFG_TARGET_FEATURE = Some("aes,crc,dpb,fcma,fp,fp16,jsconv,lse,neon,ras,rcpc,rdm,sha2,v8.1a,v8.2a,v8.3a")
  running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-Wall" "-Wextra" "-march=native" "-std=c11" "-o" "/Users/ozgunozerk/IdeaProjects/subspace/target/debug/build/reed-solomon-erasure-9c71292abd721249/out/simd_c/reedsolomon.o" "-c" "simd_c/reedsolomon.c"
  cargo:warning=clang: error: the clang compiler does not support '-march=native'
  exit status: 1

  --- stderr


  error occurred: Command "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-Wall" "-Wextra" "-march=native" "-std=c11" "-o" "/Users/ozgunozerk/IdeaProjects/subspace/target/debug/build/reed-solomon-erasure-9c71292abd721249/out/simd_c/reedsolomon.o" "-c" "simd_c/reedsolomon.c" with args "cc" did not execute successfully (status code exit status: 1).


warning: build failed, waiting for other jobs to finish...
error: build failed

I found this link:

I believe this is due to simd-accel feature.

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.

1 participant