From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cEzyLVwCm2PBRgAAbAwnHQ (envelope-from ) for ; Thu, 15 Dec 2022 12:17:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id OD/TLVwCm2OEFwEAauVa8A (envelope-from ) for ; Thu, 15 Dec 2022 12:17:48 +0100 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 847611C6B0 for ; Thu, 15 Dec 2022 12:17:48 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5mEf-0006G4-Oe; Thu, 15 Dec 2022 06:17:09 -0500 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 1p5mEe-0006Fs-Rk for guix-devel@gnu.org; Thu, 15 Dec 2022 06:17:08 -0500 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p5mEa-0001CT-JO for guix-devel@gnu.org; Thu, 15 Dec 2022 06:17:08 -0500 Received: by mail-lf1-x12c.google.com with SMTP id bp15so15083695lfb.13 for ; Thu, 15 Dec 2022 03:16:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:organization :references:in-reply-to:date:cc:to:reply-to:from:subject:message-id :from:to:cc:subject:date:message-id:reply-to; bh=tWjpfcUP4JAOua/3bufkZcx2/qHQvBOo7rHkgTmolRc=; b=IKMQx51VbkqvSrhGm+TKIVGWeOUq+eJ4pnfBhLYwHMdDD54e4xMDxuGvJW/6g8iJ8S nHqruAq/hR6g/IHKwJFuhMcTC1Kvf0NyV062CudO594Cndm0q1Hi+Jmr795WqHdE0fkt lsjxDqfEiA9TQtb+F+0Tt+LSJS201MH7U90BgP3Wlr8BcNhteWrGHefYyxdRwgUi4MT0 edgpOFeEO5EA3gZbK4yksJjjrLpYJf5sBw3d9bRgwUo2cWyi4DuZuJjAwrgmNNbDe4kV 7dx3zFBsEZocijrJ9/6BC9lAFy5rgwk+Gj/jCA8m2dBq1L57Fy4/g0XxikDFg/7J7e3U vs5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:organization :references:in-reply-to:date:cc:to:reply-to:from:subject:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tWjpfcUP4JAOua/3bufkZcx2/qHQvBOo7rHkgTmolRc=; b=FIAba8ICBO2s29rUXgxWD2BBYU5AFgKeeq9dsVN7Qvnusc7rnmQ4+ewjgdfHJjNCHv 1l+2uYUCY2garN3ek0cEWSIL1rQ0Q/5QwLKH0TRm6oC9MfoL5XylKIwaoLv6yEyP/U5/ 03y6WlhXl6QhNl+3mwQ8WwCuTSQ4pUoS/fvBc/mZe5wzvMDuQYJYHZ3H0ryIj4LjN8/z 4S+Y5w9eAdFEW0i55K9q4nj55U/QtvUSn3vVxUYOGjW5ycWmQfi/+Ho6+mcTS8C22DJ5 i/q07nlYqpkMsPw9KDRFxLS22iNEpISfmyJiql6KVMVCNUDhRpmssea38wKZTJ4yYFLb oMpQ== X-Gm-Message-State: ANoB5pn7uAnlK9sJY4x6m07uDWziUGGLSX5b1JsNUjKBvv5+qjbYYCH2 G4j5sm0L5vown1lxXwviSArjhe2JvjE= X-Google-Smtp-Source: AA0mqf436SnNigY9X/XdG4e8OkAztIggVpk4bDArG79pPOlWd1k7lr5uUqo+8vQRG3DigZsdD3e+tQ== X-Received: by 2002:ac2:5189:0:b0:4b5:b705:9bf7 with SMTP id u9-20020ac25189000000b004b5b7059bf7mr6012727lfi.11.1671103006732; Thu, 15 Dec 2022 03:16:46 -0800 (PST) Received: from G3620.lan (178-78-231-178.customers.ownit.se. [178.78.231.178]) by smtp.gmail.com with ESMTPSA id v19-20020a197413000000b0049313f77755sm1125510lfe.213.2022.12.15.03.16.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Dec 2022 03:16:46 -0800 (PST) Message-ID: <1677ec443794a5c95a37d3eccd60c28c0c3a260e.camel@gmail.com> Subject: Re: GMP GCC C++ Hurd cross-build failure on core-updates From: Svante Signell To: zamfofex Cc: guix-devel@gnu.org Date: Thu, 15 Dec 2022 12:17:22 +0100 In-Reply-To: References: Organization: Home Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::12c; envelope-from=svante.signell@gmail.com; helo=mail-lf1-x12c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: svante.signell@gmail.com Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671103068; h=from:from:sender:sender:reply-to: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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=tWjpfcUP4JAOua/3bufkZcx2/qHQvBOo7rHkgTmolRc=; b=uPCiR4gwyd9QWX8nYOTVZy6Bo36+hPVbqdyrY/nbAbWBNvVAnfulzxFORSwo43BhSqyCf9 xJukK3zPagbuXV04nvJ+xleNhYDLrrtO5qOrjrmd7xOXWqk3oOax1Xr/tVf2Cmqlh5tpYr lI7Oje6HmTae65x8FO3JKwML2zY4Cn8Xg2WMYCt1VkVfCxHY6Ra4KU72BAG92pDmcGTIAy Pq3iE+DuJLjKefIbKu1lsZJXe65ve4bg8cuyjyv6c3Q955NqdhnRx2bsEdqhyK1FzDZs/r yzEwsizH0MQ8XDSLhLcfsuHC+yIb5QPbEy+PjSZ0PrBuqJE9YQZQI6t1yU9+jg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=IKMQx51V; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671103068; a=rsa-sha256; cv=none; b=XHV0b6h5A6cLrEF6x2D39KQRVESMLZDC6+LmV730bNg14V1fmnd8ujhhKNyvUdYkXZlXTs rtK4czgWtA22b1qA/hQkUuYSW/uo5IE4dGcKZEYPi/PHFN/IdX0Qixk6eSRIgPDyTJWs2y M/2yNTQhRH7ZfRr4erJHHQSO6g9GQtZshJ+KNX3JAADHLvHsvco4D5kePNH3gqU5NtkI5x guk3CE9NiNILv8WCqdIIqlw62Wl5JFG3quPAgI6jdz6zjVKNgkk99NDcuXyOLBegU/lfjD xC3F9POsOZE/+YoQgrxbieOouK/ss3P3TNCz2BvUWKLFlKV/g24hOiVc3RjpXQ== X-Spam-Score: -5.97 X-Migadu-Queue-Id: 847611C6B0 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=IKMQx51V; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.97 X-TUID: LC7rDa01RzFz On Thu, 2022-12-15 at 01:24 -0600, Nathan Dehnel wrote: > You could try seeing what they're doing here to cross-build > https://github.com/flavioc/cross-hurd > It worked last time I ran it (which was admittedly a while ago) Hi, The problem is probably that you need to add --enable-add-ons=libpthread to configure when building first version of cross-glibc. This is to obtain weak references when building libcstd++ of cross-gcc: nm --dynamic /cross-tools/lib/libstdc++.so.6.0.30|grep pthread ... w __pthread_key_create w pthread_key_create w pthread_key_delete ... Then that build of cross-gcc will succeed in building the Hurd version of libstdc++ etc. nm --dynamic /tools/lib/libstdc++.so.6.0.30|grep pthread The problem is due to that with recent versions of glibc libpthread is included for Linux, but not for Hurd. Note that don't issue autoreconf gcc (in my case 12.2.0) unless you have only autoconf2.69 installed (or what is needed for your version of upstream gcc). My scripts to cross-build Hurd on Debian/GNU Linux: hurd-cross (hurdX) will soon be published on Savannah under the Hurd umbrella. Note the name difference: hurd-cross vs cross-hurd. As of current these scripts include up-to-date versions of all packages used, with git versions of mig, gnumach and hurd. (The scripts of hurd-cross were based on the work by Flavio in 2019, thank you Flavio. However they have diverged considerably since then, and are not easily merged into his work at github) Good luck!