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

gutenberg: init at 0.3.1 #33975

Merged
merged 1 commit into from
Feb 28, 2018
Merged

gutenberg: init at 0.3.1 #33975

merged 1 commit into from
Feb 28, 2018

Conversation

mnacamura
Copy link
Contributor

Motivation for this change

Reboot of #30737.

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.

@mnacamura
Copy link
Contributor Author

Built successfully on macOS but failed on NixOS:

...
   Compiling rayon v0.8.2
   Compiling serde_derive_internals v0.16.0
   Compiling walkdir v0.1.8
   Compiling miow v0.1.5
   Compiling ws v0.7.3
   Compiling hyper v0.10.13
error: failed to acquire jobserver token

Caused by:
  Resource temporarily unavailable (os error 11)
builder for ‘/nix/store/6k94frs8fwk4cczdmnscy6zsfjvy9d7h-gutenberg-0.2.2.drv’ failed with exit code 101
error: build of ‘/nix/store/6k94frs8fwk4cczdmnscy6zsfjvy9d7h-gutenberg-0.2.2.drv’ failed

Seems related to rust-lang/rust#46981.

@Mic92
Copy link
Member

Mic92 commented Jan 18, 2018

@GrahamcOfBorg build gutenberg

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failure for system: aarch64-linux

Package ‘cargo-0.23.0’ in /var/lib/gc-of-borg/nix-test-rs-2/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-2/pkgs/development/compilers/rust/cargo.nix:61 is not supported on ‘aarch64-linux’, refusing to evaluate.

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failure for system: x86_64-linux

   Compiling nom v3.2.1
thread '<unnamed>' panicked at 'failed to acquire jobserver token: Resource temporarily unavailable (os error 11)', src/librustc_trans/back/write.rs:error: failed to acquire jobserver token: Resource temporarily unavailable (os error 11)

1619:28
error: failed to acquire jobserver token

Caused by:
  Resource temporarily unavailable (os error 11)
builder for ‘/nix/store/0a1ib48mf3mmjpxlwxpary332j4kp53q-gutenberg-0.2.2.drv’ failed with exit code 101
error: build of ‘/nix/store/0a1ib48mf3mmjpxlwxpary332j4kp53q-gutenberg-0.2.2.drv’ failed

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failure for system: x86_64-darwin

   Compiling build_helper v0.1.0 (file:///private/tmp/nix-build-rustc-1.22.1.drv-0/rustc-1.22.1-src/src/build_helper)
   Compiling std v0.0.0 (file:///private/tmp/nix-build-rustc-1.22.1.drv-0/rustc-1.22.1-src/src/libstd)
   Compiling alloc_jemalloc v0.0.0 (file:///private/tmp/nix-build-rustc-1.22.1.drv-0/rustc-1.22.1-src/src/liballoc_jemalloc)
   Compiling compiler_builtins v0.0.0 (file:///private/tmp/nix-build-rustc-1.22.1.drv-0/rustc-1.22.1-src/src/rustc/compiler_builtins_shim)
   Compiling cmake v0.1.26
building of '/nix/store/4id92sy0wgjyl7lng5g8xpvjhqynk3n0-rustc-1.22.1.drv' timed out after 1800 seconds
cannot build derivation '/nix/store/qni4hi0ndq8gmd3m49n9rv3qp3a54mib-cargo-0.23.0.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/mhh4kmd6rr46b4vs61bg7cr9sgn679jq-gutenberg-0.2.2-vendor.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/f8f4gr1swn68h11nqjxnli2l3h5x0ssm-gutenberg-0.2.2.drv': 3 dependencies couldn't be built
error: build of '/nix/store/f8f4gr1swn68h11nqjxnli2l3h5x0ssm-gutenberg-0.2.2.drv' failed

@Mic92
Copy link
Member

Mic92 commented Jan 18, 2018

At least it is reproducible.

@mnacamura
Copy link
Contributor Author

Note: version bump from 0.2.2 to 0.3.0 needs rust 1.23 pest-parser/pest#190

@joachifm
Copy link
Contributor

@GrahamcOfBorg build gutenberg

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Partial log (click to expand)

    = note: the method `hash` exists but the following trait bounds were not satisfied:
            `*const str : std::hash::Hash`

error: aborting due to 5 previous errors

error: Could not compile `pest`.
warning: build failed, waiting for other jobs to finish...
error: build failed
builder for ‘/nix/store/xgbamvfp85z8gcc5xgrh9m08cwa13ngg-gutenberg-0.3.0.drv’ failed with exit code 101
error: build of ‘/nix/store/xgbamvfp85z8gcc5xgrh9m08cwa13ngg-gutenberg-0.3.0.drv’ failed

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Partial log (click to expand)

    = note: the method `hash` exists but the following trait bounds were not satisfied:
            `*const str : std::hash::Hash`

error: aborting due to 5 previous errors

error: Could not compile `pest`.
warning: build failed, waiting for other jobs to finish...
error: build failed
builder for '/nix/store/vz35pik6lzhqs10dc95r288v83n5km5l-gutenberg-0.3.0.drv' failed with exit code 101
error: build of '/nix/store/vz35pik6lzhqs10dc95r288v83n5km5l-gutenberg-0.3.0.drv' failed

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Partial log (click to expand)

cannot build derivation '/nix/store/apsv8rlmpvgizr0f06csflhc7y4yhmdv-rust_serde_derive-1.0.18.drv': 6 dependencies couldn't be built
cannot build derivation '/nix/store/8mipp70kwp7bkxiz6ylyxlqsfqxlb6pk-rust_crates-io-0.11.0.drv': 30 dependencies couldn't be built
cannot build derivation '/nix/store/7shhd7gnznc9knnhvz74mz3kr3wjjwsy-rust_docopt-0.8.1.drv': 19 dependencies couldn't be built
cannot build derivation '/nix/store/1jgbhra3z2hibkkdmwnli3fqr8s028m8-rust_git2-curl-0.7.0.drv': 20 dependencies couldn't be built
cannot build derivation '/nix/store/prckgsm3fhb9i11vg7x20qg964rg269r-rust_ignore-0.2.2.drv': 18 dependencies couldn't be built
cannot build derivation '/nix/store/5d4qsbv8545svcay45v4zzdji2b2f4w5-rust_cargo-0.22.0.drv': 78 dependencies couldn't be built
cannot build derivation '/nix/store/sv5cq2948fpj304v63h8ykd8v21j4l1d-rust_cargo-vendor-0.1.13.drv': 79 dependencies couldn't be built
cannot build derivation '/nix/store/3rwbfgnmcdmv7jv9raz4af83li3n3p29-gutenberg-0.3.0-vendor.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/lhc4zz9xw6srbgyi0qsd6lr8rm4qzx9i-gutenberg-0.3.0.drv': 3 dependencies couldn't be built
error: build of '/nix/store/lhc4zz9xw6srbgyi0qsd6lr8rm4qzx9i-gutenberg-0.3.0.drv' failed

@Mic92
Copy link
Member

Mic92 commented Feb 21, 2018

@GrahamcOfBorg build gutenberg

@Mic92
Copy link
Member

Mic92 commented Feb 21, 2018

maybe this is fixed with the latest rust update.

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Partial log (click to expand)

cp: -r not specified; omitting directory 'target/release/build'
cp: -r not specified; omitting directory 'target/release/deps'
cp: -r not specified; omitting directory 'target/release/examples'
cp: -r not specified; omitting directory 'target/release/incremental'
cp: -r not specified; omitting directory 'target/release/native'
post-installation fixup
strip is /nix/store/v8ifq0hapblpr2z0hx4wvwg02w4aczqy-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/2ibp5ybsf4iwmcb4fk17ajpkvna6q0hc-gutenberg-0.3.0/bin
patching script interpreter paths in /nix/store/2ibp5ybsf4iwmcb4fk17ajpkvna6q0hc-gutenberg-0.3.0
/nix/store/2ibp5ybsf4iwmcb4fk17ajpkvna6q0hc-gutenberg-0.3.0

@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/s7qsk9fz3zd4dngjh5a7d6aj5cfy1ddf-gutenberg-0.3.0
shrinking /nix/store/s7qsk9fz3zd4dngjh5a7d6aj5cfy1ddf-gutenberg-0.3.0/bin/gutenberg
strip is /nix/store/adidfx4pa7vmvby0gjqqmiwg2x49yr27-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/s7qsk9fz3zd4dngjh5a7d6aj5cfy1ddf-gutenberg-0.3.0/bin 
patching script interpreter paths in /nix/store/s7qsk9fz3zd4dngjh5a7d6aj5cfy1ddf-gutenberg-0.3.0
checking for references to /tmp/nix-build-gutenberg-0.3.0.drv-0 in /nix/store/s7qsk9fz3zd4dngjh5a7d6aj5cfy1ddf-gutenberg-0.3.0...
/nix/store/s7qsk9fz3zd4dngjh5a7d6aj5cfy1ddf-gutenberg-0.3.0

@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/6mwdhmdip661m8by0w3hvywag0axqw15-gutenberg-0.3.0-vendor.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/k97q29mwbbjb9ah0gk5j3xvnw5fcwzda-gutenberg-0.3.0.drv': 3 dependencies couldn't be built
�[31;1merror:�[0m build of '/nix/store/k97q29mwbbjb9ah0gk5j3xvnw5fcwzda-gutenberg-0.3.0.drv' failed

@mnacamura
Copy link
Contributor Author

Bumped version to 0.3.1. It builds successfully. I think it can be merged.

@mnacamura mnacamura changed the title gutenberg: init at 0.2.2 gutenberg: init at 0.3.1 Feb 28, 2018
@mnacamura
Copy link
Contributor Author

Squashed.

@Mic92 Mic92 merged commit 35386a5 into NixOS:master Feb 28, 2018
@Mic92
Copy link
Member

Mic92 commented Feb 28, 2018

Thanks!

@mnacamura mnacamura deleted the gutenberg branch February 28, 2018 14:05
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.

4 participants