unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: 50355@debbugs.gnu.org
Subject: bug#50355: [core-updates-frozen] Building mozjs with rust@1.54 fails
Date: Fri, 03 Sep 2021 10:29:50 -0400	[thread overview]
Message-ID: <8735qld95t.fsf@gmail.com> (raw)
In-Reply-To: <87eea5di2n.fsf@gmail.com> (Maxim Cournoyer's message of "Fri, 03 Sep 2021 07:17:20 -0400")

Hi,

Maxim Cournoyer <maxim.cournoyer@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@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




      reply	other threads:[~2021-09-03 14:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-03 11:17 bug#50355: [core-updates-frozen] Building mozjs with rust@1.54 fails Maxim Cournoyer
2021-09-03 14:29 ` Maxim Cournoyer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8735qld95t.fsf@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=50355@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).