NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.08k stars 14.06k forks source link

rustc-bootstrap: missing bootstrap url for platform armv6l-linux #70411

Open davidak opened 5 years ago

davidak commented 5 years ago

Describe the bug

I tried to install NextCloud on an old Raspberry Pi, but it fails with this error.

It is not really important for me. I wanted to use it for an art project...

[root@nixos:~]# nixos-rebuild switch --fast --option binary-caches http://nixos-arm.dezgeg.me/channel --option binary-cache-public-keys nixos-arm.dezgeg.me-1:xBaUKS3n17BZPKeyxL4JfbTqECsT+ysbDJz29kLFRW0=%
GC Warning: Bad initial heap size 100000 - ignoring it.
GC Warning: Bad initial heap size 100000 - ignoring it.
building the system configuration...
GC Warning: Bad initial heap size 100000 - ignoring it.
error: while evaluating the attribute 'config.system.build.toplevel' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/top-level.nix:276:5:
while evaluating 'foldr' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:39:20, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/top-level.nix:140:12:
while evaluating 'fold'' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:42:15, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:46:8:
while evaluating 'showWarnings' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/top-level.nix:133:18, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/top-level.nix:137:10:
while evaluating 'foldr' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:39:20, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/top-level.nix:133:23:
while evaluating 'fold'' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:42:15, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:46:8:
while evaluating the attribute 'warnings' at undefined position:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:75:45, called from undefined position:
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:338:9:
while evaluating the option `warnings':
while evaluating the attribute 'isDefined' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:375:5:
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:364:9:
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:458:7:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:350:28, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:350:17:
while evaluating 'dischargeProperties' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:417:25, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:351:62:
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:234:44:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:234:10, called from undefined position:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/boot/systemd.nix:752:51, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:234:16:
while evaluating 'optional' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:241:20, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/boot/systemd.nix:753:7:
while evaluating the attribute 'serviceConfig.Type' at undefined position:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:75:45, called from undefined position:
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:338:9:
while evaluating the option `systemd.services.nextcloud-setup.serviceConfig':
while evaluating the attribute 'isDefined' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:375:5:
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:364:9:
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:458:7:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:350:28, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:350:17:
while evaluating 'dischargeProperties' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:417:25, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:351:62:
while evaluating the attribute 'condition' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:502:14:
while evaluating the attribute 'condition' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:502:14:
while evaluating the attribute 'script' at undefined position:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:75:45, called from undefined position:
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:338:9:
while evaluating the option `systemd.services.nextcloud-setup.script':
while evaluating the attribute 'isDefined' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:375:5:
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:364:9:
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:458:7:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:350:28, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:350:17:
while evaluating 'dischargeProperties' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:417:25, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:351:62:
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:234:44:
while evaluating the attribute 'text' of the derivation 'nextcloud-occ' at /nix/store/0ngjqfvgns9zdac21vmd8n9x04vcwsd1-nixos-19.03.173553.6420e2649fa/nixos/pkgs/build-support/trivial-builders.nix:7:14:
while evaluating the attribute 'text' of the derivation 'php.ini' at /nix/store/0ngjqfvgns9zdac21vmd8n9x04vcwsd1-nixos-19.03.173553.6420e2649fa/nixos/pkgs/build-support/trivial-builders.nix:7:14:
while evaluating the attribute 'configureFlags' of the derivation 'php-imagick-3.4.3' at /nix/store/0ngjqfvgns9zdac21vmd8n9x04vcwsd1-nixos-19.03.173553.6420e2649fa/nixos/pkgs/build-support/build-pecl.nix:15:3:
while evaluating the attribute 'buildInputs' of the derivation 'imagemagick-6.9.9-34' at /nix/store/0ngjqfvgns9zdac21vmd8n9x04vcwsd1-nixos-19.03.173553.6420e2649fa/nixos/pkgs/applications/graphics/ImageMagick/default.nix:35:3:
while evaluating the attribute 'buildInputs' of the derivation 'djvulibre-3.5.27' at /nix/store/0ngjqfvgns9zdac21vmd8n9x04vcwsd1-nixos-19.03.173553.6420e2649fa/nixos/pkgs/applications/misc/djvulibre/default.nix:4:3:
while evaluating the attribute 'nativeBuildInputs' of the derivation 'librsvg-2.44.12' at /nix/store/0ngjqfvgns9zdac21vmd8n9x04vcwsd1-nixos-19.03.173553.6420e2649fa/nixos/pkgs/development/libraries/librsvg/default.nix:11:3:
while evaluating the attribute 'configureFlags' of the derivation 'rustc-1.32.0' at /nix/store/0ngjqfvgns9zdac21vmd8n9x04vcwsd1-nixos-19.03.173553.6420e2649fa/nixos/pkgs/development/compilers/rust/rustc.nix:27:3:
while evaluating the attribute 'installPhase' of the derivation 'rustc-bootstrap-1.31.1' at /nix/store/0ngjqfvgns9zdac21vmd8n9x04vcwsd1-nixos-19.03.173553.6420e2649fa/nixos/pkgs/development/compilers/rust/binaryBuild.nix:22:5:
missing bootstrap url for platform armv6l-linux

To Reproduce Steps to reproduce the behavior:

  1. boot this image https://www.cs.helsinki.fi/u/tmtynkky/nixos-arm/installer/sd-image-armv6l-linux.img (19.03 beta from 2018)
  2. set 19.03 stable channel
  3. set configuration.nix to https://github.com/davidak/nixos-config/blob/0feba8cfdcb3c2e999b1b68c80930fe50053fc71/machines/cloud/configuration.nix
  4. rebuild from community arm binary cache: nixos-rebuild switch --fast --option binary-caches http://nixos-arm.dezgeg.me/channel --option binary-cache-public-keys nixos-arm.dezgeg.me-1:xBaUKS3n17BZPKeyxL4JfbTqECsT+ysbDJz29kLFRW0=%

Expected behavior No errors :)

Metadata

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute: rustc-bootstrap
# a list of nixos modules affected by the problem
module: nextcloud
matthewbauer commented 5 years ago

I'm not able to find armv6 builds on the Rust site.

It should be at something like this:

https://static.rust-lang.org/dist/rust-1.37.0-armv6-unknown-linux-gnueabi.tar.gz

stale[bot] commented 4 years ago

Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse. 3. Ask on the #nixos channel on irc.freenode.net.
ShamrockLee commented 1 year ago

Encountering similar errors when doing nix flake check on a flake with output platform armv5tel-linux. Not sure if its related to this issue.

$ nix flake check
warning: Empty last update token.
warning: Git tree '/home/shamrock/path/to/flake' is dirty
warning: Empty last update token.
error: missing bootstrap url for platform armv5te-unknown-linux-gnueabi
(use '--show-trace' to show detailed location information)