unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: "Sébastien Lerique" <sl@eauchat.org>
To: 66249@debbugs.gnu.org
Subject: bug#66249: Building for armv7 fails
Date: Thu, 28 Sep 2023 10:19:57 +0200	[thread overview]
Message-ID: <87a5t64s0r.fsf@eauchat.org> (raw)

Dear Guix!

I'm packaging ripgrep in an ARM VM, which needs to build Rust itself,
and fails with the following end of the log file (with the terminal
colours not represented):

--8<---------------cut here---------------start------------->8---
root@vm-remarkable2:~# guix pack -R -S /emacsbin=bin \
                         emacs-no-x fd ripgrep sqlite \
                         htop fish \
                         aspell aspell-dict-en aspell-dict-fr

[...]
ESC[32m(43/173) BUILDING typenum v1.12.0ESC[0m
> /tmp/guix-build-rust-1.54.0.drv-0/mrustc/bin/mrustc rustc-1.54.0-src/vendor/typenum/src/lib.rs -o output/rustc-build/libtypenum-1_12_0.rlib --crate-name typenum --crate-type rlib -C emit-depfile=output/rustc-build/libtypenum-1_12_0.rlib.d --crate-tag 1_12_0 --cfg debug_assertions -O -L output -L output/rustc-build
/tmp/guix-build-rust-1.54.0.drv-0/mrustc/output/rustc-build/build_typenum-1_12_0/consts.rs:2113: error:0:Duplicate definition of name 'U2' in namespace scope (::""::generated::consts) crate::generated::consts::U2/*t:TypeAlias[::""::generated::consts::U2]*/, and crate::generated::consts::U2/*t:TypeAlias[::""::generated::consts::U2]*/
ESC[31mProcess was terminated with signal 6
ESC[0mFAILING COMMAND:  /tmp/guix-build-rust-1.54.0.drv-0/mrustc/bin/mrustc rustc-1.54.0-src/vendor/typenum/src/lib.rs -o output/rustc-build/libtypenum-1_12_0.rlib --crate-name typenum --crate-type rlib -C emit-depfile=output/rustc-build/libtypenum-1_12_0.rlib.d --crate-tag 1_12_0 --cfg debug_assertions -O -L output -L output/rustc-build
BUILD FAILED
make: *** [minicargo.mk:228: output/rustc] Error 1
error: in phase 'build': uncaught exception:
%exception #<&invoke-error program: "make" arguments: ("-f" "minicargo.mk" "output/rustc" "RUSTC_TARGET=armv7-unknown-linux-gnueabihf" "RUSTC_VERSION=1.54.0" "MRUSTC_TARGET_VER=1.54" "CFLAGS=-std=gnu11" "OUTDIR_SUF=") exit-status: 2 term-signal: #f stop-signal: #f>
phase `build' failed after 10098.8 seconds
command "make" "-f" "minicargo.mk" "output/rustc" "RUSTC_TARGET=armv7-unknown-linux-gnueabihf" "RUSTC_VERSION=1.54.0" "MRUSTC_TARGET_VER=1.54" "CFLAGS=-std=gnu11" "OUTDIR_SUF=" failed with status 2
--8<---------------cut here---------------end--------------->8---

Here's the current guix version:

--8<---------------cut here---------------start------------->8---
root@vm-remarkable2:~# guix describe
Generation 2	Sep 26 2023 12:59:04	(current)
  guix b2887da
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: b2887da40c6cb9d541a9df67aa726694f64d8943
--8<---------------cut here---------------end--------------->8---

And if more needed:

--8<---------------cut here---------------start------------->8---
root@vm-remarkable2:~# uname -a
Linux vm-remarkable2 6.1.0-12-armmp-lpae #1 SMP Debian 6.1.52-1 (2023-09-07) armv7l GNU/Linux
--8<---------------cut here---------------end--------------->8---


I have no idea what is triggering this, would anybody have hints to
debug?

Thanks for anything!
And best,
Sébastien




             reply	other threads:[~2023-09-28  8:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-28  8:19 Sébastien Lerique [this message]
     [not found] ` <handler.66249.B.16958899986945.ack@debbugs.gnu.org>
2023-09-28  8:36   ` bug#66249: Acknowledgement (Building for armv7 fails) Sébastien Lerique
2023-09-28 11:14     ` Sébastien Lerique
2023-10-04  2:14       ` bug#66249: Building for armv7 fails Maxim Cournoyer

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=87a5t64s0r.fsf@eauchat.org \
    --to=sl@eauchat.org \
    --cc=66249@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).