From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id gGmIOBZyGWSrEgAASxT56A (envelope-from ) for ; Tue, 21 Mar 2023 10:00:07 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id cE2hNxZyGWRjggEAG6o9tA (envelope-from ) for ; Tue, 21 Mar 2023 10:00:06 +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 6D5BA44BE4 for ; Tue, 21 Mar 2023 10:00:06 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peXqe-0007oK-Og; Tue, 21 Mar 2023 05:00:04 -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 1peXqd-0007nv-FV for guix-patches@gnu.org; Tue, 21 Mar 2023 05:00:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1peXqd-0000tR-1t for guix-patches@gnu.org; Tue, 21 Mar 2023 05:00:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1peXqc-0001cM-SH for guix-patches@gnu.org; Tue, 21 Mar 2023 05:00:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62309] [PATCH core-updates v2 1/2] opensbi: Build with default gcc, with microarch rv64g Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 21 Mar 2023 09:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62309 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxim Cournoyer , Josselin Poiret Cc: 62309@debbugs.gnu.org Received: via spool by 62309-submit@debbugs.gnu.org id=B62309.16793891896156 (code B ref 62309); Tue, 21 Mar 2023 09:00:02 +0000 Received: (at 62309) by debbugs.gnu.org; 21 Mar 2023 08:59:49 +0000 Received: from localhost ([127.0.0.1]:57609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peXqO-0001bD-Jw for submit@debbugs.gnu.org; Tue, 21 Mar 2023 04:59:48 -0400 Received: from jpoiret.xyz ([206.189.101.64]:35164) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peXqK-0001ai-3Y for 62309@debbugs.gnu.org; Tue, 21 Mar 2023 04:59:44 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id 3208518530D; Tue, 21 Mar 2023 08:59:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1679389183; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8cPls61vPDAsDn4VgbkqTLUd6UZG7phXNRVjBBqz/EA=; b=n/OLgJffZSAVmHZgSDdSKNATxKmOXNAXbxiaWbYXy88RVaGS7rJ3ro8fu6YOWd/bb2JhFa 0abfIgt/AhG2jhl7pDYBEBC4nfXGAqiZTXPZkZ/eUAGX3neZVVzuAo0oCjZ9VEL/gD9ucA F8J5Yyk8APqAQj3OUAeEkQpxFRRa7cXuKdJNxOd/MMa2SqXFztcbx1o5IZISPAwg9fVgp1 Y/Jpd+LaYXDGbxjgHvjGjAhhz7oE5Lwaz3sM+VZoNkDW/2wdQyfsFE94VDWhRgmXSNm3Dw Q0Ycd9ylgNMQDoqpLGHob7C+ZN/4Mqg8f31xSs/sjKS3CuofBW2SsikSGINDIw== Date: Tue, 21 Mar 2023 09:59:36 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Bar: / 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: , Reply-to: Josselin Poiret X-ACL-Warn: , Josselin Poiret via Guix-patches From: Josselin Poiret via Guix-patches via 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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679389206; a=rsa-sha256; cv=none; b=Yq9LCHOoqfO5pN8zHi8Et4Jn3QSBsth7XaaVrPUaVsr3OQBegTVQfqEiPjhGK+Z3KYjGwc AkQs3ooorI3//v4Tx1rM3iaIr4n2m2Gqvf6nWKu1a5Rbn4D955P12gt1uc8Jweh/o3UORU f5vuPtQYDMy1avMgH9pDUJOXpPPL7k7u1UYpSScsWgDpHsJB3Mr+ZOYGqrLMwYolocuFpy JMFy2AlTJx865Craz/SgEtKR/frtERPLaibeVcm7Ftjiz2r6zQ16/pzUtqZjyTV39SnmFq GAbP00FjwgcHamxToBZsaBOr5FT7pEbaedT1DImiS6CEu/TpMbESRFV2dc/T6A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b="n/OLgJff"; dmarc=pass (policy=none) header.from=gnu.org; 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=1679389206; 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-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=8cPls61vPDAsDn4VgbkqTLUd6UZG7phXNRVjBBqz/EA=; b=KbFUYqcHbZG95Zxfh/+v6oGzzgKDMKK16KcDVs3t8RlwRmNOUV7mlPBIx2jUmBBVGE8Pxy Qoq9yXxByXIJiP0ZUsHSX2XzLnyzkgjYl888Wdlgc3/u/ahvEhLyv6c65aHijYyskh+FyK nhiqIDhVudTELheGFcMJil4gPWQX4GhoVUcCiZspcBZnakk5pZk/etMN1+ruTwJL0u0xDZ VucDKbw86UPUGzGgJUJlP904dgFP0QyBFzmMTDy3X61966J+PUTQ/Bq2lD6g17cFp6JjTc Xq3j5+xDptegE6vMiowRcG/14XtApeEvhrTUsaCgjFjodEdDd6BlWMKHsY7h/A== X-Migadu-Spam-Score: -3.25 X-Spam-Score: -3.25 X-Migadu-Queue-Id: 6D5BA44BE4 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b="n/OLgJff"; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Scanner: scn1.migadu.com X-TUID: VVEjqsGWeD4e * gnu/packages/firmware.scm (make-opensbi-package): Remove specific #:xgcc for the cross-toolchain, there is not reason for it now. Also set the microarch to rv64g, so that it builds. --- gnu/packages/firmware.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm index 956ece5d6d..0b7fff035a 100644 --- a/gnu/packages/firmware.scm +++ b/gnu/packages/firmware.scm @@ -486,7 +486,7 @@ (define* (make-opensbi-package platform name #:optional (arch "riscv64")) (native-inputs `(,@(if (and (not (string-prefix? "riscv64" (%current-system))) (string-prefix? "riscv64" arch)) - `(("cross-gcc" ,(cross-gcc "riscv64-linux-gnu" #:xgcc gcc-7)) + `(("cross-gcc" ,(cross-gcc "riscv64-linux-gnu")) ("cross-binutils" ,(cross-binutils "riscv64-linux-gnu"))) '()))) (arguments @@ -499,6 +499,11 @@ (define* (make-opensbi-package platform name #:optional (arch "riscv64")) `("CC=gcc")) "FW_PAYLOAD=n" "V=1") + ;; Direct __asm__ is used with fence.i instructions, which are not + ;; available in the generic riscv ISA. We need a micro-arch with + ;; support for it, and rv64g is the official ISA with support for + ;; fence.i. + #:configure-flags (list "-march=rv64g") #:phases (modify-phases %standard-phases (delete 'configure) -- 2.39.2