Skip to content

Mac M1编译tquic报错 #447

@ZhangYanChao

Description

@ZhangYanChao

编译环境:macOS 15.0 M1
rustup 版本 1.28.1
cargo 版本 1.85.1
gcc 版本 [Apple clang version 16.0.0 (clang-1600.0.26.4) Target: arm64-apple-darwin24.0.0]
git 版本 2.39.5
cmake 版本 3.31.6

报错内容:
Undefined symbols for architecture arm64:
"___chkstk_darwin", referenced from:
bssl::(anonymous namespace)::X25519Kyber768KeyShare::Encap(cbb_st*, bssl::Array, unsigned char, bssl::Span) in libssl.a24
_ec_GFp_mont_mul in libcrypto.a246
_ec_GFp_mont_mul_batch in libcrypto.a246
_ec_GFp_mont_init_precomp in libcrypto.a246
_ec_GFp_mont_mul_public_batch in libcrypto.a246
_encrypt_cpa in libcrypto.a251
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

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