From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id oPuDMDhM12a7IgEAe85BDQ:P1 (envelope-from ) for ; Tue, 03 Sep 2024 17:49:45 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id oPuDMDhM12a7IgEAe85BDQ (envelope-from ) for ; Tue, 03 Sep 2024 19:49:44 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=sGOahL8v; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1725385784; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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:dkim-signature; bh=MwOWOXdhrylHLgWIxGGuIJ0Q6YuRmBMmtmCUuaW6QKg=; b=W+ekQeNhuPoYofNDCQHksNF8zbqZcmzbZ3oM02GDiZn9EBr6rHR5U8g4tN1tQxa761vWpb za/TnPIlk9Z/CUYSscqFzl2vZSz4Fz7tclpCZIu+Nb5JzoklG18i5Ds0rQQFMOaxz+rQKS knyMuueBOoJBeoVB+HIHKNz4ML+aHW+VxY/eVyRePi50Maw1r77dqAMk6+sHrW/exbfLvT RJ82SjMSE6CihpfkEDCWDkwtyEpRxy2kMSz7VCmsKr76nYKHiYBftj+eng7nY9agk4FzL2 FM6B0UkXVOuggitNncaZMOpIiLEAVT4x45eL+c736M10WZpQUpqb6C1+1Larew== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725385784; a=rsa-sha256; cv=none; b=I0lSilSAjt456N3Jlt7iFsnMyspcGNM7FOh632ML5oBBbfhm5Vj1PDwoUDMN5Ovd27Gn3b j8j7Q6+ocCze9g59kJo6wMwmYGHeZgczxL/WCbBWoO90i5qQuv7GmCAFfuSgQOSVxL/Sx9 +6xBj+mqSa6Wo0Hh+0e8DHDxDVTf7dHZIsKrRba6h+euic7DzKfbZv/IeTl9/V2y+gjvmf 28DACIwuM9LCmMEgT4ImxsArK4W/aP6gv3MT7XiywlLFTbIRhdAfOtUqnT/RZGNS2B5DJa O8mXFNh1f3JzPT3Pc884yhQEjhCfwQIGK7RBoEi0Y2YYl14ymHskMIy18UvPEw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=sGOahL8v; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" 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 A19473E125 for ; Tue, 03 Sep 2024 19:49:44 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1slWTn-0004Tt-RB; Tue, 03 Sep 2024 12:34:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1slWTi-0004Ca-M3 for guix-patches@gnu.org; Tue, 03 Sep 2024 12:34:02 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1slWTh-0006Lt-Jh; Tue, 03 Sep 2024 12:34:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=MwOWOXdhrylHLgWIxGGuIJ0Q6YuRmBMmtmCUuaW6QKg=; b=sGOahL8vf8YvmolIJIGv52ZW8t+zM+s5Kh6KlDK7DN+mqricwOiYsvlaynsZ068Eedl8qdC3b/BOnun6dlO2GwWPG0HmZun7/ALJgwBqDBoeMbBfCVLLiqLLVH6aXyXM8brXXohSmvrQvPMphnZKphM6j04rkrDg5Hd3kstxXrHDkI+vDhf4xghxLaYmBlefUysWdaKiD0MDI+lfkgFaii2WOR9aKNoB4P0BNWNykezFM1nxq2BfitZIK6fYjsA4wtHeAYmn2bs9/X86HY426PQBmBhiDBp5pRUEE5ST+Uj9CRKr5HcBdJmsghuBYUJyuZ+nXFNkTn+6Zaqk3rXsZA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1slWUi-0001DZ-0H; Tue, 03 Sep 2024 12:35:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73006] [PATCH 2/2] gnu: glibc: Fix cross-compiling. Resent-From: Zheng Junjie Original-Sender: "Debbugs-submit" Resent-CC: ludo@gnu.org, guix-patches@gnu.org Resent-Date: Tue, 03 Sep 2024 16:35:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73006 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73006@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-Debbugs-Original-Xcc: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 73006-submit@debbugs.gnu.org id=B73006.17253812844620 (code B ref 73006); Tue, 03 Sep 2024 16:35:03 +0000 Received: (at 73006) by debbugs.gnu.org; 3 Sep 2024 16:34:44 +0000 Received: from localhost ([127.0.0.1]:60679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1slWUN-0001CR-VM for submit@debbugs.gnu.org; Tue, 03 Sep 2024 12:34:44 -0400 Received: from smtp81.cstnet.cn ([159.226.251.81]:48754 helo=cstnet.cn) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1slWUJ-0001Bx-D0 for 73006@debbugs.gnu.org; Tue, 03 Sep 2024 12:34:42 -0400 Received: from m.tailaa68d.ts.net (unknown [107.174.64.25]) by APP-03 (Coremail) with SMTP id rQCowADHlIxSOtdmXIPbAA--.39233S3; Wed, 04 Sep 2024 00:33:29 +0800 (CST) From: Zheng Junjie Date: Wed, 4 Sep 2024 00:33:21 +0800 Message-ID: <9e62ab6b2ecb4bbb2ca5e863ca459b825104f157.1725379915.git.zhengjunjie@iscas.ac.cn> X-Mailer: git-send-email 2.45.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: rQCowADHlIxSOtdmXIPbAA--.39233S3 X-Coremail-Antispam: 1UD129KBjvdXoW7Xw15WF4UCw15Cr17Kr43Awb_yoW3uFgEk3 9rtw17GF4kWrWUCF1FgasYkrn8GF48Cr1Iqa47KF4kKF4fZ3WUWF1DKa18AFyUGF48tr1r Ars5C34UZr4jkjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbVAYjsxI4VWDJwAYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l82xGYIkIc2x26280x7 IE14v26r18M28IrcIa0xkI8VCY1x0267AKxVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK 67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26r1j6r1xM28EF7xvwVC0I7IYx2IY6xkF7I 0E14v26r1j6r4UM28EF7xvwVC2z280aVAFwI0_Jr0_Gr1l84ACjcxK6I8E87Iv6xkF7I0E 14v26r1j6r4UM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7 xfMcIj6xIIjxv20xvE14v26r106r15McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Y z7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7 v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF 1VAY17CE14v26r1j6r15MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIx AIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI 42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r1j6r4UYxBIdaVFxh VjvjDU0xZFpf9x07j0q2NUUUUU= X-Originating-IP: [107.174.64.25] X-CM-SenderInfo: x2kh0wxmxqyx3h6l2u1dvotugofq/ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.02 X-Spam-Score: -6.02 X-Migadu-Queue-Id: A19473E125 X-Migadu-Scanner: mx11.migadu.com X-TUID: Xc1SZwtdTnbc * gnu/packages/base.scm (glibc)[arguments]<#:configure-flags>: When cross-compiling, Set OBJCOPY and OBJDUMP. Change-Id: I9abd3bda792619903233f5f48a57065da45da50c --- gnu/packages/base.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm index 4e8121ae2c..2802af2946 100644 --- a/gnu/packages/base.scm +++ b/gnu/packages/base.scm @@ -920,6 +920,10 @@ (define-public glibc '%build-inputs) "kernel-headers") "/include") + ,@(if (%current-target-system) + `((string-append "OBJCOPY=" ,(objcopy-for-target)) + (string-append "OBJDUMP=" ,(objdump-for-target))) + '()) ;; This is the default for most architectures as of GNU libc 2.26, ;; but we specify it explicitly for clarity and consistency. See -- 2.45.2