From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id IDxDH1uk9mYuMQEAqHPOHw:P1 (envelope-from ) for ; Fri, 27 Sep 2024 12:26:03 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id IDxDH1uk9mYuMQEAqHPOHw (envelope-from ) for ; Fri, 27 Sep 2024 14:26:03 +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=GEJf8LD8; 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=1727439963; 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-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=4Y3xMF0ShW3whwEFdVIbypsNrgTWIVWvPvKgVrZGaME=; b=CsALkbtAtqAA4iBZeXnu/flH3GIOqR55K6SooBPQqND5kMNLmDH08waddgalMySrlrGhdX BpOp1XCp34ksnpzNPG1Fmk1ehWsf17t5d8diY1cvJ8+X7V9hWso7RD3KBDdF6J3jkyw8N6 AB6ZOtXr72lNAq2Tl7f8IJw1h2uAvudQBsPS18pEIPC2ab2vkzK2I31SQ4EXcpFN1HUlmt K+NOTHzHB8J9qjsgZ38emSG8tZmux3yu5L1PaDbAOAumMna2+wbvrKd48dIfyKD07jjjeY 248DeH9e7BX1p4Zf6FQxkIapfZvh8hHUwFl2vQuhjO/MJbRDL0mT+V93DkB/9w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1727439963; a=rsa-sha256; cv=none; b=ASniEJNfXZT2hBTuQ4CUmCNzegIPpovspkjGkLGQYJr4CKSRVl5Yu8kEzW0AEt6jGrx4XD VOai3Y0nkKW7gYO5WM7DdI5EBVqzDNbGPeFnjo+k/R2Iw4qqD1O6clnPv1blhnSKphY9mM AVUsUaJqUxk53n/Igp8dB45aB/RUrkVgIB+ldDLq2HP0CUJ7NcDW3pFOLCaxY+9DZIJuM9 2vQmoyrd4L7Bj9AyToq6XGYxK0X6XGHT+g0/iy06x5S04WI8B6cmOoKeObmTKKcUcHnL4d BPQw/zlOws6kyht3DfSV3JrxzDsBVYljjjcS2AatMnRwB4w4lEjTH9nr6ACTvw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=GEJf8LD8; 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 C7F3269FF2 for ; Fri, 27 Sep 2024 14:26:02 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1suA2T-0003CZ-SW; Fri, 27 Sep 2024 08:25:38 -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 1suA2Q-0003CH-Oz for guix-patches@gnu.org; Fri, 27 Sep 2024 08:25:34 -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 1suA2Q-0003ZK-94 for guix-patches@gnu.org; Fri, 27 Sep 2024 08:25:34 -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:Date:References:In-Reply-To:From:To:Subject; bh=4Y3xMF0ShW3whwEFdVIbypsNrgTWIVWvPvKgVrZGaME=; b=GEJf8LD8xfLIaoSPQcZ+SfCex7t/LsFGPG6cu1lMWqg2HrGQdRCQAMqABSSVmI6o3qNQXjLQJ9ijCqeMXAFgHjBZUD0coY+eYp1rztbwvHHvLv1smhaVyJeWtsRImZIQsCIu28LjeMkevCI7p3cAITHit15C7aJWtj+wxs72B23INCzvLvwWgOI5Z5tReX9hA+AjVLV/Slgk4ToSDzbt97gbA1R0Xu6APSypRsK7vNl1VMTCsiQpZXkaz3wgRYFQrsTTzcXSvt2SOPg5YhPEfUbAnsu4gQ5R/ktyvMGaqTuBCpvWToLgnZtMdmKcrlrcwGwmVNgT/kAd29a0T+FZHA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1suA2s-0006pz-6u for guix-patches@gnu.org; Fri, 27 Sep 2024 08:26:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73006] [PATCH 0/2] gnu: glibc: Fix cross-compiling. Resent-From: Z572 Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 27 Sep 2024 12:26:02 +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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 73006@debbugs.gnu.org Received: via spool by 73006-submit@debbugs.gnu.org id=B73006.172743991425657 (code B ref 73006); Fri, 27 Sep 2024 12:26:02 +0000 Received: (at 73006) by debbugs.gnu.org; 27 Sep 2024 12:25:14 +0000 Received: from localhost ([127.0.0.1]:57051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1suA25-0006fk-VW for submit@debbugs.gnu.org; Fri, 27 Sep 2024 08:25:14 -0400 Received: from smtp21.cstnet.cn ([159.226.251.21]:50026 helo=cstnet.cn) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1suA22-0006fE-RX for 73006@debbugs.gnu.org; Fri, 27 Sep 2024 08:25:13 -0400 Received: from m (unknown [107.174.64.25]) by APP-01 (Coremail) with SMTP id qwCowAAH6LX5o_ZmWSmYAQ--.1799S2; Fri, 27 Sep 2024 20:24:28 +0800 (CST) From: Z572 In-Reply-To: <87a5gm2j47.fsf@iscas.ac.cn> (Zheng Junjie's message of "Thu, 05 Sep 2024 23:52:24 +0800") References: <87o753baq9.fsf@gnu.org> <87a5gm2j47.fsf@iscas.ac.cn> Date: Fri, 27 Sep 2024 20:24:23 +0800 Message-ID: <87bk099te0.fsf@iscas.ac.cn> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-CM-TRANSID: qwCowAAH6LX5o_ZmWSmYAQ--.1799S2 X-Coremail-Antispam: 1UD129KBjvJXoWxuF4rAr17JrW8Jw15WryfJFb_yoW5uw4Dpr yagF47Cw4Iq3y0kF4Dur1YgF42g3s3C345Wr13Gay0yr1a93srAFZrtw13Cay7ur1fG3WU X3ykCFn8WF47AaDanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUvmb7Iv0xC_Kw4lb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_JFI_Gr1l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I 8E87Iv6xkF7I0E14v26rxl6s0DM2vj62AExVA0xI801c8C04v26x02cVCv0xWle2I262IY c4CY6c8Ij28IcVAaY2xG8wASzI0EjI02j7AqF2xKxwAqx4xG64xvF2IEw4CE5I8CrVC2j2 WlYx0E2Ix0cI8IcVAFwI0_Jrv_JF1lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkE bVWUJVW8JwACjcxG0xvEwIxGrwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJV W8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF 1VAFwI0_Jrv_JF1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6x IIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvE x4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_GrUvcSsGvfC2KfnxnU UI43ZEXa7IUepbytUUUUU== 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -8.41 X-Spam-Score: -8.41 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Queue-Id: C7F3269FF2 X-TUID: s2UioQnkhFx+ --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Zheng Junjie writes: > Ludovic Court=C3=A8s writes: > >> Hi, >> >> Zheng Junjie skribis: >> >>> utils: Add 'objcopy-for-target' and 'objdump-for-target'. >>> gnu: glibc: Fix cross-compiling. >> >> Could you explain what this is addressing? > > all cross-compiling image build fail, because glibc 2.39 cross-compiling = fail. > >> >> The =E2=80=98add-cross-binutils-to-PATH=E2=80=99 phase is supposed to do= the right > > this is in cross-libc*, but glibc not have this phase. > >> thing, as suggested in the discussion at >> , >> and that means =E2=80=98objdump-for-target=E2=80=99 & co. shouldn=E2=80= =99t be necessary. >> >> Ludo=E2=80=99. > > glibc 2.35 have "glibc-cross-objdump.patch" and "glibc-cross-objcopy.patc= h" > patch, but glibc 2.39 not have them, so 2.39 cross compiling try use objd= ump > and build fail, and 2.35 success. > > > I checked again today. because (gnu services base)'s nscd-configuration > default use glibc, not '(cross-libc target)', This is why glibc was > introduced. Maybe the following patch can also be useful. > > From f23d1e48bd0fd9d3b66cbc831cc40f475faff7a4 Mon Sep 17 00:00:00 2001 > Message-ID: > From: Zheng Junjie > Date: Thu, 5 Sep 2024 23:48:34 +0800 > Subject: [PATCH] services: nscd: When cross-compiling, Use (cross-libc > target). > > * gnu/services/base.scm (nscd-configuration)[glibc]: When cross-compiling, > Use (cross-libc target). > > Change-Id: Ib219459b1ec28f7edfac075e70be3d61edf72d27 > --- > gnu/services/base.scm | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/gnu/services/base.scm b/gnu/services/base.scm > index 4b5b103cc3..4eda5382f5 100644 > --- a/gnu/services/base.scm > +++ b/gnu/services/base.scm > @@ -21,6 +21,7 @@ > ;;; Copyright =C2=A9 2022 Justin Veilleux > ;;; Copyright =C2=A9 2022 ( > ;;; Copyright =C2=A9 2023 Bruno Victal > +;;; Copyright =C2=A9 2024 Zheng Junjie <873216071@qq.com> > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -67,6 +68,8 @@ (define-module (gnu services base) > libc-utf8-locales-for-target > make-glibc-utf8-locales > tar canonical-package)) > + #:use-module ((gnu packages cross-base) > + #:select (cross-libc)) > #:use-module ((gnu packages compression) #:select (gzip)) > #:use-module (gnu packages fonts) > #:autoload (gnu packages guile-xyz) (guile-netlink) > @@ -1313,7 +1316,7 @@ (define-record-type* nscd-conf= iguration > ;; from 'glibc-final' instead of pulling in a s= econd > ;; glibc copy. > (if target > - glibc > + (cross-libc target) > (canonical-package glibc)))))) >=20=20 > (define-record-type* nscd-cache make-nscd-cache > > base-commit: 993d6d2e7be4dac738629c76a51058f4dc5bc449 > prerequisite-patch-id: dd51603b3f57923df8ac28ca5f41557be07ee742 > prerequisite-patch-id: f86942972fa6ddef6e83b54c6120e9d5dfb63098 > prerequisite-patch-id: c3394b41809ae9e5a91a51d7c77401cb58192c51 > prerequisite-patch-id: 68f03643905981a0a79b4ae13971a58a808877f5 ping. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEfr6klGDOXiwIdX/bO1qpk+Gi3/AFAmb2o/cACgkQO1qpk+Gi 3/D8HA//TcXBZCrJqKhmD3VRrOy02LcC2ZZPSwIErrQ4963gd56WiRXgW4Y2vca7 iBWyo50iuljyQBr+FKFVGr2wtRNgqSXvqTCy2iok7umdDW3uMQOD8lmG5JKZn7NF oNfH2/cwq22Ik+C/pk1WUVrHV+RSlKkqeWlIkYK+cnTSb/nH4mBD/mUchAvN8UMK ensod2DxFawAEDrrb4iDOwYZu83sxQstIx6GOPb4zT7+rBLHpDfU3kWJuG4ADBS9 ThURYy2dD+tdsab9o/Ll1TiH0GrzkXPN4yfVQm785f9WzvThFT9FSYM/vLWTNWvd Vni2sB8ogDjnR4JmFQKnfa3aBdW20wICb8yBLjc7m0ol9dgJZF9/NXHPvcr44DVU WdN1k+Vz/CqAvGThH2iiXbpFtzb2m+yum0QmARbs4GLiyhU2iZYt26Xop7Swdj9L EIdHGp1YMhyTuBMEjtAlgchNE/0AvncSmyWXRe9ErntTCBEpiNjWwqGFfq0WXov0 BCXzw0vGdtb81uc+rZgfojvMWx+19+vGz0Pgrb1OWtcZHVXv153p4ZmzoX64ofKC xWmRSx8ZpoHcYYFrfMQyauGjLLxRwmwqRbI+HWJyw5j6Uwbd9OwJQ2Hb6EmlqP3I rj/vtGaugrlsySDsWkch6o1a545ir675nYnvmo7q1Jv584gk6YI= =loG8 -----END PGP SIGNATURE----- --=-=-=--