tpwrules / nixos-apple-silicon

Resources to install NixOS bare metal on Apple Silicon Macs
MIT License
742 stars 73 forks source link

Kernel build fails #189

Closed flokli closed 2 months ago

flokli commented 2 months ago

Using nixpkgs @ 19332fff6989b32ba4add9f2a908a40ad32d2a76:

***
*** Rust compiler 'rustc' is too new. This may or may not work.
***   Your version:     1.77.1
***   Expected version: 1.71.1
***
***
*** Rust bindings generator 'bindgen' is too new. This may or may not work.
***   Your version:     0.69.4
***   Expected version: 0.65.1
***
***
*** Please see Documentation/rust/quick-start.rst for details
*** on how to set up the Rust support.
***
  RUSTC L rust/core.o
warning: unknown and unstable feature specified for `-Ctarget-feature`: `fp-armv8`
  |
  = note: it is still passed through to the codegen backend, but use of this feature might be unsound and the behavior of this feature can change in the future
  = help: consider filing a feature request

warning: 1 warning emitted

  EXPORTS rust/exports_core_generated.h
  RUSTC P rust/libmacros.so
  BINDGEN rust/bindings/bindings_generated.rs
  BINDGEN rust/bindings/bindings_helpers_generated.rs
  RUSTC L rust/compiler_builtins.o
warning: the feature `compiler_builtins` is internal to the compiler or standard library
  --> /build/source/rust/compiler_builtins.rs:22:12
   |
22 | #![feature(compiler_builtins)]
   |            ^^^^^^^^^^^^^^^^^
   |
   = note: using it is strongly discouraged
   = note: `#[warn(internal_features)]` on by default

warning: unknown and unstable feature specified for `-Ctarget-feature`: `fp-armv8`
  |
  = note: it is still passed through to the codegen backend, but use of this feature might be unsound and the behavior of this feature can change in the future
  = help: consider filing a feature request

warning: 2 warnings emitted

  RUSTC L rust/alloc.o
error[E0432]: unresolved imports `core::slice::GroupBy`, `core::slice::GroupByMut`
  --> /build/source/rust/alloc/slice.rs:63:23
   |
63 | pub use core::slice::{GroupBy, GroupByMut};
   |                       ^^^^^^^  ^^^^^^^^^^ no `GroupByMut` in `slice`
   |                       |
   |                       no `GroupBy` in `slice`

warning: the feature `array_methods` has been stable since 1.77.0 and no longer requires an attribute to enable
   --> /build/source/rust/alloc/lib.rs:108:12
    |
108 | #![feature(array_methods)]
    |            ^^^^^^^^^^^^^
    |
    = note: `#[warn(stable_features)]` on by default

warning: the feature `ptr_addr_eq` has been stable since 1.76.0 and no longer requires an attribute to enable
   --> /build/source/rust/alloc/lib.rs:145:12
    |
145 | #![feature(ptr_addr_eq)]
    |            ^^^^^^^^^^^

error[E0635]: unknown feature `core_panic`
   --> /build/source/rust/alloc/lib.rs:125:12
    |
125 | #![feature(core_panic)]
    |            ^^^^^^^^^^

error: aborting due to 2 previous errors; 2 warnings emitted

Some errors have detailed explanations: E0432, E0635.
For more information about an error, try `rustc --explain E0432`.
make[3]: *** [../rust/Makefile:443: rust/alloc.o] Error 1
make[2]: *** [/build/source/Makefile:1208: prepare] Error 2
make[1]: *** [/build/source/Makefile:234: __sub-make] Error 2
make[1]: Leaving directory '/build/source/build'
make: *** [Makefile:234: __sub-make] Error 2
vethyn commented 2 months ago

Have the same problem, installed nixos an hour ago and did a nixos-rebuild switch --upgrade and it breaks with the same error.

tpwrules commented 2 months ago

Fixed in the latest release.