From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aDd6J9Xu/2K5PwEAbAwnHQ (envelope-from ) for ; Fri, 19 Aug 2022 22:13:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8HtdJ9Xu/2IcWAEAauVa8A (envelope-from ) for ; Fri, 19 Aug 2022 22:13:09 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 181F0B360 for ; Fri, 19 Aug 2022 22:13:09 +0200 (CEST) Received: from localhost ([::1]:55908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oP8Md-0000JL-Ux for larch@yhetil.org; Fri, 19 Aug 2022 16:13:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56152) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oP8MZ-0000Ij-DC for bug-guix@gnu.org; Fri, 19 Aug 2022 16:13:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41340) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oP8MZ-0004Qt-4h for bug-guix@gnu.org; Fri, 19 Aug 2022 16:13:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oP8MY-0002V6-NB for bug-guix@gnu.org; Fri, 19 Aug 2022 16:13:02 -0400 Subject: bug#57303: powerpc64le: rust build failure is bottleneck for many packages Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Fri, 19 Aug 2022 20:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 57303 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Marcel van der Boom Cc: 57303-done@debbugs.gnu.org Mail-Followup-To: 57303@debbugs.gnu.org, maxim.cournoyer@gmail.com, marcel@van-der-boom.nl Received: via spool by 57303-done@debbugs.gnu.org id=D57303.16609399359547 (code D ref 57303); Fri, 19 Aug 2022 20:13:02 +0000 Received: (at 57303-done) by debbugs.gnu.org; 19 Aug 2022 20:12:15 +0000 Received: from localhost ([127.0.0.1]:59320 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oP8Lj-0002Ts-HV for submit@debbugs.gnu.org; Fri, 19 Aug 2022 16:12:14 -0400 Received: from mail-qv1-f50.google.com ([209.85.219.50]:44728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oP8Lf-0002TX-Hy for 57303-done@debbugs.gnu.org; Fri, 19 Aug 2022 16:12:10 -0400 Received: by mail-qv1-f50.google.com with SMTP id c5so3713068qvt.11 for <57303-done@debbugs.gnu.org>; Fri, 19 Aug 2022 13:12:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc; bh=RNAVBZaAsiMDIZxnd3In/zuzkcu72d+zh8sZLouMgM4=; b=jC1xi9u5LdGo47qQ1cmczLWR+TvZfpH3cz/yicR8CrnPaXOU1mj+z+MVOOHsUrBGPA UYfQK1D3EYbHOBDsfey5a3TdP9Abh6xZfL3T422Lw/SKetiHLuCkZe0aMJI48T6+74Vs sYhuSMfDofrpzsD06SbHvCZLceklmlvW+qfuAx7DxTvEyzwnh/zNyqKc2oZi0PwuocZd +3Qgt8H5ZsHWoAk2imXyyBHwHJ9pGIq15xXyim0BbyAzQwCISKzwzyEgzJB9xrjkL9Y9 POxDo5JYu4lHdFITdv0nQd7Q9C391IoDkpW2BQgJXnw5+RalvCjUOHFbaYZLZHwD2lWP PetA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc; bh=RNAVBZaAsiMDIZxnd3In/zuzkcu72d+zh8sZLouMgM4=; b=oC2FjeJUBJzc54sTmRtCaBLvSjjLEduhxtxnValwQbZeZ7eFAImOTyuOftztPA4k3R cG+gYZLLPgNPNj34s0gJoVCTcBpePwiPLNvLXLHHZ7U3mcUPawbyS2rP/2ZonPTqfpO4 We+rQDx3jvW49+UPcEnAHpNPrX2NE78BGI6835Zv3NeV3jzyhcC3LEug905hfA7mlFMC is6Uoylz5iLX1y6dZZbFxoEqP2ffVxmEkxp6limhwsTd30cppk+CcUMiFmrwhHVxj/pv ULt3OKeKtWZxwiENHpRRbn+o4Dn4KbcttQodURnQN0BZiHa+xTzt5jk1lvttOLYEtrJ/ +VlA== X-Gm-Message-State: ACgBeo3ailyMVYDo0I6b9Em00HiGL60X7F1H+cMYwthBLSNHDnXX8E81 lbcb1rYQiPeI4ahzNZzP+KwuxhEZDrM= X-Google-Smtp-Source: AA6agR6L0FW5gmIpzOmcmINN86I8eS06eseaQzHdIx8GtW1CGA/Y7edM5LFLv/rsL2iyhpvOiBoXeg== X-Received: by 2002:a05:6214:27e4:b0:476:f199:40c with SMTP id jt4-20020a05621427e400b00476f199040cmr7781365qvb.118.1660939921538; Fri, 19 Aug 2022 13:12:01 -0700 (PDT) Received: from hurd ([2607:fad8:4:3::1004]) by smtp.gmail.com with ESMTPSA id m9-20020a05620a24c900b006af0ce13499sm4810343qkn.115.2022.08.19.13.12.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Aug 2022 13:12:01 -0700 (PDT) From: Maxim Cournoyer References: <875yioxce6.fsf@van-der-boom.nl> Date: Fri, 19 Aug 2022 16:11:59 -0400 In-Reply-To: <875yioxce6.fsf@van-der-boom.nl> (Marcel van der Boom's message of "Fri, 19 Aug 2022 20:56:10 +0200") Message-ID: <87tu68hu28.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1660939989; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-to:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=RNAVBZaAsiMDIZxnd3In/zuzkcu72d+zh8sZLouMgM4=; b=K6PigVGGd7jeaLyzkcyetBfAGOu5RDCIUBUBLauVzjy6UtwE4wZ3Er8qPfmXWtAO7sXTpm rEzfDb9XgoFm0Ir9ydbEzCUO97GwZz5sEdcthpNN7axE+hJ7qTpPUxbYl5lGiGAQBABlcT rcK8ovaUATtpUChGIRxA4yVdCjfXhWsrrmlpv/gRlHeyc2gb8dpChpQeYRHIOTBCep1+p5 M3Np/HScqQUJD9RMl7XMbGIg6BMUcd1IHW256gi7AzEnBvFRZpq/j60hhUc53ReVV8Wo+I FcNXhYtGa9gQeXUjeaCGxI2giflf8oNgv1VP1Rp6YWypFmRmojDPsbwuYu0gxw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660939989; a=rsa-sha256; cv=none; b=THyiTQPWAzqsFm5eVgYl7zMOddpvw67/RkEd/LXHrz9kOnJtBLRCCZUv/GIrouoGJg4J10 bbGzYbQSbbMilFOiU1c3X6A90PQw2ZhtZHdof6Ha7NXwdlG+2T2PQVv7MuRk3FRtNovEmD LEKNfxot9n3JeevbAgHV1TCHKBbOYVCtccdnvLhDvn0x6prFtprwiA4wVKqkyEPn3xQ3i7 qZm+5vNdHU/8vXSr6u3D26BsDKAV//EJ12aFGpNyIl2dwHz17vjCj23sdcXXcMs88yrz54 Gu1Uy76gwjHZwsMu3UOBkkjv3msW9rgFPed0b8QjwD+MO+64XHRBUuuusZz/nw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=jC1xi9u5; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 6.15 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=jC1xi9u5; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 181F0B360 X-Spam-Score: 6.15 X-Migadu-Scanner: scn1.migadu.com X-TUID: XD5ynXOCggTT tags 57303 +notabug thanks Hi! Marcel van der Boom writes: > I use a Talos II machine as my daily driver and slowly migrating > as many packages to GUIX along the way. The kernel I am running > comes fromm https://archlinuxpower.org/ Cool! > For many packages, rust is getting to be the bottleneck as a > dependency that does not build. > >>>From what I can see there's a whole chain of rust dependencies > going back to rust@1.39.0 which then ultimately fails with: > > (16/112) BUILDING bitflags v1.1.0 >> /tmp/guix-build-rust-1.39.0.drv-0/mrustc/bin/mrustc >> rustc-1.39.0-src/vendor/bitflags/src/lib.rs -o >> output/rustc-build/libbitflags-1_1_0.rlib --crate-name bitflags >> --crate-type rlib -C >> emit-depfile=output/rustc-build/libbitflags-1_1_0.rlib.d >> --crate-tag 1_1_0 -g --cfg debug_assertions -O -L output -L >> output/rustc-build --cfg bitflags_const_fn > (17/112) BUILDING cc v1.0.35 >> /tmp/guix-build-rust-1.39.0.drv-0/mrustc/bin/mrustc >> rustc-1.39.0-src/vendor/cc/src/lib.rs -o >> output/rustc-build/libcc-1_0_35.rlib --crate-name cc >> --crate-type rlib -C >> emit-depfile=output/rustc-build/libcc-1_0_35.rlib.d --crate-tag >> 1_0_35 -g --cfg debug_assertions -O -L output -L >> output/rustc-build >> /tmp/guix-build-rust-1.39.0.drv-0/mrustc/bin/mrustc >> rustc-1.39.0-src/src/librustc_llvm/build.rs --crate-name build >> --crate-type bin -o output/rustc-build/build_rustc_llvm_run -L >> output/rustc-build -g -L output --extern >> build_helper=output/rustc-build/libbuild_helper-0_1_0.rlib >> --extern cc=output/rustc-build/libcc-1_0_35.rlib --edition 2018 >> /tmp/guix-build-rust-1.39.0.drv-0/mrustc/output/rustc-build/build_rustc_llvm_run > thread 'main' panicked at 'assertion failed: `(left == right)` > left: `1`, > right: `0`', > rustc-1.39.0-src/vendor/hashbrown/src/raw/mod.rs:1086:59 > Process was terminated with signal 6 > > > The line in =mod.rs= points to an assertion in some sort of table > iterator. Way over my head. Working only on x86_64 is a limitation of mrustc, which is used to bootstrap rust cleanly from sources on Guix. > I know rust runs on powerpc64le because I have a binary version > 1.62 installed through https://archlinuxpower.org/ Yes, Rust itself is not the problem, but its bootstrap. I'd suggest lending a hand to mrustc to iron out issues like this or request to Rust upstream support for bootstrapping for sources. Investigating future alternatives such as GCC Rust or other similar efforts could be useful for the time they are ripe to use, too. Closing, as there's not much we can do on Guix's side. Thanks, Maxim