Skip to content
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

manual fails to build on master #37903

Closed
disassembler opened this issue Mar 27, 2018 · 6 comments
Closed

manual fails to build on master #37903

disassembler opened this issue Mar 27, 2018 · 6 comments

Comments

@disassembler
Copy link
Member

Issue description

Someone in IRC reported that the manual fails to build on master. I tried just now and it fails with an architecture error:

error: a 'aarch64-linux' is required to build '/nix/store/lw85sjkph6rxj4piw00i2pnnj2436gb1-options-db.xml.drv', but I am a 'x86_64-linux'

I'm not sure if this is supposed to not work anymore and requires building of all architectures to build the options db for the manual itself, or if this is a bug that needs fixed.

Steps to reproduce

git clone https://github.com/NixOS/nixpkgs --branch=master
nix-build -A manual nixos/release.nix

Technical details

  • system: "x86_64-linux"
  • host os: Linux 4.14.27, NixOS, 18.03.git.61ede376684 (Impala)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.0
  • channels(root): "nixos-18.03pre130932.cc4677c36ee"
  • nixpkgs: /home/sam/nixpkgs/custom
@grahamc
Copy link
Member

grahamc commented Mar 27, 2018

This is a bug, the docs should not depend on an aarch64 builder.

@grahamc
Copy link
Member

grahamc commented Mar 27, 2018

nix-build -A manual.x86_64-linux nixos/release.nix works

@oxij
Copy link
Member

oxij commented Mar 27, 2018 via email

@coreyoconnor
Copy link
Contributor

I investigated the xsltproc thing a bit more:

  1. the xsltproc has a patch to remove the recursion.
  2. xsltproc-ns does not have an equivalent patch.

I went for adding an equivalent patch to xsltproc-ns:

which might be overly aggressive. If that does look reasonable I'll open a PR for it.

@oxij
Copy link
Member

oxij commented Mar 30, 2018 via email

@vcunat
Copy link
Member

vcunat commented May 1, 2018

nix-build -A manual nixos/release.nix is an incorrect command, as it builds manuals for multiple architectures. I think you wanted manual.x86_64-linux. It feels natural to me that that aarch64 manual would be built on aarch64...

@vcunat vcunat closed this as completed May 1, 2018
oxij added a commit to oxij/nixpkgs that referenced this issue Mar 5, 2019
See NixOS#37903 (comment)
for details. With the previous patch and some custom modules included in
`configuration.nix` the above bug is very easy to trigger.

This is a simplest workaround I have. A proper solution would look like
NixOS#37903 (comment).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants