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

Building nitro outside of docker #2851

Open
MagicalTux opened this issue Dec 23, 2024 · 2 comments
Open

Building nitro outside of docker #2851

MagicalTux opened this issue Dec 23, 2024 · 2 comments

Comments

@MagicalTux
Copy link

Describe the bug
Trying to build nitro outside of docker fails.

Using nitro at tag v3.2.1

To Reproduce
Steps to reproduce the behavior:

  1. Start from a modern system
  2. Downgrade libraries as required: nodejs 18 (anything more will cause hardhat to fail) and go 1.22 (go 1.23 cause failure)
  3. run make or make all
  4. See error
target/bin/prover target/machines/latest/replay.wasm --generate-binaries target/machines/latest \
-l target/machines/latest/forward.wasm -l target/machines/latest/soft-float.wasm -l target/machines/latest/wasi_stub.wasm -l target/machines/latest/host_io.wasm -l target/machines/latest/user_host.wasm -l target/machines/latest/arbcompress.wasm -l target/machines/latest/program_exec.wasm
Error: failed to validate WASM binary at "target/machines/latest/wasi_stub.wasm"

Caused by:
   0: failed to validate target/machines/latest/wasi_stub.wasm
   1: reference-types not enabled: zero byte expected (at offset 0x18c3)

Location:
    prover/src/binary.rs:329:10

Expected behavior
There are no clear building instructions, but this error seems to happen maybe because the wasm code is generated using a recent version of rust (rust 1.83.0 with wasi sdk 25)

Additional context
I've tried running the various make operations done in Dockerfile, but this fails also with the same error

@MagicalTux
Copy link
Author

Possibly linked to: rust-lang/rust#128475

@gligneul
Copy link
Contributor

Check this page for instructions on how to build nitro locally: https://docs.arbitrum.io/run-arbitrum-node/nitro/build-nitro-locally

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