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

mdbook: init at 0.1.3 #35250

Merged
merged 3 commits into from Feb 23, 2018
Merged

mdbook: init at 0.1.3 #35250

merged 3 commits into from Feb 23, 2018

Conversation

Havvy
Copy link
Contributor

@Havvy Havvy commented Feb 20, 2018

Motivation for this change

I want to install mdbook for work on the Rust reference using nixpkgs instead of via cargo install.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@Mic92
Copy link
Member

Mic92 commented Feb 20, 2018

@GrahamcOfBorg build mdbook

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Partial log (click to expand)

          clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)


error: aborting due to previous error

error: Could not compile `mdbook`.

To learn more, run the command again with --verbose.
builder for '/nix/store/7mgw97cd6l9cjnk25r2w789h38jw0y7j-mdbook-0.1.3.drv' failed with exit code 101
error: build of '/nix/store/7mgw97cd6l9cjnk25r2w789h38jw0y7j-mdbook-0.1.3.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

cp: -r not specified; omitting directory 'target/release/examples'
cp: -r not specified; omitting directory 'target/release/build'
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/8vjzb26m6x7nnxp6sj7gj39qhywp5d2g-mdbook-0.1.3
shrinking /nix/store/8vjzb26m6x7nnxp6sj7gj39qhywp5d2g-mdbook-0.1.3/bin/mdbook
strip is /nix/store/adidfx4pa7vmvby0gjqqmiwg2x49yr27-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/8vjzb26m6x7nnxp6sj7gj39qhywp5d2g-mdbook-0.1.3/bin
patching script interpreter paths in /nix/store/8vjzb26m6x7nnxp6sj7gj39qhywp5d2g-mdbook-0.1.3
checking for references to /build in /nix/store/8vjzb26m6x7nnxp6sj7gj39qhywp5d2g-mdbook-0.1.3...
/nix/store/8vjzb26m6x7nnxp6sj7gj39qhywp5d2g-mdbook-0.1.3

@Havvy
Copy link
Contributor Author

Havvy commented Feb 20, 2018

I don't have a MacOS system nor know anything about it. How would I fix the failure? Thanks LnL!

@Mic92
Copy link
Member

Mic92 commented Feb 21, 2018

@GrahamcOfBorg build mdbook

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Partial log (click to expand)

          clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)


error: aborting due to previous error

error: Could not compile `mdbook`.

To learn more, run the command again with --verbose.
builder for '/nix/store/syd9n315p00pzykxnvl9nf0pyl6l8pkr-mdbook-0.1.3.drv' failed with exit code 101
error: build of '/nix/store/syd9n315p00pzykxnvl9nf0pyl6l8pkr-mdbook-0.1.3.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

cp: -r not specified; omitting directory 'target/release/native'
cp: -r not specified; omitting directory 'target/release/examples'
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/8vjzb26m6x7nnxp6sj7gj39qhywp5d2g-mdbook-0.1.3
shrinking /nix/store/8vjzb26m6x7nnxp6sj7gj39qhywp5d2g-mdbook-0.1.3/bin/mdbook
strip is /nix/store/adidfx4pa7vmvby0gjqqmiwg2x49yr27-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/8vjzb26m6x7nnxp6sj7gj39qhywp5d2g-mdbook-0.1.3/bin 
patching script interpreter paths in /nix/store/8vjzb26m6x7nnxp6sj7gj39qhywp5d2g-mdbook-0.1.3
checking for references to /tmp/nix-build-mdbook-0.1.3.drv-0 in /nix/store/8vjzb26m6x7nnxp6sj7gj39qhywp5d2g-mdbook-0.1.3...
/nix/store/8vjzb26m6x7nnxp6sj7gj39qhywp5d2g-mdbook-0.1.3

@Mic92
Copy link
Member

Mic92 commented Feb 21, 2018

@LnL7 does rust also respect NIX_LDFLAGS on darwin?

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Partial log (click to expand)

cannot build derivation '/nix/store/d6adqr78k0r3dkbwdw1aw2dvmg0qpbv6-rust_serde_derive-1.0.18.drv': 6 dependencies couldn't be built
cannot build derivation '/nix/store/1srab01w45mf8sq84v490z7g2x393240-rust_crates-io-0.11.0.drv': 30 dependencies couldn't be built
cannot build derivation '/nix/store/ysgr8mc5x5jn23zlx8526zrywdhymqms-rust_docopt-0.8.1.drv': 19 dependencies couldn't be built
cannot build derivation '/nix/store/k45a8czj6hhkp3gdfzf9msn6wczy9z36-rust_git2-curl-0.7.0.drv': 20 dependencies couldn't be built
cannot build derivation '/nix/store/f94xyc6glqgzmy3pq9rjrcg2j6arjimd-rust_ignore-0.2.2.drv': 18 dependencies couldn't be built
cannot build derivation '/nix/store/31a3lv5912r9z23snbq8zry9cqn0jji4-rust_cargo-0.22.0.drv': 78 dependencies couldn't be built
cannot build derivation '/nix/store/l336s50mcqp3qabawxwdy4rsk5p6hmhc-rust_cargo-vendor-0.1.13.drv': 79 dependencies couldn't be built
cannot build derivation '/nix/store/rac5c9l9iiql1jh3lg3snd2v07k4f21s-mdbook-0.1.3-vendor.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/5ifj3li7v7c7g9i82ws24v6wdc8nd4v2-mdbook-0.1.3.drv': 3 dependencies couldn't be built
�[31;1merror:�[0m build of '/nix/store/5ifj3li7v7c7g9i82ws24v6wdc8nd4v2-mdbook-0.1.3.drv' failed

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Partial log (click to expand)

cannot build derivation '/nix/store/d6adqr78k0r3dkbwdw1aw2dvmg0qpbv6-rust_serde_derive-1.0.18.drv': 6 dependencies couldn't be built
cannot build derivation '/nix/store/1srab01w45mf8sq84v490z7g2x393240-rust_crates-io-0.11.0.drv': 30 dependencies couldn't be built
cannot build derivation '/nix/store/ysgr8mc5x5jn23zlx8526zrywdhymqms-rust_docopt-0.8.1.drv': 19 dependencies couldn't be built
cannot build derivation '/nix/store/k45a8czj6hhkp3gdfzf9msn6wczy9z36-rust_git2-curl-0.7.0.drv': 20 dependencies couldn't be built
cannot build derivation '/nix/store/f94xyc6glqgzmy3pq9rjrcg2j6arjimd-rust_ignore-0.2.2.drv': 18 dependencies couldn't be built
cannot build derivation '/nix/store/31a3lv5912r9z23snbq8zry9cqn0jji4-rust_cargo-0.22.0.drv': 78 dependencies couldn't be built
cannot build derivation '/nix/store/l336s50mcqp3qabawxwdy4rsk5p6hmhc-rust_cargo-vendor-0.1.13.drv': 79 dependencies couldn't be built
cannot build derivation '/nix/store/rac5c9l9iiql1jh3lg3snd2v07k4f21s-mdbook-0.1.3-vendor.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/5ifj3li7v7c7g9i82ws24v6wdc8nd4v2-mdbook-0.1.3.drv': 3 dependencies couldn't be built
�[31;1merror:�[0m build of '/nix/store/5ifj3li7v7c7g9i82ws24v6wdc8nd4v2-mdbook-0.1.3.drv' failed

@LnL7
Copy link
Member

LnL7 commented Feb 21, 2018

@GrahamcOfBorg build mdbook

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Partial log (click to expand)

          clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)


error: aborting due to previous error

error: Could not compile `mdbook`.

To learn more, run the command again with --verbose.
builder for '/nix/store/3n7y62s9cjvqi7kn6znycy5iq68gqr1v-mdbook-0.1.3.drv' failed with exit code 101
error: build of '/nix/store/3n7y62s9cjvqi7kn6znycy5iq68gqr1v-mdbook-0.1.3.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

cp: -r not specified; omitting directory 'target/release/native'
cp: -r not specified; omitting directory 'target/release/examples'
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/8vjzb26m6x7nnxp6sj7gj39qhywp5d2g-mdbook-0.1.3
shrinking /nix/store/8vjzb26m6x7nnxp6sj7gj39qhywp5d2g-mdbook-0.1.3/bin/mdbook
strip is /nix/store/adidfx4pa7vmvby0gjqqmiwg2x49yr27-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/8vjzb26m6x7nnxp6sj7gj39qhywp5d2g-mdbook-0.1.3/bin 
patching script interpreter paths in /nix/store/8vjzb26m6x7nnxp6sj7gj39qhywp5d2g-mdbook-0.1.3
checking for references to /tmp/nix-build-mdbook-0.1.3.drv-0 in /nix/store/8vjzb26m6x7nnxp6sj7gj39qhywp5d2g-mdbook-0.1.3...
/nix/store/8vjzb26m6x7nnxp6sj7gj39qhywp5d2g-mdbook-0.1.3

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Partial log (click to expand)

cannot build derivation '/nix/store/d6adqr78k0r3dkbwdw1aw2dvmg0qpbv6-rust_serde_derive-1.0.18.drv': 6 dependencies couldn't be built
cannot build derivation '/nix/store/1srab01w45mf8sq84v490z7g2x393240-rust_crates-io-0.11.0.drv': 30 dependencies couldn't be built
cannot build derivation '/nix/store/ysgr8mc5x5jn23zlx8526zrywdhymqms-rust_docopt-0.8.1.drv': 19 dependencies couldn't be built
cannot build derivation '/nix/store/k45a8czj6hhkp3gdfzf9msn6wczy9z36-rust_git2-curl-0.7.0.drv': 20 dependencies couldn't be built
cannot build derivation '/nix/store/f94xyc6glqgzmy3pq9rjrcg2j6arjimd-rust_ignore-0.2.2.drv': 18 dependencies couldn't be built
cannot build derivation '/nix/store/31a3lv5912r9z23snbq8zry9cqn0jji4-rust_cargo-0.22.0.drv': 78 dependencies couldn't be built
cannot build derivation '/nix/store/l336s50mcqp3qabawxwdy4rsk5p6hmhc-rust_cargo-vendor-0.1.13.drv': 79 dependencies couldn't be built
cannot build derivation '/nix/store/rac5c9l9iiql1jh3lg3snd2v07k4f21s-mdbook-0.1.3-vendor.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/5ifj3li7v7c7g9i82ws24v6wdc8nd4v2-mdbook-0.1.3.drv': 3 dependencies couldn't be built
�[31;1merror:�[0m build of '/nix/store/5ifj3li7v7c7g9i82ws24v6wdc8nd4v2-mdbook-0.1.3.drv' failed

@Havvy
Copy link
Contributor Author

Havvy commented Feb 23, 2018

Marked as broken on Darwin. aarch64 is failing because it's trying to build LLVM and timing out.

@Mic92 Mic92 merged commit a35d106 into NixOS:master Feb 23, 2018
@Havvy Havvy deleted the mdbook branch February 23, 2018 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants