From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 WHNDI9fV2WYpHwEAe85BDQ:P1 (envelope-from ) for ; Thu, 05 Sep 2024 16:01:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id WHNDI9fV2WYpHwEAe85BDQ (envelope-from ) for ; Thu, 05 Sep 2024 18:01:27 +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=OEOOWAaF; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1725552087; 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=KJ1ME7ubb2TFga8pdlTz4UUWnDacKYZpmvH68bsq5EI=; b=BMfZVkrDir044U9689glq2hmBNPVCwWbCtp8lCFjV/Cvf8+TalWdtB6ZPc5GxfVzvEKcdB Qr0TIoiK0wSZXWhOcrwdCmC5E8h4rujAsTuYnjulc8OQaQM/ODSVbYyKotlJ/IZYsVaRVo 2TTQSu0M/MVCURSpqg2n3rrIE1bgN1ArqQI+f7KoIeQB+QoOtA5j3IQiFX3lzJMpL48hML W8IwE+3Ujod/ZtYWqGP1j39mcFrn+b6Mu74zlixJ3bx/hrjWLhpFiNy2Bmv8HLfWUTD3VB VXgVjkgs/gjqJyxlp/zOyxzN/PX8JDgG+lRKZ3AtaCGRw2abuVG3vq4rOjFKqQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=OEOOWAaF; 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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725552087; a=rsa-sha256; cv=none; b=c7kjXKkyF84nv8gjbJenN7eI4ZHNyDLFzw3PIHTdsl5B0SNZfMZOaxNIUc4WRUAy7M64v5 6AS3I2m5gstWZgyJtNd2vilPVrDKpvO1NKkha92Or1EN0CTVn4flaNDx/3B1dyO7hgPccG a5jPeLcpynxSTZOnUKHXgEk63uuVDUdwTnrvSE89MEqjEA4qDpOidAYtogeKN8NxKFSkH+ froX/xJJRNn79dhSrBplk7sptn7au3+MDjAGquEjTdnGfmxuK6r+UVZ4fbNPmPx+FuRNIq E4bPwmVtQ6gbC5Z1vm9fppC8M+nII0Fck0Kf1qU7rRwcFNhlqRIxv1giQ0KmXA== 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 2CFB315460 for ; Thu, 5 Sep 2024 18:01:26 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smEtv-0000u1-8p; Thu, 05 Sep 2024 12:00:03 -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 1smEtq-0000sx-Cq for guix-patches@gnu.org; Thu, 05 Sep 2024 11:59:58 -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 1smEtq-00046S-3d for guix-patches@gnu.org; Thu, 05 Sep 2024 11:59:58 -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=KJ1ME7ubb2TFga8pdlTz4UUWnDacKYZpmvH68bsq5EI=; b=OEOOWAaFrxaOELcU6Jw0DTdzAQ/iDKey1QCPr2v6I274aML7NtrzJ18y/h0PEghfroNdm3XTsTF0BbDZMZPUt8l0CaV39xe/0C0eS6IA0Fkm1/1TJQ29t3cWUW0b5cwiS/aKDzFcJf/nzKwWb3opOLl6Ijnf6dyPqkZF43mhaZW7DSXlewAKW3Rc902skVbkoCkQzb5VypUJ697eBla5+VZiWxEoUUAV33TqSK4HV3UScpvEW5UEXYWlAM1r7yf3s1B7h9UM6bUh8ddNyA9xaODplcxIqvlaQgFIHCTLAPxK3UbKCm0VgW6GuYWwcpcOj3H+LfyXvenHusvT/LeaIQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1smEus-0004NP-8V for guix-patches@gnu.org; Thu, 05 Sep 2024 12:01:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73006] [PATCH 0/2] gnu: glibc: Fix cross-compiling. Resent-From: Zheng Junjie Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 05 Sep 2024 16:01: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.172555201816660 (code B ref 73006); Thu, 05 Sep 2024 16:01:02 +0000 Received: (at 73006) by debbugs.gnu.org; 5 Sep 2024 16:00:18 +0000 Received: from localhost ([127.0.0.1]:37936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smEu9-0004Kc-MK for submit@debbugs.gnu.org; Thu, 05 Sep 2024 12:00:18 -0400 Received: from smtp84.cstnet.cn ([159.226.251.84]:43806 helo=cstnet.cn) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smEu6-0004JA-P6 for 73006@debbugs.gnu.org; Thu, 05 Sep 2024 12:00:16 -0400 Received: from m (unknown [117.147.109.233]) by APP-05 (Coremail) with SMTP id zQCowACHqOi409lmnKl7AQ--.21235S2; Thu, 05 Sep 2024 23:52:25 +0800 (CST) From: Zheng Junjie In-Reply-To: <87o753baq9.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Wed, 04 Sep 2024 19:16:30 +0200") References: <87o753baq9.fsf@gnu.org> Date: Thu, 05 Sep 2024 23:52:24 +0800 Message-ID: <87a5gm2j47.fsf@iscas.ac.cn> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-CM-TRANSID: zQCowACHqOi409lmnKl7AQ--.21235S2 X-Coremail-Antispam: 1UD129KBjvdXoWrZFWDKFW5Cw1UWFyUur18AFb_yoWkXrg_GF ykKw18GF4Ygrs7Gw1S9FWFkFs7tr4Iqr4rAryq9rZrWasxZrnrWa97tFyS9F1xJFW0yrn5 JF4xZa18CF9FvjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb78YjsxI4VWkKwAYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM2 8CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWUJVWUCwA2z4x0Y4vE2Ix0 cI8IcVCY1x0267AKxVWUJVW8JwA2z4x0Y4vEx4A2jsIE14v26F4UJVW0owA2z4x0Y4vEx4 A2jsIEc7CjxVAFwI0_GcCE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wASzI0EjI02j7Aq F2xKxwAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4 A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvEwIxGrwCF04k20xvY 0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I 0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jrv_JF1lIxkGc2Ij64vIr41lIxAI cVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcV CF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIE c7CjxVAFwI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU5PpnJUUUUU== X-Originating-IP: [117.147.109.233] 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-Queue-Id: 2CFB315460 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -12.62 X-Spam-Score: -12.62 X-TUID: x5esXPAGyC3z --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 fa= il. > > 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.patch" patch, but glibc 2.39 not have them, so 2.39 cross compiling try use objdump 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. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-services-nscd-When-cross-compiling-Use-cross-libc-ta.patch Content-Transfer-Encoding: quoted-printable From=20f23d1e48bd0fd9d3b66cbc831cc40f475faff7a4 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 =2D-- 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 =2D-- 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-config= uration ;; from 'glibc-final' instead of pulling in a sec= ond ;; glibc copy. (if target =2D glibc + (cross-libc target) (canonical-package glibc)))))) =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 =2D-=20 2.45.2 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEfr6klGDOXiwIdX/bO1qpk+Gi3/AFAmbZ07gACgkQO1qpk+Gi 3/ASbA/8Cw+Mt0jWX2meEXdDMXM0lM81DFwR5tqe2cIUpXfwCj+g9BFH6PLzERzb HNRKosgR+poe1StgeRJrt9BFwRif3OJbW9Hz7EBDFXUoS3LnabFWSFQdMR58bJ6m cywlE7FiNygOjsuVZ2fWUC7qd0dyzn8L0G8Pa6muhPhibhEWu2TRRRcaOg9THeXL fn+Gb2A2bdk/Lzbi2YlxFDHIzzsU1tzNC8O6/tNiennKQxdcSTgjW2+r32p/ADVP pLsA9ryC60kSz/EPyp/gAIpHfvstNXJKH/wPkm3MTr6n0AHcrp/W8FSuz6xiICQx 0oK9h9vaaugpopqXAXKBJ+3WPaLcJ/iZneV27e+vEsHeudzx9PE8jCD1bnsKc28h SDtcETmdwbPCvOwZ5qr5XGIeIw44P/c6ywsxsDwiP4tlmq+O9PKY8sTaA9G1wVu+ LU4RVIlzaW9UPCeiOfxv+3H1Yvm0kDEeFFDIHka1DC03iUPiUn5DKmNhgkpOsprt 0nKtvEiATeBLCV2wtxkQcZ2XwD6TOltnXIiv2vDIPK5lobi05gD4kzakrbWj7Xos KuYSP22wuGf9C0Q08pjSeathtB0AZtWSsbsLRHkUlWEYQpQEs7nk+5ZNrB29z1w7 YSNkcW6k9npwwZeYvPRuFOeIfQdbFJAF3WyF1mw0Asj5dUm3y+c= =2H03 -----END PGP SIGNATURE----- --==-=-=--