-
-
Notifications
You must be signed in to change notification settings - Fork 164
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
make: *** [cargo] Error 101 #1076
Comments
Thanks for the report! We don't actually use the Docker build workflow very often, so it seems like it's been neglected for a while. The key error is that it cannot find I'm about to leave on vacation for a couple of weeks, but in the interim perhaps @tsoutsman can help you get things to build properly. If not, you should be able to build correctly on your native host OS. |
Hmm, it might be that we're missing a trailing slash This was fixed in nasm v2.14, so it might be the case that the nasm version in the docker image needs to be updates. |
@ShaunLinTW could you try the |
@tsoutsman Hi, I tried to switch to =================== BUILDING ALL CRATES =================== Caused by: Caused by: Caused by: |
... |
This means you forgot to check out all the submodules when you cloned the repository. See the Readme section about building & running for details on that. |
Looks like you are perhaps running on WSL/WSL2? If so, you don't have an X server installed or configured correctly. There's also a section about that on our Readme, in the WSL part. Let me know if you are able to run other graphical X applications but not QEMU -- this problem isn't Theseus-related unfortunately. |
Ok! Thanks for the suggestion! It's finally worked! |
Great! Would you mind sharing exactly which step/instruction made things work for you? Perhaps I can clarify or highlight it in the Readme. |
"make run" in the docker failed with following error:
...
Compiling wasmi v0.9.1
Compiling multiple_heaps v0.1.0 (/Theseus/kernel/multiple_heaps)
Compiling device_manager v0.1.0 (/Theseus/kernel/device_manager)
Compiling exceptions_full v0.1.0 (/Theseus/kernel/exceptions_full)
Compiling first_application v0.1.0 (/Theseus/kernel/first_application)
Compiling simd_personality v0.1.0 (/Theseus/kernel/simd_personality)
Compiling task_fs v0.1.0 (/Theseus/kernel/task_fs)
Compiling utf8parse v0.2.1
Compiling futures-io v0.3.25
Compiling arrayvec v0.5.2
Compiling wasi v0.10.0+wasi-snapshot-preview1 (https://github.com/bytecodealliance/wasi?rev=45536ac956a6211e3cff047f36cf19d6da82fd95#45536ac9)
Compiling tock-registers v0.7.0
Compiling vte_generate_state_changes v0.1.1
Compiling cortex-a v7.5.0
Compiling vte v0.10.1
Compiling wasi_interpreter v0.1.0 (/Theseus/kernel/wasi_interpreter)
Compiling futures v0.3.25
Compiling captain v0.1.0 (/Theseus/kernel/captain)
Compiling panic_entry v0.1.0 (/Theseus/kernel/panic_entry)
Compiling nano_core v0.1.0 (/Theseus/kernel/nano_core)
error: failed to run custom build command for
nano_core v0.1.0 (/Theseus/kernel/nano_core)
Caused by:
process didn't exit successfully:
/Theseus/target/release/build/nano_core-76d712d7caedb0c7/build-script-build
(exit status: 101)--- stdout
cargo:rerun-if-changed=/Theseus/kernel/nano_core/src/asm
cargo:rerun-if-changed=/Theseus/build/nano_core/compiled_asm/bios
--- stderr
/Theseus/kernel/nano_core/src/asm/ap_boot.asm:1: fatal: unable to open include file
defines.asm' thread 'main' panicked at kernel/nano_core/build.rs:167:13: assertion failed: Command::new("nasm").args(["-f", "elf64"]).arg("-i").arg(&include_path).arg("-o").arg(&output_path).arg(file.path()).args(cflags.split(' ')).status().expect("failed to acquire nasm output status").success() note: run with
RUST_BACKTRACE=1` environment variable to display a backtracewarning: build failed, waiting for other jobs to finish...
Makefile:320: recipe for target 'cargo' failed
make: *** [cargo] Error 101
The text was updated successfully, but these errors were encountered: