GNU bug report logs - #50355
[core-updates-frozen] Building mozjs with rust@1.54 fails

Previous Next

Package: guix;

Reported by: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Date: Fri, 3 Sep 2021 11:18:01 UTC

Severity: normal

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 50355 in the body.
You can then email your comments to 50355 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#50355; Package guix. (Fri, 03 Sep 2021 11:18:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Fri, 03 Sep 2021 11:18:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: bug-guix <bug-guix <at> gnu.org>
Subject: [core-updates-frozen] Building mozjs with rust <at> 1.54 fails
Date: Fri, 03 Sep 2021 07:17:20 -0400
Hello Guix!

I'm nearly done updating the Rust bootstrap for core-updates-frozen; one
of the changes is that only the current rust (1.54) gets exposed and
used everywhere.  This seems to be OK so far, except for mozjs, which
fails to build like so:

--8<---------------cut here---------------start------------->8---
error: aborting due to 8 previous errors

Some errors have detailed explanations: E0432, E0557.
For more information about an error, try `rustc --explain E0432`.
The following warnings were emitted during compilation:

warning: Cannot set `RUSTC_BOOTSTRAP=1` from build script of `packed_simd v0.3.3 (https://github.com/hsivonen/packed_simd?rev=3541e3818fdc7c2a24f87e3459151a4ce955a67a#3541e381)`.
note: Crates cannot set `RUSTC_BOOTSTRAP` themselves, as doing so would subvert the stability guarantees of Rust for your project.

error: could not compile `packed_simd`

Caused by:
  process didn't exit successfully: `CARGO=/gnu/store/sgvw6h637pgw3mrn9wva29b8645z37m0-rust-1.54.0-cargo/bin/cargo CARGO_CRATE_NAME=packed_simd CARGO_MANIFEST_DIR=/tmp/guix-build-mozjs-78.10.1.drv-0/firefox-78.10.1/third_party/rust/packed_simd CARGO_PKG_AUTHORS='Gonzalo Brito Gadeschi <gonzalobg88 <at> gmail.com>' CARGO_PKG_DESCRIPTION='Portable Packed SIMD vectors' CARGO_PKG_HOMEPAGE='https://github.com/rust-lang-nursery/packed_simd' CARGO_PKG_LICENSE=MIT/Apache-2.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=packed_simd CARGO_PKG_REPOSITORY='https://github.com/rust-lang-nursery/packed_simd' CARGO_PKG_VERSION=0.3.3 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=3 CARGO_PKG_VERSION_PATCH=3 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/tmp/guix-build-mozjs-78.10.1.drv-0/firefox-78.10.1/run-configure-from-here/release/deps:/gnu/store/89iv0hicjlmgdxk01sj9lc95xkdkb8f0-rust-1.54.0/lib' OUT_DIR=/tmp/guix-build-mozjs-78.10.1.drv-0/firefox-78.10.1/run-configure-from-here/x86_64-unknown-linux-gnu/release/build/packed_simd-36a821efa8c03e42/out /gnu/store/89iv0hicjlmgdxk01sj9lc95xkdkb8f0-rust-1.54.0/bin/rustc --crate-name packed_simd --edition=2018 /tmp/guix-build-mozjs-78.10.1.drv-0/firefox-78.10.1/third_party/rust/packed_simd/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=2 -C panic=abort -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="into_bits"' -C metadata=220aa1d9e77763e7 -C extra-filename=-220aa1d9e77763e7 --out-dir /tmp/guix-build-mozjs-78.10.1.drv-0/firefox-78.10.1/run-configure-from-here/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -C linker=/tmp/guix-build-mozjs-78.10.1.drv-0/firefox-78.10.1/build/cargo-linker -L dependency=/tmp/guix-build-mozjs-78.10.1.drv-0/firefox-78.10.1/run-configure-from-here/x86_64-unknown-linux-gnu/release/deps -L dependency=/tmp/guix-build-mozjs-78.10.1.drv-0/firefox-78.10.1/run-configure-from-here/release/deps --extern cfg_if=/tmp/guix-build-mozjs-78.10.1.drv-0/firefox-78.10.1/run-configure-from-here/x86_64-unknown-linux-gnu/release/deps/libcfg_if-646d80c97708097e.rmeta --cap-lints warn -C opt-level=2 --cap-lints warn -Cembed-bitcode=yes -C codegen-units=1` (exit status: 1)
--8<---------------cut here---------------end--------------->8---

If someone has an idea, please shout :-)

Thanks,

Maxim




Information forwarded to bug-guix <at> gnu.org:
bug#50355; Package guix. (Fri, 03 Sep 2021 14:30:02 GMT) Full text and rfc822 format available.

Message #8 received at 50355 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: 50355 <at> debbugs.gnu.org
Subject: Re: bug#50355: [core-updates-frozen] Building mozjs with rust <at> 1.54
 fails
Date: Fri, 03 Sep 2021 10:29:50 -0400
Hi,

Maxim Cournoyer <maxim.cournoyer <at> gmail.com> writes:

> Hello Guix!
>
> I'm nearly done updating the Rust bootstrap for core-updates-frozen; one
> of the changes is that only the current rust (1.54) gets exposed and
> used everywhere.  This seems to be OK so far, except for mozjs, which
> fails to build like so:
>
> error: aborting due to 8 previous errors
>
> Some errors have detailed explanations: E0432, E0557.
> For more information about an error, try `rustc --explain E0432`.
> The following warnings were emitted during compilation:
>
> warning: Cannot set `RUSTC_BOOTSTRAP=1` from build script of `packed_simd v0.3.3 (https://github.com/hsivonen/packed_simd?rev=3541e3818fdc7c2a24f87e3459151a4ce955a67a#3541e381)`.
> note: Crates cannot set `RUSTC_BOOTSTRAP` themselves, as doing so would subvert the stability guarantees of Rust for your project.
>
> error: could not compile `packed_simd`
>
> Caused by:
>   process didn't exit successfully: `CARGO=/gnu/store/sgvw6h637pgw3mrn9wva29b8645z37m0-rust-1.54.0-cargo/bin/cargo CARGO_CRATE_NAME=packed_simd CARGO_MANIFEST_DIR=/tmp/guix-build-mozjs-78.10.1.drv-0/firefox-78.10.1/third_party/rust/packed_simd CARGO_PKG_AUTHORS='Gonzalo Brito Gadeschi <gonzalobg88 <at> gmail.com>' CARGO_PKG_DESCRIPTION='Portable Packed SIMD vectors' CARGO_PKG_HOMEPAGE='https://github.com/rust-lang-nursery/packed_simd' CARGO_PKG_LICENSE=MIT/Apache-2.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=packed_simd CARGO_PKG_REPOSITORY='https://github.com/rust-lang-nursery/packed_simd' CARGO_PKG_VERSION=0.3.3 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=3 CARGO_PKG_VERSION_PATCH=3 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/tmp/guix-build-mozjs-78.10.1.drv-0/firefox-78.10.1/run-configure-from-here/release/deps:/gnu/store/89iv0hicjlmgdxk01sj9lc95xkdkb8f0-rust-1.54.0/lib' OUT_DIR=/tmp/guix-build-mozjs-78.10.1.drv-0/firefox-78.10.1/run-configure-from-here/x86_64-unknown-linux-gnu/release/build/packed_simd-36a821efa8c03e42/out /gnu/store/89iv0hicjlmgdxk01sj9lc95xkdkb8f0-rust-1.54.0/bin/rustc --crate-name packed_simd --edition=2018 /tmp/guix-build-mozjs-78.10.1.drv-0/firefox-78.10.1/third_party/rust/packed_simd/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=2 -C panic=abort -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="into_bits"' -C metadata=220aa1d9e77763e7 -C extra-filename=-220aa1d9e77763e7 --out-dir /tmp/guix-build-mozjs-78.10.1.drv-0/firefox-78.10.1/run-configure-from-here/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -C linker=/tmp/guix-build-mozjs-78.10.1.drv-0/firefox-78.10.1/build/cargo-linker -L dependency=/tmp/guix-build-mozjs-78.10.1.drv-0/firefox-78.10.1/run-configure-from-here/x86_64-unknown-linux-gnu/release/deps -L dependency=/tmp/guix-build-mozjs-78.10.1.drv-0/firefox-78.10.1/run-configure-from-here/release/deps --extern cfg_if=/tmp/guix-build-mozjs-78.10.1.drv-0/firefox-78.10.1/run-configure-from-here/x86_64-unknown-linux-gnu/release/deps/libcfg_if-646d80c97708097e.rmeta --cap-lints warn -C opt-level=2 --cap-lints warn -Cembed-bitcode=yes -C codegen-units=1` (exit status: 1)

Simply updating to latest version resolves it:

successfully built /gnu/store/vbx2l76svqjbsz1dhgjr73kilgkk5ybv-mozjs-78.13.0.drv
/gnu/store/112gxnbnnw89nfhi9z74i5pzlsk8l04r-mozjs-78.13.0

Maxim




bug closed, send any further explanations to 50355 <at> debbugs.gnu.org and Maxim Cournoyer <maxim.cournoyer <at> gmail.com> Request was from Maxim Cournoyer <maxim.cournoyer <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 05 Nov 2021 04:55:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 03 Dec 2021 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 141 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.