theseus-os/Theseus

Error 127

amab8901 opened this issue · 1 comments

This is in main local branch. How can I get make run to work?

$ make build
info: component 'rust-src' is up to date

=================== BUILDING ALL CRATES ===================
         TARGET: "x86_64-unknown-theseus"
         KERNEL_PREFIX: "k#"
         APP_PREFIX: "a#"
         THESEUS_CONFIG (before build.rs script): ""
THESEUS_CFLAGS='' THESEUS_NANO_CORE_BUILD_DIR='/home/amab/src/Theseus/build/nano_core' RUST_TARGET_PATH='/home/amab/src/Theseus/cfg' RUSTFLAGS='--emit=obj -C debuginfo=2 -D unused-must-use -Z share-generics=no ' cargo build --release --workspace --features nano_core/bios -Z unstable-options -Z build-std=core,alloc -Z build-std-features=compiler-builtins-mem --target x86_64-unknown-theseus
   Compiling nano_core v0.1.0 (/home/amab/src/Theseus/kernel/nano_core)
    Finished release [optimized] target(s) in 2.52s
ld: warning: /home/amab/src/Theseus/build/nano_core/nano_core-x86_64.bin has a LOAD segment with RWX permissions
    Blocking waiting for file lock on package cache
    Blocking waiting for file lock on package cache
    Blocking waiting for file lock on package cache
    Blocking waiting for file lock on package cache
    Finished release [optimized] target(s) in 0.01s
     Running `tools/demangle_readelf_file/target/release/demangle_symbol /dev/fd/63`
    Finished release [optimized] target(s) in 0.02s
     Running `tools/serialize_nano_core/target/release/serialize_nano_core /dev/fd/63`
make: /bin/bash: Argument list too long
make: *** [Makefile:223: build] Error 127

$ git status
On branch theseus_main
Your branch is up to date with 'upstream/theseus_main'.

nothing to commit, working tree clean

The problem is solved now. I think the solution was to do cargo clean, I'm not sure