From unknown Tue Sep 09 16:57:58 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#35966] [PATCH] gnu: Add basic support for riscv64-linux-gnu targets. Resent-From: Carl Dong Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 28 May 2019 17:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35966 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 35966@debbugs.gnu.org Cc: Carl Dong X-Debbugs-Original-To: guix-patches@gnu.org Reply-To: Carl Dong Received: via spool by submit@debbugs.gnu.org id=B.15590647143186 (code B ref -1); Tue, 28 May 2019 17:32:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 May 2019 17:31:54 +0000 Received: from localhost ([127.0.0.1]:57049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVfx4-0000pJ-3m for submit@debbugs.gnu.org; Tue, 28 May 2019 13:31:54 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVfx2-0000p4-0Q for submit@debbugs.gnu.org; Tue, 28 May 2019 13:31:52 -0400 Received: from lists.gnu.org ([209.51.188.17]:42208) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hVfww-00046Y-0a for submit@debbugs.gnu.org; Tue, 28 May 2019 13:31:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41963) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVfwu-0004fV-Ul for guix-patches@gnu.org; Tue, 28 May 2019 13:31:45 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVfws-00043g-Uy for guix-patches@gnu.org; Tue, 28 May 2019 13:31:44 -0400 Received: from mail4.protonmail.ch ([185.70.40.27]:47953) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hVfwp-00040f-6z for guix-patches@gnu.org; Tue, 28 May 2019 13:31:41 -0400 Date: Tue, 28 May 2019 17:31:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=carldong.me; s=protonmail; t=1559064696; bh=C3JF5Hk7CXcO869oh6JtG30XiO3w50DPwVs9hvAMo+A=; h=Date:To:From:Cc:Reply-To:Subject:Feedback-ID:From; b=UCrxIkTsjVApPObHYASXO4abv0YskHGl3QXQdj79rRNA6hJlQS9QFtCcqakq88/nn FlIIeHKgSAbOvuqaXoFEfjlIvsZrgevvoO1LWl6rINsKd6joVC3ayeO8BImzIErzF+ gWezooPWv4WO3cEb6V1TX+rTMfCwF+BIGRSmiIWA= From: Carl Dong Message-ID: Feedback-ID: a8j8tDUaJ4AYuDVBywMTwsJebN4w8TVXadJLsJb8td3t3dZi9RdXFlPaQvoFKnI9KgXySsPXcRkajVyY0cGTcA==:Ext:ProtonMail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 185.70.40.27 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) From: Carl Dong Aside from this patch, we also need 35888 and 35963 to satisfy riscv64's mi= nimum kernel header version requirements. * gnu/packages/bootstrap.scm (glibc-dynamic-linker): Add "riscv64-linux". * gnu/packages/linux.scm (system->linux-architecture): Add "riscv" prefix. --- gnu/packages/bootstrap.scm | 1 + gnu/packages/linux.scm | 1 + 2 files changed, 2 insertions(+) diff --git a/gnu/packages/bootstrap.scm b/gnu/packages/bootstrap.scm index a3ecbeb076..e8b2120551 100644 --- a/gnu/packages/bootstrap.scm +++ b/gnu/packages/bootstrap.scm @@ -177,6 +177,7 @@ return value is ignored." ((string=3D? system "powerpc64le-linux") "/lib/ld64.so.2") ((string=3D? system "alpha-linux") "/lib/ld-linux.so.2") ((string=3D? system "s390x-linux") "/lib/ld64.so.1") + ((string=3D? system "riscv64-linux") "/lib/ld-linux-riscv64-lp64d.= so.1") =20 ;; XXX: This one is used bare-bones, without a libc, so add a case ;; here just so we can keep going. diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 67085f30f2..bc519409c0 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -144,6 +144,7 @@ ((string-prefix? "alpha" arch) "alpha") ((string-prefix? "powerpc" arch) "powerpc") ;including "powerpc6= 4le" ((string-prefix? "s390" arch) "s390") + ((string-prefix? "riscv" arch) "riscv") (else arch)))) =20 (define-public (system->defconfig system) --=20 2.21.0 From unknown Tue Sep 09 16:57:58 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Carl Dong Subject: bug#35966: closed (Re: [bug#35966] [PATCH] gnu: Add basic support for riscv64-linux-gnu targets.) Message-ID: References: <20190529154152.7ec3ac76@scratchpost.org> X-Gnu-PR-Message: they-closed 35966 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 35966@debbugs.gnu.org Date: Wed, 29 May 2019 13:42:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1559137322-11411-1" This is a multi-part message in MIME format... ------------=_1559137322-11411-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #35966: [PATCH] gnu: Add basic support for riscv64-linux-gnu targets. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 35966@debbugs.gnu.org. --=20 35966: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D35966 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1559137322-11411-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 35966-done) by debbugs.gnu.org; 29 May 2019 13:41:58 +0000 Received: from localhost ([127.0.0.1]:58377 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVyq6-0002xn-8x for submit@debbugs.gnu.org; Wed, 29 May 2019 09:41:58 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:38336) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVyq3-0002xe-WE for 35966-done@debbugs.gnu.org; Wed, 29 May 2019 09:41:56 -0400 Received: from localhost (178.113.234.233.wireless.dyn.drei.com [178.113.234.233]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 175ED3360759; Wed, 29 May 2019 15:41:54 +0200 (CEST) Date: Wed, 29 May 2019 15:41:52 +0200 From: Danny Milosavljevic To: Carl Dong Subject: Re: [bug#35966] [PATCH] gnu: Add basic support for riscv64-linux-gnu targets. Message-ID: <20190529154152.7ec3ac76@scratchpost.org> In-Reply-To: References: X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/a_b+aAV5alu78JzhWIVPTpu"; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 35966-done Cc: Carl Dong , 35966-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --Sig_/a_b+aAV5alu78JzhWIVPTpu Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Pushed to guix master as commit 7180dd671697e0215b140ebc0d36047b4b8375f2. Thanks! --Sig_/a_b+aAV5alu78JzhWIVPTpu Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlzujCAACgkQ5xo1VCww uqX/Wgf/UIWYqLbCdcKMzm4Xgz55EqfRcHs8BK7kEjV3bb3G7uOcd9VCDp2nwXVV 4/N1raOZM4b1/WRjM9nMXDGquleqWl49gj/2velqLinRJ2YL2FfrQUtMJKzARjHq Hc+PA/RvG9tUyHAspstFG+Z2MVm+qV0D1LrtnQQN/R05WAomBW7lWo3G8m8Op8CO QH7Z3YpjGgDkdkDQHpmEPj4LMB93QJ67F6VjeTzO2o/zfq6pr0jx9XiH/pzmWwRm gdoCjA4sUPgdKl2BNX8mV+dGd0m+FePMY1dJQTS/a88iKemZNPo1IlzPFkrLLItW 4Zbgb0eXhytXW/jKQeHZ8FojBoncOA== =Jpzm -----END PGP SIGNATURE----- --Sig_/a_b+aAV5alu78JzhWIVPTpu-- ------------=_1559137322-11411-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 28 May 2019 17:31:54 +0000 Received: from localhost ([127.0.0.1]:57049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVfx4-0000pJ-3m for submit@debbugs.gnu.org; Tue, 28 May 2019 13:31:54 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVfx2-0000p4-0Q for submit@debbugs.gnu.org; Tue, 28 May 2019 13:31:52 -0400 Received: from lists.gnu.org ([209.51.188.17]:42208) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hVfww-00046Y-0a for submit@debbugs.gnu.org; Tue, 28 May 2019 13:31:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41963) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVfwu-0004fV-Ul for guix-patches@gnu.org; Tue, 28 May 2019 13:31:45 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVfws-00043g-Uy for guix-patches@gnu.org; Tue, 28 May 2019 13:31:44 -0400 Received: from mail4.protonmail.ch ([185.70.40.27]:47953) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hVfwp-00040f-6z for guix-patches@gnu.org; Tue, 28 May 2019 13:31:41 -0400 Date: Tue, 28 May 2019 17:31:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=carldong.me; s=protonmail; t=1559064696; bh=C3JF5Hk7CXcO869oh6JtG30XiO3w50DPwVs9hvAMo+A=; h=Date:To:From:Cc:Reply-To:Subject:Feedback-ID:From; b=UCrxIkTsjVApPObHYASXO4abv0YskHGl3QXQdj79rRNA6hJlQS9QFtCcqakq88/nn FlIIeHKgSAbOvuqaXoFEfjlIvsZrgevvoO1LWl6rINsKd6joVC3ayeO8BImzIErzF+ gWezooPWv4WO3cEb6V1TX+rTMfCwF+BIGRSmiIWA= To: guix-patches@gnu.org From: Carl Dong Subject: [PATCH] gnu: Add basic support for riscv64-linux-gnu targets. Message-ID: Feedback-ID: a8j8tDUaJ4AYuDVBywMTwsJebN4w8TVXadJLsJb8td3t3dZi9RdXFlPaQvoFKnI9KgXySsPXcRkajVyY0cGTcA==:Ext:ProtonMail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 185.70.40.27 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Carl Dong X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Carl Dong Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) From: Carl Dong Aside from this patch, we also need 35888 and 35963 to satisfy riscv64's mi= nimum kernel header version requirements. * gnu/packages/bootstrap.scm (glibc-dynamic-linker): Add "riscv64-linux". * gnu/packages/linux.scm (system->linux-architecture): Add "riscv" prefix. --- gnu/packages/bootstrap.scm | 1 + gnu/packages/linux.scm | 1 + 2 files changed, 2 insertions(+) diff --git a/gnu/packages/bootstrap.scm b/gnu/packages/bootstrap.scm index a3ecbeb076..e8b2120551 100644 --- a/gnu/packages/bootstrap.scm +++ b/gnu/packages/bootstrap.scm @@ -177,6 +177,7 @@ return value is ignored." ((string=3D? system "powerpc64le-linux") "/lib/ld64.so.2") ((string=3D? system "alpha-linux") "/lib/ld-linux.so.2") ((string=3D? system "s390x-linux") "/lib/ld64.so.1") + ((string=3D? system "riscv64-linux") "/lib/ld-linux-riscv64-lp64d.= so.1") =20 ;; XXX: This one is used bare-bones, without a libc, so add a case ;; here just so we can keep going. diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 67085f30f2..bc519409c0 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -144,6 +144,7 @@ ((string-prefix? "alpha" arch) "alpha") ((string-prefix? "powerpc" arch) "powerpc") ;including "powerpc6= 4le" ((string-prefix? "s390" arch) "s390") + ((string-prefix? "riscv" arch) "riscv") (else arch)))) =20 (define-public (system->defconfig system) --=20 2.21.0 ------------=_1559137322-11411-1--