Skip to content

[WIP] Fix compile failure due to missing NASM command#1395

Closed
Copilot wants to merge 1 commit into
mainfrom
copilot/fix-compile-failed-issue
Closed

[WIP] Fix compile failure due to missing NASM command#1395
Copilot wants to merge 1 commit into
mainfrom
copilot/fix-compile-failed-issue

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Oct 17, 2025

Thanks for assigning this issue to me. I'm starting to work on it and will keep this PR's description up to date as I form a plan and make progress.

Original prompt

This section details on the original issue you should resolve

<issue_title>compile failed</issue_title>
<issue_description>环境: windows 11
git log commit e0c1f91ed4591913a1dc65a8bf36628788eb25eb (HEAD -> main, origin/main, origin/HEAD) Author: Jason Lee <huacnlee@gmail.com> Date: Thu Oct 16 15:50:09 2025 +0800

vs 17.14.17

rustc --version
rustc 1.89.0 (29483883e 2025-08-04)
cargo build --release --example dock
   Compiling aws-lc-sys v0.32.2
   Compiling lb-wry v0.53.3
warning: aws-lc-sys@0.32.2: NASM command not found or failed to execute.
warning: aws-lc-sys@0.32.2: NASM command not found or failed to execute.
warning: aws-lc-sys@0.32.2: Building with: CMake
warning: aws-lc-sys@0.32.2: Symbol Prefix: Some("aws_lc_0_32_2")
warning: aws-lc-sys@0.32.2: NASM command not found or failed to execute.
warning: aws-lc-sys@0.32.2: NASM command not found or failed to execute.
warning: aws-lc-sys@0.32.2: Environment Variable found 'CMAKE': 'cmake'
warning: aws-lc-sys@0.32.2: CMAKE environment variable set: cmake
warning: aws-lc-sys@0.32.2: Compilation of 'c11.c' failed - Err(Error { kind: ToolExecError, message: "command did not execute successfully (status code exit code: 2): \"C:\\\\Program Files\\\\Microsoft Visual Studio\\\\2022\\\\Community\\\\VC\\\\Tools\\\\MSVC\\\\14.44.35207\\\\bin\\\\HostX64\\\\x64\\\\cl.exe\" \"-nologo\" \"-MD\" \"-O2\" \"-Brepro\" \"-WX\" \"-W4\" \"-FoF:\\\\selfcode\\\\gpui-component\\\\target\\\\release\\\\build\\\\aws-lc-sys-b5e6d167cbf06775\\\\out\\\\out-c11\\\\e1bacabfea35bee3-c11.o\" \"-c\" \"C:\\\\Users\\\\wuqia\\\\.cargo\\\\registry\\\\src\\\\rsproxy.cn-e3de039b2554c837\\\\aws-lc-sys-0.32.2\\\\aws-lc\\\\tests\\\\compiler_features_tests\\\\c11.c\"" }).
warning: aws-lc-sys@0.32.2: NASM command not found or failed to execute.
warning: aws-lc-sys@0.32.2: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
warning: aws-lc-sys@0.32.2: !!!   Using pre-built NASM binaries   !!!
warning: aws-lc-sys@0.32.2: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
warning: aws-lc-sys@0.32.2: Selected prebuilt-nasm.bat (batch script can execute, shell script cannot)
error: failed to run custom build command for `aws-lc-sys v0.32.2`

Caused by:
  process didn't exit successfully: `F:\selfcode\gpui-component\target\release\build\aws-lc-sys-a76176f7bedd49e8\build-script-main` (exit code: 101)
  --- stdout
  cargo:rerun-if-env-changed=AWS_LC_SYS_NO_PREFIX_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=AWS_LC_SYS_NO_PREFIX
  cargo:rerun-if-env-changed=AWS_LC_SYS_PREGENERATING_BINDINGS_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=AWS_LC_SYS_PREGENERATING_BINDINGS
  cargo:rerun-if-env-changed=AWS_LC_SYS_EXTERNAL_BINDGEN_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=AWS_LC_SYS_EXTERNAL_BINDGEN
  cargo:rerun-if-env-changed=AWS_LC_SYS_NO_ASM_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=AWS_LC_SYS_NO_ASM
  cargo:rerun-if-env-changed=AWS_LC_SYS_CFLAGS_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=AWS_LC_SYS_CFLAGS
  cargo:rerun-if-env-changed=CFLAGS_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=CFLAGS
  cargo:rerun-if-env-changed=AWS_LC_SYS_PREBUILT_NASM_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=AWS_LC_SYS_PREBUILT_NASM
  cargo:rerun-if-env-changed=AWS_LC_SYS_C_STD_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=AWS_LC_SYS_C_STD
  cargo:rerun-if-env-changed=AWS_LC_SYS_CMAKE_BUILDER_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=AWS_LC_SYS_CMAKE_BUILDER
  cargo:rerun-if-env-changed=AWS_LC_SYS_NO_PREGENERATED_SRC_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=AWS_LC_SYS_NO_PREGENERATED_SRC
  cargo:rerun-if-env-changed=AWS_LC_SYS_EFFECTIVE_TARGET_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=AWS_LC_SYS_EFFECTIVE_TARGET
  cargo:rustc-cfg=x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=AWS_LC_SYS_STATIC_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=AWS_LC_SYS_STATIC
  default_for Target: 'x86_64-pc-windows-msvc'
  cargo:rerun-if-env-changed=AWS_LC_SYS_STATIC_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=AWS_LC_SYS_STATIC
  cargo:warning=NASM command not found or failed to execute.
  cargo:warning=NASM command not found or failed to execute.
  cargo:rerun-if-env-changed=AWS_LC_SYS_CMAKE_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=AWS_LC_SYS_CMAKE
  cargo:rerun-if-env-changed=CMAKE_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=CMAKE
  cargo:warning=Building with: CMake
  cargo:warning=Symbol Prefix: Some("aws_lc_0_32_2")
  cargo:warning=NASM command not found or failed to execute.
  cargo:warning=NASM command not found or failed to execute.
  cargo:rerun-if-env-changed=AWS_LC_SYS_CMAKE_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=AWS_LC_SYS_CMAKE
  cargo:rerun-if-env-changed=CMAKE_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=CMAKE
  cargo:warning=Environment Variable found 'CMAKE': 'cmake'
  cargo:warning=CMAKE environment variable set: cmake
  cargo:rerun-if-env-changed=AWS_LC_SYS_CMAKE_GENERA...

</details>

Fixes longbridge/gpui-component#1390

<!-- START COPILOT CODING AGENT TIPS -->
---

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more [Copilot coding agent tips](https://gh.io/copilot-coding-agent-tips) in the docs.

@huacnlee huacnlee closed this Oct 17, 2025
@huacnlee huacnlee deleted the copilot/fix-compile-failed-issue branch October 17, 2025 03:42
Copilot AI requested a review from huacnlee October 17, 2025 03:43
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 this pull request may close these issues.

2 participants