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

GitHub Action: Build ARM64 binary #5

Open
JasonWei512 opened this issue Dec 7, 2022 · 0 comments
Open

GitHub Action: Build ARM64 binary #5

JasonWei512 opened this issue Dec 7, 2022 · 0 comments

Comments

@JasonWei512
Copy link
Owner

JasonWei512 commented Dec 7, 2022

Currently the GitHub Action build workflow only builds x64 binary. No ARM64 build so far.

Blocking issues

  • GitHub Action doesn't provide ARM64 containers for Windows, Ubuntu and macOS.
  • Cross compilation doesn't work. I tried to build for "aarch64-pc-windows-msvc" in a Windows x64 container, but it failed when compiling "minimp3-sys" crate.
    Related PR: Fix Cross compilation lieff/minimp3#85
    Build log:
    --- stdout
    TARGET = Some("aarch64-pc-windows-msvc")
    OPT_LEVEL = Some("0")
    HOST = Some("x86_64-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=TARGET_CC
    TARGET_CC = None
    cargo:rerun-if-env-changed=CC
    CC = None
    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=TARGET_CFLAGS
    TARGET_CFLAGS = None
    cargo:rerun-if-env-changed=CFLAGS
    CFLAGS = None
    cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
    CRATE_CC_NO_DEFAULTS = None
    CARGO_CFG_TARGET_FEATURE = Some("neon")
    DEBUG = Some("true")
    running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX64\\arm64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "minimp3/" "-W4" "-DMINIMP3_IMPLEMENTATION" "-FoC:\\Users\\USER\\Code\\code-radio-cli\\target\\aarch64-pc-windows-msvc\\debug\\build\\minimp3-sys-946560fc38d54c57\\out\\minimp3.o" "-c" "minimp3.c"
    minimp3.c
    C:\Users\USER\.cargo\registry\src\github.com-1ecc6299db9ec823\minimp3-sys-0.3.2\minimp3\minimp3.h(187): fatal error C1189: #error:  MINIMP3_ONLY_SIMD used, but SSE/NEON not enabled
    exit code: 2
    
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