-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
nix: disable documentation on risc-v #242019
Conversation
# mdbook errors out on risc-v | ||
!stdenv.buildPlatform.isRiscV |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could get forgotten about and be left here long after the need for it has gone away. It might be better to change mdbook
to exclude RiscV as a platform and then tryEval mdbook
here. The restriction is then much more likely to be removed in a timely way after mdbook
is fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mdbook does generally work on risc-v though. I tried building the test book included in the mdbook repo and it works. Not sure why it fails here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ping
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make this check based on if mdbook is supported/broken on the platform and change the platform/broken of mdbook accordingly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SuperSandro2000 see my other comment #242019 (comment)
# mdbook errors out on risc-v | ||
!stdenv.buildPlatform.isRiscV |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make this check based on if mdbook is supported/broken on the platform and change the platform/broken of mdbook accordingly.
Is this just the linkcheck plugin? Can we just disable that by making mdbook-linkcheck optional? |
Yes, but that requires patching. I tried adding postPatch = ''
substituteInPlace doc/manual/book.toml \
--replace "[output.linkcheck]" "[output_disabled.linkcheck]"
''; and I got
I'm not sure why that happens. |
no idea honestly |
The error message is misleading, the build is failing due to a segmentation fault, I have collected some information and filed a bug report with rustc (rust-lang/rust#114473) |
mdbook fails due to a rustc bug rust-lang/rust#114473
Thanks @MaxHearnden. I updated the comment. Since the bug is in rustc itself I think it's better to merge this rather than throwing the baby out with the bathwater and marking rustc as broken. I subscribed to the rust issue so I'll take care of reverting this when the bug is fixed. If nobody objects I'll merge this in a couple of days since it's blocking native risc-v builds |
Description of changes
mdbook fails with this error:
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)