From unknown Wed Sep 10 13:42:55 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#25500 <25500@debbugs.gnu.org> To: bug#25500 <25500@debbugs.gnu.org> Subject: Status: Please add compilation support for sh3 Reply-To: bug#25500 <25500@debbugs.gnu.org> Date: Wed, 10 Sep 2025 20:42:55 +0000 retitle 25500 Please add compilation support for sh3 reassign 25500 guile submitter 25500 John Paul Adrian Glaubitz severity 25500 normal tag 25500 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 21 07:00:09 2017 Received: (at submit) by debbugs.gnu.org; 21 Jan 2017 12:00:09 +0000 Received: from localhost ([127.0.0.1]:36897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cUuL3-0004dJ-48 for submit@debbugs.gnu.org; Sat, 21 Jan 2017 07:00:09 -0500 Received: from eggs.gnu.org ([208.118.235.92]:43520) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cUuL2-0004cJ-6B for submit@debbugs.gnu.org; Sat, 21 Jan 2017 07:00:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cUuKv-0005cd-RU for submit@debbugs.gnu.org; Sat, 21 Jan 2017 07:00:03 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:52784) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cUuKv-0005cM-PD for submit@debbugs.gnu.org; Sat, 21 Jan 2017 07:00:01 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34485) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUuKu-000285-37 for bug-guile@gnu.org; Sat, 21 Jan 2017 07:00:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cUuKr-0005Z9-2S for bug-guile@gnu.org; Sat, 21 Jan 2017 07:00:00 -0500 Received: from outpost1.zedat.fu-berlin.de ([130.133.4.66]:46469) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cUuKq-0005WY-Qb for bug-guile@gnu.org; Sat, 21 Jan 2017 06:59:56 -0500 Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.85) for bug-guile@gnu.org with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (envelope-from ) id <1cUuKm-001Hk1-PM>; Sat, 21 Jan 2017 12:59:52 +0100 Received: from p5088a8fe.dip0.t-ipconnect.de ([80.136.168.254] helo=[192.168.178.40]) by inpost2.zedat.fu-berlin.de (Exim 4.85) for bug-guile@gnu.org with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (envelope-from ) id <1cUuKm-001SW5-I6>; Sat, 21 Jan 2017 12:59:52 +0100 To: bug-guile@gnu.org From: John Paul Adrian Glaubitz Subject: Please add compilation support for sh3 Message-ID: <9086df36-5be2-3cec-82ad-1073fd65e8a9@physik.fu-berlin.de> Date: Sat, 21 Jan 2017 12:59:52 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------51287AA174D69453F455EF90" X-Originating-IP: 80.136.168.254 X-ZEDAT-Hint: A X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit 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: -5.0 (-----) This is a multi-part message in MIME format. --------------51287AA174D69453F455EF90 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Tags: Patch Hi! There is a new project called J-Core that is working on reimplementing the old SuperH architecture as an open source architecture. They are currently supporting the SH-2 CPU (called J-2) and are working to release the more powerful J-3 CPU which is based on the SH-3 design. In order to bootstrap Debian on "sh3", we need to add it as a compilation target to guile. This is done by the attached patch which adds the case for "sh3" for cpu-endianness and triplet-pointer-size in module/system/base/target.scm. Would be great to have this applied to be able to support Debian on an actual open source CPU. Thanks, Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaubitz@debian.org `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 --------------51287AA174D69453F455EF90 Content-Type: text/x-patch; name="0001-Recognize-sh3-as-compilation-targets.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Recognize-sh3-as-compilation-targets.patch" >From 43d106a816a11c1f732935b49259677e13ba9b97 Mon Sep 17 00:00:00 2001 From: John Paul Adrian Glaubitz Date: Sat, 21 Jan 2017 12:49:31 +0100 Subject: [PATCH] Recognize sh3 as compilation targets * module/system/base/target.scm (cpu-endianness, triplet-pointer-size): Add case for "sh3". Signed-off-by: John Paul Adrian Glaubitz --- module/system/base/target.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/system/base/target.scm b/module/system/base/target.scm index 02febf8e4..e80bf84e4 100644 --- a/module/system/base/target.scm +++ b/module/system/base/target.scm @@ -63,7 +63,7 @@ (cond ((string-match "^i[0-9]86$" cpu) (endianness little)) ((member cpu '("x86_64" "ia64" - "powerpcle" "powerpc64le" "mipsel" "mips64el" "nios2" "sh4" "alpha")) + "powerpcle" "powerpc64le" "mipsel" "mips64el" "nios2" "sh3" "sh4" "alpha")) (endianness little)) ((member cpu '("sparc" "sparc64" "powerpc" "powerpc64" "spu" "mips" "mips64" "m68k" "s390x")) @@ -102,7 +102,7 @@ ((string-match "64$" cpu) 8) ((string-match "64_?[lbe][lbe]$" cpu) 8) - ((member cpu '("sparc" "powerpc" "mips" "mipsel" "nios2" "m68k" "sh4")) 4) + ((member cpu '("sparc" "powerpc" "mips" "mipsel" "nios2" "m68k" "sh3" "sh4")) 4) ((member cpu '("s390x" "alpha")) 8) ((string-match "^arm.*" cpu) 4) (else (error "unknown CPU word size" cpu))))) -- 2.11.0 --------------51287AA174D69453F455EF90-- From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 12 16:08:45 2017 Received: (at 25500-done) by debbugs.gnu.org; 12 Feb 2017 21:08:45 +0000 Received: from localhost ([127.0.0.1]:37459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cd1O0-00040O-6W for submit@debbugs.gnu.org; Sun, 12 Feb 2017 16:08:45 -0500 Received: from eggs.gnu.org ([208.118.235.92]:57068) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cd1Nw-000406-VX for 25500-done@debbugs.gnu.org; Sun, 12 Feb 2017 16:08:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cd1No-0002MU-PP for 25500-done@debbugs.gnu.org; Sun, 12 Feb 2017 16:08:35 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50585) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cd1No-0002MN-Lm; Sun, 12 Feb 2017 16:08:32 -0500 Received: from reverse-83.fdn.fr ([80.67.176.83]:55796 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cd1No-0004KV-3G; Sun, 12 Feb 2017 16:08:32 -0500 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: John Paul Adrian Glaubitz Subject: Re: bug#25500: Please add compilation support for sh3 References: <9086df36-5be2-3cec-82ad-1073fd65e8a9@physik.fu-berlin.de> Date: Sun, 12 Feb 2017 22:08:28 +0100 In-Reply-To: <9086df36-5be2-3cec-82ad-1073fd65e8a9@physik.fu-berlin.de> (John Paul Adrian Glaubitz's message of "Sat, 21 Jan 2017 12:59:52 +0100") Message-ID: <8737fjrub7.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) 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: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25500-done Cc: 25500-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: -5.0 (-----) John Paul Adrian Glaubitz skribis: >>>From 43d106a816a11c1f732935b49259677e13ba9b97 Mon Sep 17 00:00:00 2001 > From: John Paul Adrian Glaubitz > Date: Sat, 21 Jan 2017 12:49:31 +0100 > Subject: [PATCH] Recognize sh3 as compilation targets > > * module/system/base/target.scm (cpu-endianness, triplet-pointer-size): > Add case for "sh3". > > Signed-off-by: John Paul Adrian Glaubitz Applied, thanks! Ludo=E2=80=99. From unknown Wed Sep 10 13:42:55 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 13 Mar 2017 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator