From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Manuel A. Fernandez Montecelo" Newsgroups: gmane.lisp.guile.bugs Subject: bug#30832: Please add support for new architecture "riscv64" (RISC-V 64 bits little-endian) Date: Fri, 16 Mar 2018 00:25:38 +0100 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="000000000000a9585e05677bd105" X-Trace: blaine.gmane.org 1521156479 17306 195.159.176.226 (15 Mar 2018 23:27:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 15 Mar 2018 23:27:59 +0000 (UTC) To: 30832@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Mar 16 00:27:54 2018 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ewcHp-0004Oj-MG for guile-bugs@m.gmane.org; Fri, 16 Mar 2018 00:27:53 +0100 Original-Received: from localhost ([::1]:53814 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ewcJs-0004eK-Mh for guile-bugs@m.gmane.org; Thu, 15 Mar 2018 19:30:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ewcH1-0002Wt-7q for bug-guile@gnu.org; Thu, 15 Mar 2018 19:27:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ewcH0-00017F-FM for bug-guile@gnu.org; Thu, 15 Mar 2018 19:27:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55860) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ewcH0-000177-A0 for bug-guile@gnu.org; Thu, 15 Mar 2018 19:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ewcH0-0006Ci-1k for bug-guile@gnu.org; Thu, 15 Mar 2018 19:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Manuel A. Fernandez Montecelo" Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Thu, 15 Mar 2018 23:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30832 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.152115639223808 (code B ref -1); Thu, 15 Mar 2018 23:27:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Mar 2018 23:26:32 +0000 Original-Received: from localhost ([127.0.0.1]:35524 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ewcGW-0006Bw-Cm for submit@debbugs.gnu.org; Thu, 15 Mar 2018 19:26:32 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ewcGU-0006Bj-JN for submit@debbugs.gnu.org; Thu, 15 Mar 2018 19:26:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ewcGO-0000ko-KY for submit@debbugs.gnu.org; Thu, 15 Mar 2018 19:26:25 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:37755) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ewcGO-0000kh-GB for submit@debbugs.gnu.org; Thu, 15 Mar 2018 19:26:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48613) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ewcGN-00022g-0z for bug-guile@gnu.org; Thu, 15 Mar 2018 19:26:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ewcGL-0000jQ-RA for bug-guile@gnu.org; Thu, 15 Mar 2018 19:26:23 -0400 Original-Received: from mail-lf0-x231.google.com ([2a00:1450:4010:c07::231]:36993) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ewcGL-0000iV-I1 for bug-guile@gnu.org; Thu, 15 Mar 2018 19:26:21 -0400 Original-Received: by mail-lf0-x231.google.com with SMTP id y19-v6so12716237lfd.4 for ; Thu, 15 Mar 2018 16:26:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=8tS7DrC3t9vk/OxA0OwWMSg7AyhY7LO/B9hQzNs+Tmg=; b=qmv+pEpkvT4eIHOECjmvbodRfTQQP0BeQ2wRTOplfZKLYMvdmN9uh9THMJc0G/DuZV EsVcSlLXLxQ1sGJZmqv8yCpUjRuRUD2DXa4mex8ReSzUGN12SvwH2zGLWxbZiPT6g7Us bw9EVgSb41xIaazroZMDusbiG7XQuR/A4ZDuxOCwiWPGULnUdm7M1wIF4pxMTJJn3cfi 1b+xjk9rK+vLCtogan/I3hoMonLlARFIfnSn7wsT27AfUgewJmgEsQwDYdjl9uOSc8gP AscYSXVoJYDC7tfvCQ9NBGbeIff9P2nTjO4lQbwxCpwC43D/PdnY2oluPvlhyz+WQcqD mG9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=8tS7DrC3t9vk/OxA0OwWMSg7AyhY7LO/B9hQzNs+Tmg=; b=TBqO4C6P7CnR+Nm+T3m4OnXe0BWDcrggq46SSnjRegyoFieRsc4eoULrpgiAYZkjLO Ctd8bQaT7CBWYdQUjJ13bTzbonYsoa9kGrjoKkeuw8q7MrQYTGmAAZMql2LrfODKeW6Z enmw9O/QKJqp+h4INgTM++wc1d0Evy+bvyyeEq6ZKnDvXFHyirScXtIBD2Ml4fyY9eVP ETyR8IpysySqKjwbB2MHFCastS5ZpKNEaz+of+1kVm9nzGPrAkqFhEyFO5NIWa9htW9h xRSzErW67AKdPu6xwM66qSZhaY+kcCgeBmIzFBZVv4wrIVxPK9JxQYuwZTzW3zK7LVhm 1sUA== X-Gm-Message-State: AElRT7FnpDgEvcnYbuQxvCiwDCQ4BMjwMXIzFJsDHzk5M+BBMExXZtCy hgtVPJ/ABq3kEQzyRgiUqU8G95RFgR+hVUgfx5Xhmg== X-Google-Smtp-Source: AG47ELuWk9MoY2FB3xKbzNx4X/6sM6zbXrILSKH5J0P9BVX5VP0JVVHvhJmi04yhSbn/gts+sJrKAEowv2ux5E5NDbg= X-Received: by 2002:a19:d0d5:: with SMTP id h204-v6mr7306619lfg.124.1521156379718; Thu, 15 Mar 2018 16:26:19 -0700 (PDT) Original-Received: by 2002:a19:9a08:0:0:0:0:0 with HTTP; Thu, 15 Mar 2018 16:25:38 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:9021 Archived-At: --000000000000a9585e05677bd105 Content-Type: text/plain; charset="UTF-8" Hello, Please add support for this architecture, simple patch attached (based on guile-2.0, the most popular version in Debian). The change is simply to add "riscv64" in the following location, the arch name seems to be missing in: http://git.savannah.gnu.org/cgit/guile.git/tree/module/system/base/target.scm#n74 Since it ends in -64, the pointer size should be detected correctly in the current code. I compiled this and ran the test suite successfully: Totals for this test run: passes: 40317 failures: 0 unexpected passes: 0 expected failures: 9 unresolved test cases: 571 untested test cases: 1 unsupported test cases: 10 errors: 0 If there's anything missing, please let me know. Cheers. -- Manuel A. Fernandez Montecelo --000000000000a9585e05677bd105 Content-Type: text/x-patch; charset="US-ASCII"; name="riscv64.patch" Content-Disposition: attachment; filename="riscv64.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_jet573h00 SW5kZXg6IGd1aWxlLTIuMC0yLjAuMTMrMS9tb2R1bGUvc3lzdGVtL2Jhc2UvdGFyZ2V0LnNjbQo9 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09Ci0tLSBndWlsZS0yLjAtMi4wLjEzKzEub3JpZy9tb2R1bGUvc3lzdGVtL2Jhc2Uv dGFyZ2V0LnNjbQorKysgZ3VpbGUtMi4wLTIuMC4xMysxL21vZHVsZS9zeXN0ZW0vYmFzZS90YXJn ZXQuc2NtCkBAIC02NSw3ICs2NSw3IEBACiAgICAgICAoY29uZCAoKHN0cmluZy1tYXRjaCAiXmlb MC05XTg2JCIgY3B1KQogICAgICAgICAgICAgIChlbmRpYW5uZXNzIGxpdHRsZSkpCiAgICAgICAg ICAgICAoKG1lbWJlciBjcHUgJygieDg2XzY0IiAiaWE2NCIKLSAgICAgICAgICAgICAgICAgICAg ICAgICAgICJwb3dlcnBjbGUiICJwb3dlcnBjNjRsZSIgIm1pcHNlbCIgIm1pcHM2NGVsIiAibmlv czIiICJzaDQiICJhbHBoYSIpKQorICAgICAgICAgICAgICAgICAgICAgICAgICAgInBvd2VycGNs ZSIgInBvd2VycGM2NGxlIiAibWlwc2VsIiAibWlwczY0ZWwiICJuaW9zMiIgInNoNCIgImFscGhh IiAicmlzY3Y2NCIpKQogICAgICAgICAgICAgIChlbmRpYW5uZXNzIGxpdHRsZSkpCiAgICAgICAg ICAgICAoKG1lbWJlciBjcHUgJygic3BhcmMiICJzcGFyYzY0IiAicG93ZXJwYyIgInBvd2VycGM2 NCIgInNwdSIKICAgICAgICAgICAgICAgICAgICAgICAgICAgICJtaXBzIiAibWlwczY0IiAibTY4 ayIgInMzOTB4IikpCg== --000000000000a9585e05677bd105--