From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yIZpAZotgWCSswAAgWs5BA (envelope-from ) for ; Thu, 22 Apr 2021 10:02:34 +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 qF17OJktgWDwOQAAbx9fmQ (envelope-from ) for ; Thu, 22 Apr 2021 08:02:33 +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 B5BA99A97 for ; Thu, 22 Apr 2021 10:02:33 +0200 (CEST) Received: from localhost ([::1]:48722 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZUIC-0002r4-RE for larch@yhetil.org; Thu, 22 Apr 2021 04:02:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38158) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZUHb-0002p3-PN for guix-devel@gnu.org; Thu, 22 Apr 2021 04:01:55 -0400 Received: from flashner.co.il ([178.62.234.194]:40238) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZUHa-00076j-2b for guix-devel@gnu.org; Thu, 22 Apr 2021 04:01:55 -0400 Received: from localhost (unknown [31.210.177.125]) by flashner.co.il (Postfix) with ESMTPSA id AA901403A4; Thu, 22 Apr 2021 08:01:52 +0000 (UTC) From: Efraim Flashner To: 47615@debbugs.gnu.org, guix-devel@gnu.org Subject: [PATCH v2 03/12] gnu: gcc-boot0: Use 128-bit long-double on powerpc-linux. Date: Thu, 22 Apr 2021 10:59:16 +0300 Message-Id: <0f7980ce5048d058aabc7ef63d876c43824196cf.1619076704.git.efraim@flashner.co.il> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=178.62.234.194; envelope-from=efraim@flashner.co.il; helo=flashner.co.il X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-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.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619078553; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=jdGGzSqXf4LtUHaJqoO7RKCZO5lQR+AFe+1Jbrlc0UI=; b=J6MM7LY9WgwpOq2KRh9I0eCs1ED5TOdYH/azBDMQwI7IIKvwReyVhXhR46UNOSg0ckOhUo oNAHlcMw9RKGhsSnV4gxIoMVoWPj+gk47dWO8QH+5d7aHJQ+rd4Q7vfbPJVoniMI880baJ 7K2X3sL3xwToQPbf1Db3fufjyhGmo6EuVuDZ3umQCmKXPiZJ6kMLYMjZLwPue/j1qp+zBM CQTD7DV3gt7fyBoMqw44iQyng3gbVqv5hq03cqOFB1d+b6kzH3RYfYOxZi3HMiPQsw8u/p OZKNc00PEPbebvWv9q78bEWsRXbdKv0lh/NdngEtspB8NaWkom4NAq9XzMZOCg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619078553; a=rsa-sha256; cv=none; b=Dw4WxDxn+NvJ6Rd6V6kHeDhcWgPWZFPsCE0H7dUk3wH0HVKsL4d4Mst97SIaJ+SHt1WahU UDfTMCTXjmaxzNKFEJwAoUTbNq3poonEQpef1WdO3IomSDaetuQKHWhjMPik7ojKAg1eTn L6XTpspp+1MNaoZWWp2OjFj7ZX7Yt7HxVz0jcnjawxc/MQ66ZKTalIp+xcPrg2McXhTscl Yt3sjVe3WzhGeU9J2GJRdl22eckEA0LrRIp53k1+VBGnl5h0SV+cAm7KaFqUpSLI3hOuf8 9SeZOUy9FQrMa+cg5G8xu0wHRh0GwE9OA2H3wcsuIO5EYWYmlMgIPOjhszf1bg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: 2.56 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: B5BA99A97 X-Spam-Score: 2.56 X-Migadu-Scanner: scn0.migadu.com X-TUID: LftEGLxtD6+i * gnu/packages/commencement.scm (gcc-boot0)[arguments]: Adjust configure-flag to also use '--with-long-double-128' on powerpc-linux. --- gnu/packages/commencement.scm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) I ran into build troubles without this patch. It only affects gcc-boot0 on powerpc, everything else I built out to mesa was unaffected by a 64-bit/128-bit mismatch. diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm index 36ebcee163..93caaac709 100644 --- a/gnu/packages/commencement.scm +++ b/gnu/packages/commencement.scm @@ -2733,12 +2733,12 @@ exec " gcc "/bin/" program "--disable-shared" "--enable-languages=c,c++" - ;; boot-triplet inserts "guix" in the triplet. - ,@(if (equal? "powerpc64le-guix-linux-gnu" (boot-triplet)) - ;; On POWER9 (little endian) glibc needs the - ;; 128-bit long double type. - '("--with-long-double-128") - '()) + ;; On POWER9 (little endian) glibc needs the 128-bit + ;; long double type. 32-bit PPC is affected by the + ;; changes applied for powerpc64le. + ,@(if (string-prefix? "powerpc" (boot-triplet)) + '("--with-long-double-128") + '()) ;; libstdc++ cannot be built at this stage ;; ("Link tests are not allowed after -- 2.31.1