msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.31k stars 1.23k forks source link

[new package] cargo-leptos 0.2.21 #22381

Closed podsvirov closed 3 weeks ago

ognevny commented 3 weeks ago

CLANGARM64 fails with

``` The following warnings were emitted during compilation: warning: psm@0.1.23: src/arch/aarch_aapcs64.s:38:1: error: unrecognized instruction mnemonic warning: psm@0.1.23: END_FUNCTION(rust_psm_stack_direction) warning: psm@0.1.23: ^ warning: psm@0.1.23: src/arch/aarch_aapcs64.s:50:1: error: unrecognized instruction mnemonic warning: psm@0.1.23: END_FUNCTION(rust_psm_stack_pointer) warning: psm@0.1.23: ^ warning: psm@0.1.23: src/arch/aarch_aapcs64.s:63:1: error: unrecognized instruction mnemonic warning: psm@0.1.23: END_FUNCTION(rust_psm_replace_stack) warning: psm@0.1.23: ^ warning: psm@0.1.23: src/arch/aarch_aapcs64.s:88:1: error: unrecognized instruction mnemonic warning: psm@0.1.23: END_FUNCTION(rust_psm_on_stack) warning: psm@0.1.23: ^ error: failed to run custom build command for `psm v0.1.23` Caused by: process didn't exit successfully: `C:\M\B\src\build-CLANGARM64\target\release\build\psm-e25b9c9131bed33c\build-script-build` (exit code: 1) --- stdout OPT_LEVEL = Some(3) OUT_DIR = Some(C:\M\B\src\build-CLANGARM64\target\release\build\psm-633ad2b7f2604f10\out) TARGET = Some(aarch64-pc-windows-gnullvm) HOST = Some(aarch64-pc-windows-gnullvm) cargo:rerun-if-env-changed=CC_aarch64-pc-windows-gnullvm CC_aarch64-pc-windows-gnullvm = None cargo:rerun-if-env-changed=CC_aarch64_pc_windows_gnullvm CC_aarch64_pc_windows_gnullvm = None cargo:rerun-if-env-changed=HOST_CC HOST_CC = None cargo:rerun-if-env-changed=CC CC = Some(clang) cargo:rerun-if-env-changed=CC_KNOWN_WRAPPER_CUSTOM CC_KNOWN_WRAPPER_CUSTOM = None RUSTC_WRAPPER = None cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some(false) cargo:rerun-if-env-changed=CFLAGS_aarch64-pc-windows-gnullvm CFLAGS_aarch64-pc-windows-gnullvm = None cargo:rerun-if-env-changed=CFLAGS_aarch64_pc_windows_gnullvm CFLAGS_aarch64_pc_windows_gnullvm = None cargo:rerun-if-env-changed=HOST_CFLAGS HOST_CFLAGS = None cargo:rerun-if-env-changed=CFLAGS CFLAGS = Some(-O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wp,-D__USE_MINGW_ANSI_STDIO=1) cargo:rerun-if-env-changed=CC_SHELL_ESCAPED_FLAGS CC_SHELL_ESCAPED_FLAGS = None cargo:rustc-check-cfg=cfg(switchable_stack,asm,link_asm) cargo:rustc-cfg=asm cargo:rustc-cfg=link_asm cargo:warning=src/arch/aarch_aapcs64.s:38:1: error: unrecognized instruction mnemonic cargo:warning=END_FUNCTION(rust_psm_stack_direction) cargo:warning=^ cargo:warning=src/arch/aarch_aapcs64.s:50:1: error: unrecognized instruction mnemonic cargo:warning=END_FUNCTION(rust_psm_stack_pointer) cargo:warning=^ cargo:warning=src/arch/aarch_aapcs64.s:63:1: error: unrecognized instruction mnemonic cargo:warning=END_FUNCTION(rust_psm_replace_stack) cargo:warning=^ cargo:warning=src/arch/aarch_aapcs64.s:88:1: error: unrecognized instruction mnemonic cargo:warning=END_FUNCTION(rust_psm_on_stack) cargo:warning=^ --- stderr error occurred: Command "clang" "-O3" "-ffunction-sections" "-fdata-sections" "--target=aarch64-pc-windows-gnu" "-O2" "-pipe" "-Wp,-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-Wp,-D__USE_MINGW_ANSI_STDIO=1" "-xassembler-with-cpp" "-DCFG_TARGET_OS_windows" "-DCFG_TARGET_ARCH_aarch64" "-DCFG_TARGET_ENV_gnu" "-o" "C:\\M\\B\\src\\build-CLANGARM64\\target\\release\\build\\psm-633ad2b7f2604f10\\out\\e4479bd7784abb10-aarch_aapcs64.o" "-c" "src/arch/aarch_aapcs64.s" with args clang did not execute successfully (status code exit code: 1). ```

according to psm docs aarch64 Windows is not supported

podsvirov commented 3 weeks ago

according to psm docs aarch64 Windows is not supported

Thanks for finding the source of the error! Disable clangarm64 there.