Closed Bug 1914890 Opened 3 months ago Closed 3 months ago

rust-analyzer fails to build mozbuild on aarch64 Windows

Categories

(Firefox Build System :: General, task)

task

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: saschanaz, Unassigned)

References

(Blocks 1 open bug)

Details

error: could not compile `mozbuild` (lib) due to 4 previous errors
The following warnings were emitted during compilation:


error: failed to run custom build command for `swgl v0.1.0 (D:\gecko\gfx\wr\swgl)`
note: To improve backtraces for build dependencies, set the CARGO_PROFILE_DEV_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.

Caused by:
  process didn't exit successfully: `D:\gecko\target\debug\build\swgl-50098b330f26c77e\build-script-build` (exit code: 1)
  --- stdout
  cargo:rerun-if-changed=D:\gecko\gfx\wr\swgl/../webrender/res/brush_blend.glsl
  cargo:rerun-if-changed=D:\gecko\gfx\wr\swgl/../webrender/res/shared.glsl
  cargo:rerun-if-changed=D:\gecko\gfx\wr\swgl/../webrender/res/base.glsl
  cargo:rerun-if-changed=D:\gecko\gfx\wr\swgl/../webrender/res/prim_shared.glsl
  cargo:rerun-if-changed=D:\gecko\gfx\wr\swgl/../webrender/res/rect.glsl
  cargo:rerun-if-changed=D:\gecko\gfx\wr\swgl/../webrender/res/render_task.glsl
  cargo:rerun-if-changed=D:\gecko\gfx\wr\swgl/../webrender/res/gpu_cache.glsl
  cargo:rerun-if-changed=D:\gecko\gfx\wr\swgl/../webrender/res/transform.glsl
  cargo:rerun-if-changed=D:\gecko\gfx\wr\swgl/../webrender/res/brush.glsl
  cargo:rerun-if-changed=D:\gecko\gfx\wr\swgl/../webrender/res/blend.glsl
  OPT_LEVEL = Some("1")
  TARGET = Some("aarch64-pc-windows-msvc")
  HOST = Some("aarch64-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=HOST_CC
  HOST_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  Info: default compiler flags are disabled
  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=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:rerun-if-env-changed=CC_SWGLPP
  CC_SWGLPP = None
  cargo:rerun-if-env-changed=TARGET_CC
  TARGET_CC = None
  RUSTC_LINKER = None
  cargo:rerun-if-env-changed=CROSS_COMPILE
  CROSS_COMPILE = None
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  cargo:warning=Failed to run: "cc" "--version"
  Info: default compiler flags are disabled
  cargo:rerun-if-env-changed=CFLAGS_SWGLPP
  CFLAGS_SWGLPP = Some("")

  --- stderr


  error occurred: Failed to find tool. Is `cc` installed? (see https://github.com/rust-lang/cc-rs#compile-time-requirements for help)


error: failed to run custom build command for `smoosh v0.1.0 (D:\gecko\js\src\frontend\smoosh)`
note: To improve backtraces for build dependencies, set the CARGO_PROFILE_DEV_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.

Caused by:
  process didn't exit successfully: `D:\gecko\target\debug\build\smoosh-ff63647249a31425\build-script-build` (exit code: 101)
  --- stderr
  thread 'main' panicked at js\src\frontend\smoosh\build.rs:5:9:
  Opcodes.h is out of sync. It's possible that the bytecode generated by jsparagus is based on older opcodes. Please run update_stencil.py in jsparagus. You can disable this check by setting JS_SMOOSH_DISABLE_OPCODE_CHECK environment variable.
  stack backtrace:
  note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Unclear what's causing this, but the "cc" failure seems like this might be another instance of MSVC detection failure?

Solved by mach ide vscode. How did I miss this. 🙂

Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.