Skip to content

Doesn't compile on aarch64 macOS #253

@leana8959

Description

@leana8959

Hello,

I tried to compile this project on macOS (aarch64 Ventura 13.4, rustc 1.70.0 (90c541806 2023-05-31)).

It seems like there's an issue with the boring-sys crate. I get an issue at compile time. Am I missing some build dependencies, or is this a bug with the boring-sys crate?

I also tried to add openssl to the PATH by doing this

Error message:

--- stdout
  cargo:rerun-if-env-changed=BORING_BSSL_PATH
  CMAKE_TOOLCHAIN_FILE_aarch64-apple-darwin = None
  CMAKE_TOOLCHAIN_FILE_aarch64_apple_darwin = None
  HOST_CMAKE_TOOLCHAIN_FILE = None
  CMAKE_TOOLCHAIN_FILE = None
  CMAKE_GENERATOR_aarch64-apple-darwin = None
  CMAKE_GENERATOR_aarch64_apple_darwin = None
  HOST_CMAKE_GENERATOR = None
  CMAKE_GENERATOR = None
  CMAKE_PREFIX_PATH_aarch64-apple-darwin = None
  CMAKE_PREFIX_PATH_aarch64_apple_darwin = None
  HOST_CMAKE_PREFIX_PATH = None
  CMAKE_PREFIX_PATH = None
  CMAKE_aarch64-apple-darwin = None
  CMAKE_aarch64_apple_darwin = None
  HOST_CMAKE = None
  CMAKE = None
  running: cd "/Users/leana/repos/leana/v2ray-rust/
  ...
--- stderr
  thread 'main' panicked at '"enum_(unnamed_at_deps/boringssl/src/include/openssl/err_h_291_1)" is not a valid Ident', /Users/leana/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.54/src/fallback.rs:811:9
  note: run with `RUST_BACKTRACE=1` environment variable to display ...

Thanks ! Really appreciate the project :)

--- Chinese below ---
嗨,

我剛試著在 macOS (aarch64 Ventura 13.4, rustc 1.70.0 (90c541806 2023-05-31)) 上編譯但是 boring-sys 編譯失敗了。
請問我是不是少了什麼 library ? 還是這其實是 boring-sys 的問題呢?

我有試過把 openssl library 放到 path 裡

錯誤訊息同上。

謝謝!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions