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

failed to build compiler on raspberry pi 5 #6514

Open
Anton-4 opened this issue Feb 7, 2024 · 2 comments
Open

failed to build compiler on raspberry pi 5 #6514

Anton-4 opened this issue Feb 7, 2024 · 2 comments

Comments

@Anton-4
Copy link
Collaborator

Anton-4 commented Feb 7, 2024

$ cargo build --bin roc
   Compiling inkwell v0.2.0 (https://github.com/roc-lang/inkwell?branch=inkwell-llvm-16#d1a59639)
   Compiling llvm-sys v160.1.3
   Compiling roc_bitcode_bc v0.0.1 (/home/username/gitrepos/roc-no-nix/roc/crates/compiler/builtins/bitcode/bc)
   Compiling packed_struct v0.10.1
   Compiling wasi_libc_sys v0.0.1 (/home/username/gitrepos/roc-no-nix/roc/crates/wasi-libc-sys)
   Compiling roc_bitcode v0.0.1 (/home/username/gitrepos/roc-no-nix/roc/crates/compiler/builtins/bitcode)
   Compiling roc_alias_analysis v0.0.1 (/home/username/gitrepos/roc-no-nix/roc/crates/compiler/alias_analysis)
   Compiling iced-x86 v1.20.0
   Compiling bincode v1.3.3
   Compiling roc_wasm_module v0.0.1 (/home/username/gitrepos/roc-no-nix/roc/crates/wasm_module)
error: failed to run custom build command for `roc_bitcode v0.0.1 (/home/username/gitrepos/roc-no-nix/roc/crates/compiler/builtins/bitcode)`

Caused by:
  process didn't exit successfully: `/home/username/gitrepos/roc-no-nix/roc/target/debug/build/roc_bitcode-8ad3ad2d9259ea18/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=build.rs
  Compiling zig object `object` to: /home/username/gitrepos/roc-no-nix/roc/crates/compiler/builtins/bitcode/zig-out/builtins-host.o

  --- stderr
  An internal compiler expectation was broken.
  This is definitely a compiler bug.
  Please file an issue here: https://github.com/roc-lang/roc/issues/new/choose
  thread 'main' panicked at 'zig build object -Drelease=true failed with:

    thread 43475 panic: reached unreachable code
  Panicked during a panic. Aborting.
  error: the following build command crashed:
  /home/username/gitrepos/roc-no-nix/roc/crates/compiler/builtins/bitcode/zig-cache/o/186ff62e22bee449d32f9bb2eaf03785/build /home/username/Downloads/zig-linux-aarch64-0.11.0/zig /home/username/gitrepos/roc-no-nix/roc/crates/compiler/builtins/bitcode /home/username/gitrepos/roc-no-nix/roc/crates/compiler/builtins/bitcode/zig-cache /home/username/.cache/zig object -Drelease=true

  ', crates/compiler/builtins/bitcode/build.rs:188:21
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for `roc_bitcode_bc v0.0.1 (/home/username/gitrepos/roc-no-nix/roc/crates/compiler/builtins/bitcode/bc)`

Caused by:
  process didn't exit successfully: `/home/username/gitrepos/roc-no-nix/roc/target/debug/build/roc_bitcode_bc-067c96be19ad5bbf/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=build.rs
  Compiling host ir to: /home/username/gitrepos/roc-no-nix/roc/crates/compiler/builtins/bitcode/bc/../zig-out/builtins-host.ll
  Compiling 64-bit bitcode to: /home/username/gitrepos/roc-no-nix/roc/crates/compiler/builtins/bitcode/bc/../zig-out/builtins-host.bc

  --- stderr
  An internal compiler expectation was broken.
  This is definitely a compiler bug.
  Please file an issue here: https://github.com/roc-lang/roc/issues/new/choose
  thread 'main' panicked at 'zig build ir -Drelease=true failed with:

    thread 43476 panic: reached unreachable code
  Panicked during a panic. Aborting.
  error: the following build command crashed:
  /home/username/gitrepos/roc-no-nix/roc/crates/compiler/builtins/bitcode/zig-cache/o/186ff62e22bee449d32f9bb2eaf03785/build /home/username/Downloads/zig-linux-aarch64-0.11.0/zig /home/username/gitrepos/roc-no-nix/roc/crates/compiler/builtins/bitcode /home/username/gitrepos/roc-no-nix/roc/crates/compiler/builtins/bitcode/zig-cache /home/username/.cache/zig ir -Drelease=true

  ', crates/compiler/builtins/bitcode/bc/build.rs:126:21
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

@Anton-4
Copy link
Collaborator Author

Anton-4 commented Feb 7, 2024

This should be due to ziglang/zig#16331

Fix is ready in PR ziglang/zig#17382

@Ocean-Moist
Copy link

same issue on windows, latest commit

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

2 participants