From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SDSDGROIlWBJcgAAgWs5BA (envelope-from ) for ; Fri, 07 May 2021 20:33:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id qDAcFROIlWCvNwAAbx9fmQ (envelope-from ) for ; Fri, 07 May 2021 18:33:55 +0000 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 C97E61A856 for ; Fri, 7 May 2021 20:33:54 +0200 (CEST) Received: from localhost ([::1]:49314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lf5IO-0003XI-7A for larch@yhetil.org; Fri, 07 May 2021 14:33:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33876) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lf5Bm-00043s-M5 for bug-guix@gnu.org; Fri, 07 May 2021 14:27:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33742) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lf5Bm-00025H-BN for bug-guix@gnu.org; Fri, 07 May 2021 14:27:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lf5Bm-0001ZM-6z for bug-guix@gnu.org; Fri, 07 May 2021 14:27:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48239: rust-1.19.0 build fails Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 07 May 2021 18:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48239 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Bone Baboon Received: via spool by 48239-submit@debbugs.gnu.org id=B48239.16204120186025 (code B ref 48239); Fri, 07 May 2021 18:27:02 +0000 Received: (at 48239) by debbugs.gnu.org; 7 May 2021 18:26:58 +0000 Received: from localhost ([127.0.0.1]:45288 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lf5Bi-0001Z7-Fv for submit@debbugs.gnu.org; Fri, 07 May 2021 14:26:58 -0400 Received: from world.peace.net ([64.112.178.59]:34998) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lf5Be-0001Yz-Ro for 48239@debbugs.gnu.org; Fri, 07 May 2021 14:26:56 -0400 Received: from mhw by world.peace.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lf5BW-00043t-Ls; Fri, 07 May 2021 14:26:47 -0400 From: Mark H Weaver In-Reply-To: <87k0ocis5r.fsf@disroot.org> References: <871raljmxq.fsf@disroot.org> <87fsz1m0pp.fsf@netris.org> <87k0ocis5r.fsf@disroot.org> Date: Fri, 07 May 2021 14:25:56 -0400 Message-ID: <87mtt6l7sg.fsf@netris.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: , Cc: 48239@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620412434; 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: content-transfer-encoding:content-transfer-encoding:resent-cc: 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; bh=JMTAbV5LM5CYLMLtimgtJ9EDAsdsGgNVaOMOuwxHnCM=; b=TwQP8rw6yW17eHakhxBJiBPCfKTul8pfrluB+9WaomSvZGH/hqcUchOTsTPZILkQZbEbuh Su2wgOf5DTbEaFK9V8MdY7kGrpNd9yr/EwX0PCxeH4KByLaHzpDU8x+M7PMnGwz40SsqA5 abSqTeion0U++lrrQi0O1ipt33JflZVTHJHmPyVyu/0qnot0rLuzE1mRbE+LNroIGRjB+L MYbEDDiZXOI17wRftvGyMUn7/atVYSOI2V6zt/Cx9ZsFplXRQnstaDUV2NP55s0v1V3vGW oStg+pzBIkzLmvJZAAmRUPGy0rZN58dvYwzoPQcBzs3f7nKTAZimglYirhx3bg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620412434; a=rsa-sha256; cv=none; b=Q77121DixRc3iyRQRwUXzHNu4OcaDNH+3ozjTjf6IeXr2el4r8n4fcp32IeDH5qAykUk0q lXaMWliKMpMbqvX73WTRrt/QOo16j+beNZzs5PRG5hP/f32KqcHYA4S/jEeL99IrG0q8Ms 6NSie1S9hxlkKT+PdtdcFQG1hNZWl4PHRiQM9lyjoulVbX54WNXkEbdr6pNRcTBpl6+Kci RUyWcp1ImQm/+mYH4Ez/odoegDg5Gk5W0dzeHCc7Sf+4bKT/65czjn/KH2XG2LElDNS/hF m/Feq3xQ1g6hfnCgF6UJJQ6hOaKLuiSMGxyF0Neg94282IZAGA5CpJUnfB5ILQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.45 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: C97E61A856 X-Spam-Score: -2.45 X-Migadu-Scanner: scn0.migadu.com X-TUID: rD0Y6ZSuQtDt Hi, Bone Baboon writes: > Mark H Weaver writes: >> Are you aware of any relevant customizations to your kernel >> configuration that might possibly be related to this? > > The system configuration includes: > > ``` > (kernel-arguments > (append > (list > "nomodeset" > "ipv6.disable=3D1") > %default-kernel-arguments)) > ``` Thanks. Those don't look relevant to this issue. >> It might be worth trying the build a second time. Occasionally we see >> nondeterministic build failures in some packages, although I don't >> recall seeing such failures in Rust. > > I tried again and got the same error. Okay. I think the next step, if you're sufficiently motivated, is to try to debug this problem yourself. I'd be glad to help, but unfortunately I can't do it myself, since I'm unable to reproduce this problem on my systems. Here's the basic outline of how to proceed: (1) First, you'll need the failed build directory in /tmp/guix-build-rust-1.19.0.drv-0. If you've deleted it, recreate it by running "guix build rust --keep-failed" and waiting for it to fail. If it has a different name, rename it to have the name above. (2) Launch a bash shell that you'll use to retry the failed command. In that shell, first run "env -i $(which bash)" to clear most of the existing environment variable settings, and then "source /tmp/guix-build-rust-1.19.0.drv-0/environment-variables" to load the ones that were in use during the build. (3) Move to the appropriate directory and try re-running the failed command (found near the end of the failed build log): output/rustc-build/rustc -C \ linker=3D/gnu/store/afpgzln8860m6yfhxy6i8n9rywbp85cy-gcc-7.5.0/bin/gcc \ -Z force-unstable-if-unmarked -L output/target-libs \ src/libcore/lib.rs -o output/target-libs/libcore.rlib If you still get SIGFPE, then try running that command again within GDB and see if you can get a backtrace. Since GDB won't be in your PATH, you'll need to launch it via it's absolute file name, which you can get from another shell using "guix build gdb". You'll run "/gnu/store/=E2=80=A6-gdb-10.1/bin/gdb output/rustc-build/rustc"= and then within GDB: "run -C linker=3D/gnu/store/=E2=80=A6-gcc-7.5.0/bin/gcc = =E2=80=A6" (the entire command except for the "output/rustc-build/rustc"). Hopefully the SIGFPE will happen within GDB as well, returning you to the GDB prompt. Then type "bt" to get a backtrace, and show it to us. Some fiddling may be required to get a decent backtrace with full source information, e.g. by running "dir DIRNAME" within GDB to add a directory to the "source path" (where it searches for the source files). Anyway, if we can figure out where the SIGFPE is happening, perhaps we can find the underlying problem, or at least report it to the mrustc developers. Thanks, Mark --=20 Disinformation flourishes because many people care deeply about injustice but very few check the facts. Ask me about .