Skip to content

Instantly share code, notes, and snippets.

@raw-bin
Created August 13, 2019 12:55
Show Gist options
  • Save raw-bin/4022d6e7681a2706169de2df0dd62feb to your computer and use it in GitHub Desktop.
Save raw-bin/4022d6e7681a2706169de2df0dd62feb to your computer and use it in GitHub Desktop.
Build failure when building bootimage and the bundled 'basic' kernel
robin@blade:~/Work/experiments/rust/aarch64-mmu/bootimage (git master) [13:47:48]
$ git log --pretty=oneline HEAD -n 1
736ca1bf571f4745e49606017d6cf4e4216605d7 (HEAD -> master, tag: v0.7.7, origin/master, origin/HEAD) bootimage 0.7.7
$ cargo build
.
.
Compiling bootimage v0.7.7 (/Users/robin/Work/experiments/rust/aarch64-mmu/bootimage)
Finished dev [unoptimized + debuginfo] target(s) in 13.55s
$ cargo run --bin bootimage build --target example-kernels/x86_64-bootimage-example-kernels.json -- --bin basic
Finished dev [unoptimized + debuginfo] target(s) in 0.02s
Running `target/debug/bootimage build --target example-kernels/x86_64-bootimage-example-kernels.json -- --bin basic`
Building kernel
Updating crates.io index
Compiling compiler_builtins v0.1.19
Compiling core v0.0.0 (/Users/robin/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/libcore)
Compiling rustc-std-workspace-core v1.0.0 (/Users/robin/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/tools/rustc-std-workspace-core)
Compiling alloc v0.0.0 (/var/folders/vd/sjqtr76j6fdggt8ts0pspklh0000gn/T/xargo.jqt2zgg3Jjs9)
Finished release [optimized] target(s) in 17.85s
Compiling nodrop v0.1.13
Compiling cfg-if v0.1.4
Compiling memoffset v0.2.1
Compiling scopeguard v0.3.3
Compiling lazy_static v1.2.0
Compiling libc v0.2.42
Compiling itoa v0.4.2
Compiling dtoa v0.4.3
Compiling semver-parser v0.7.0
Compiling json v0.11.13
Compiling error-chain v0.12.0
Compiling either v1.5.0
Compiling wait-timeout v0.2.0
Compiling llvm-tools v0.1.1
Compiling serde v1.0.89
Compiling rayon-core v1.4.1
Compiling rayon v1.0.3
Compiling crossbeam-utils v0.2.2
error[E0463]: can't find crate for `std`
error[E0463]: can't find crate for `std`
|
= note: the `x86_64-bootimage-example-kernels-14530143262547086924` target may not be installed
error[E0463]: can't find crate for `std`
|
= note: the `x86_64-bootimage-example-kernels-14530143262547086924` target may not be installed
error[E0463]: can't find crate for `std`
|
= note: the `x86_64-bootimage-example-kernels-14530143262547086924` target may not be installed
error[E0463]: can't find crate for `std`
|
= note: the `x86_64-bootimage-example-kernels-14530143262547086924` target may not be installed
error[E0463]: can't find crate for `std`
--> /Users/robin/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.2.0/src/inline_lazy.rs:9:1
|
9 | extern crate std;
| ^^^^^^^^^^^^^^^^^ can't find crate
|
= note: the `x86_64-bootimage-example-kernels-14530143262547086924` target may not be installed
error[E0463]: can't find crate for `std`
|
= note: the `x86_64-bootimage-example-kernels-14530143262547086924` target may not be installed
error[E0463]: can't find crate for `std`
|
= note: the `x86_64-bootimage-example-kernels-14530143262547086924` target may not be installed
error: aborting due to previous error
error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.
error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.
error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.
error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.
error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.
For more information about this error, try `rustc --explain E0463`.
error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.
error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.
Compiling arrayvec v0.4.7
error: Could not compile `libc`.
warning: build failed, waiting for other jobs to finish...
error: Could not compile `llvm-tools`.
warning: build failed, waiting for other jobs to finish...
error: Could not compile `itoa`.
warning: build failed, waiting for other jobs to finish...
error: Could not compile `lazy_static`.
warning: build failed, waiting for other jobs to finish...
error: Could not compile `error-chain`.
warning: build failed, waiting for other jobs to finish...
error: Could not compile `semver-parser`.
warning: build failed, waiting for other jobs to finish...
error: Could not compile `dtoa`.
warning: build failed, waiting for other jobs to finish...
error: Could not compile `wait-timeout`.
warning: build failed, waiting for other jobs to finish...
error[E0463]: can't find crate for `std`
|
= note: the `x86_64-bootimage-example-kernels-14530143262547086924` target may not be installed
error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.
error: Could not compile `json`.
warning: build failed, waiting for other jobs to finish...
error[E0463]: can't find crate for `std`
|
= note: the `x86_64-bootimage-example-kernels-14530143262547086924` target may not be installed
error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.
error: Could not compile `crossbeam-utils`.
warning: build failed, waiting for other jobs to finish...
error[E0463]: can't find crate for `std`
|
= note: the `x86_64-bootimage-example-kernels-14530143262547086924` target may not be installed
error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.
error: Could not compile `serde`.
warning: build failed, waiting for other jobs to finish...
error: build failed
Error: Kernel build failed
$ cd example-kernels
$ cargo xbuild --target x86_64-bootimage-example-kernels.json --bin basic
Updating crates.io index
Compiling core v0.0.0 (/Users/robin/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/libcore)
Compiling compiler_builtins v0.1.19
Compiling rustc-std-workspace-core v1.0.0 (/Users/robin/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/tools/rustc-std-workspace-core)
Compiling alloc v0.0.0 (/var/folders/vd/sjqtr76j6fdggt8ts0pspklh0000gn/T/xargo.onLOCmWnwg19)
Finished release [optimized] target(s) in 18.35s
Updating crates.io index
Compiling libc v0.2.60
Compiling unicode-width v0.1.5
Compiling semver-parser v0.7.0
Compiling remove_dir_all v0.5.2
Compiling cc v1.0.37
Compiling bitflags v1.1.0
Compiling nodrop v0.1.13
Compiling llvm-tools v0.1.1
Compiling cast v0.2.2
Compiling ux v0.1.3
Compiling zero v0.1.2
Compiling bit_field v0.9.0
Compiling usize_conversions v0.2.0
Compiling array-init v0.0.4
Compiling getopts v0.2.19
Compiling xmas-elf v0.6.2
Compiling bootloader v0.6.4
Compiling semver v0.9.0
Compiling pulldown-cmark v0.0.3
Compiling rustc_version v0.2.3
Compiling rand v0.4.6
Compiling raw-cpuid v6.1.0
Compiling tempdir v0.3.7
Compiling skeptic v0.5.0
Compiling fixedvec v0.2.3
Compiling x86_64 v0.7.4
Compiling x86_64 v0.5.5
Compiling basic v0.1.0 (/Users/robin/Work/experiments/rust/aarch64-mmu/bootimage/example-kernels/basic)
Finished dev [unoptimized + debuginfo] target(s) in 15.69s
@raw-bin
Copy link
Author

raw-bin commented Aug 13, 2019

$ cargo run --bin bootimage -- build --target example-kernels/x86_64-bootimage-example-kernels.json -- --bin basic
Finished dev [unoptimized + debuginfo] target(s) in 0.02s
Running target/debug/bootimage build --target example-kernels/x86_64-bootimage-example-kernels.json -- --bin basic
Building kernel
Compiling lazy_static v1.2.0
Compiling libc v0.2.42
Compiling dtoa v0.4.3
Compiling semver-parser v0.7.0
Compiling itoa v0.4.2
Compiling json v0.11.13
Compiling error-chain v0.12.0
Compiling llvm-tools v0.1.1
Compiling wait-timeout v0.2.0
Compiling crossbeam-utils v0.2.2
Compiling serde v1.0.89
error[E0463]: can't find crate for std
|
= note: the x86_64-bootimage-example-kernels-14530143262547086924 target may not be installed

error: aborting due to previous error

For more information about this error, try rustc --explain E0463.
error: Could not compile wait-timeout.
warning: build failed, waiting for other jobs to finish...
error[E0463]: can't find crate for std
|
= note: the x86_64-bootimage-example-kernels-14530143262547086924 target may not be installed

error[E0463]: can't find crate for std
|
= note: the x86_64-bootimage-example-kernels-14530143262547086924 target may not be installed

error: aborting due to previous error

For more information about this error, try rustc --explain E0463.
error[E0463]: can't find crate for std
|
= note: the x86_64-bootimage-example-kernels-14530143262547086924 target may not be installed

error: aborting due to previous error

error: aborting due to previous error

For more information about this error, try rustc --explain E0463.
For more information about this error, try rustc --explain E0463.
error[E0463]: can't find crate for std

error[E0463]: can't find crate for std
|
= note: the x86_64-bootimage-example-kernels-14530143262547086924 target may not be installed

error: aborting due to previous error

For more information about this error, try rustc --explain E0463.
error: aborting due to previous error

For more information about this error, try rustc --explain E0463.
error: Could not compile itoa.
warning: build failed, waiting for other jobs to finish...
error[E0463]: can't find crate for std
|
= note: the x86_64-bootimage-example-kernels-14530143262547086924 target may not be installed

error: Could not compile crossbeam-utils.
warning: build failed, waiting for other jobs to finish...
error: Could not compile llvm-tools.
warning: build failed, waiting for other jobs to finish...
error: Could not compile dtoa.
warning: build failed, waiting for other jobs to finish...
error[E0463]: can't find crate for std
--> /Users/robin/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.2.0/src/inline_lazy.rs:9:1
|
9 | extern crate std;
| ^^^^^^^^^^^^^^^^^ can't find crate
|
= note: the x86_64-bootimage-example-kernels-14530143262547086924 target may not be installed

error: aborting due to previous error

error: Could not compile libc.
warning: build failed, waiting for other jobs to finish...
For more information about this error, try rustc --explain E0463.
error[E0463]: can't find crate for std
|
= note: the x86_64-bootimage-example-kernels-14530143262547086924 target may not be installed

error: aborting due to previous error

For more information about this error, try rustc --explain E0463.
error: aborting due to previous error

For more information about this error, try rustc --explain E0463.
error: Could not compile semver-parser.
warning: build failed, waiting for other jobs to finish...
error: Could not compile error-chain.
warning: build failed, waiting for other jobs to finish...
error: Could not compile lazy_static.
warning: build failed, waiting for other jobs to finish...
error[E0463]: can't find crate for std
|
= note: the x86_64-bootimage-example-kernels-14530143262547086924 target may not be installed

error: aborting due to previous error

For more information about this error, try rustc --explain E0463.
error: Could not compile json.
warning: build failed, waiting for other jobs to finish...
error[E0463]: can't find crate for std
|
= note: the x86_64-bootimage-example-kernels-14530143262547086924 target may not be installed

error: aborting due to previous error

For more information about this error, try rustc --explain E0463.
error: Could not compile serde.

To learn more, run the command again with --verbose.
Error: Kernel build failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment