From patchwork Thu Dec 7 16:38:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "ashish.is--- via Guix-patches\" via" X-Patchwork-Id: 57358 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3F06A27BBEA; Thu, 7 Dec 2023 18:37:23 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI,PDS_OTHER_BAD_TLD, SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5B55227BBE9 for ; Thu, 7 Dec 2023 18:37:22 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBJF6-0000fL-FT; Thu, 07 Dec 2023 13:37:00 -0500 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 1rBILq-0008NH-6C for guix-patches@gnu.org; Thu, 07 Dec 2023 12:39:54 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rBILl-00079V-8j for guix-patches@gnu.org; Thu, 07 Dec 2023 12:39:53 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rBILx-0001og-MT for guix-patches@gnu.org; Thu, 07 Dec 2023 12:40:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67697] [PATCH] syscalls: Define riscv64 syscall ID for clone Resent-From: *~=`'#}+{/-|&$^_@721217.xyz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 07 Dec 2023 17:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 67697 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67697@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17019707576889 (code B ref -1); Thu, 07 Dec 2023 17:40:01 +0000 Received: (at submit) by debbugs.gnu.org; 7 Dec 2023 17:39:17 +0000 Received: from localhost ([127.0.0.1]:43067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rBILE-0001n0-BB for submit@debbugs.gnu.org; Thu, 07 Dec 2023 12:39:17 -0500 Received: from lists.gnu.org ([2001:470:142::17]:59492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rBHWe-0005nj-9Y for submit@debbugs.gnu.org; Thu, 07 Dec 2023 11:47:00 -0500 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 1rBHWF-0005xi-Uh for guix-patches@gnu.org; Thu, 07 Dec 2023 11:46:42 -0500 Received: from mail-200162.simplelogin.co ([176.119.200.162]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rBHWC-0007lv-1E for guix-patches@gnu.org; Thu, 07 Dec 2023 11:46:33 -0500 ARC-Seal: i=1; a=rsa-sha256; d=simplelogin.co; s=arc-20230626; t=1701967107; cv=none; b=ybTCTTQ+dFENq3jx5UgGbNYq/RrpQWcfGHzG5tmRPA/bDGgY2/0jCsEi1uRhVOFK0MEoA4MqKgSgGbXoapt9GGUykaFwN8x/CmldPJhLugXH0cnY8FkODC1bJ7J8dXGUSupHKE1t4Ebw7Hw+iSBvod5evQA+Kgd+d/cIGBGQ5aAjTd/UC3roaD9DHcYZpYNYjklwJquYvZ6SaKuEN0H8EQgB6ja1czQyjgNhiFIRDh57vrN8fCE/YppAoLg/SMTkTkMNgGIiyMnrJz/6A7ZX2pRu40xjlc32qKn0oXYgHhPNRqmDwLJ/AKCsVJ/FZMIbb7a4j/ePjj1zGmOUyPJJXA== ARC-Message-Signature: i=1; a=rsa-sha256; d=simplelogin.co; s=arc-20230626; t=1701967107; c=relaxed/simple; bh=+1t/8uxhI5kIyDtTAvJzCPXqxUna4ALSHBwhrzQnNnQ=; h=DKIM-Signature:MIME-Version:Date:Subject:Content-Type: Content-Transfer-Encoding:From:To:Message-ID:X-SimpleLogin-Type: X-SimpleLogin-EmailLog-ID:X-SimpleLogin-Want-Signing; b=yRWgdFpQi541PoJhEtT4OJmvELlq8i+7RFVND6g4En51SVOBCjl+YyGJQ5S3Y16Ek3+th+AUYId4kI7THGaIlDZWFGWHrOpRaBfx/HwJVsqzaZZN20LnwBZV57luEmq1cy8Fy2YyztcVoLD64EcUTIFtjqE8GSJ+9VuJX7ZdgQSSz9FJ5Ac6GbGfKktbMwmpMw9eR0tZ/d/ZDPSPxObei6MPXiXYvNULoc9HtE1Um+Z+NTI4vkcTSXgNEscfnBAZCSe+PgwkA8WRta0Ar7wiSZIUyjluQofz8tagD7KlqBnagiuNSY8SdyNjPYI5bNM2cnUgOR62wnLeGpxs5LT09Q== ARC-Authentication-Results: i=1; mail.protonmail.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=721217.xyz; s=dkim; t=1701967107; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZpEWuOb0/3x/5xpnmYNknRPjXfQbwn3u//UHfoouBmE=; b=CLV/W4V35u1Wj/Mz7WQZQHlQT3194NB8s3t5SU94aSIPmnTl0GuaN51BO7qUyJ86na/CLU /VF+8/JZ99CVHgnqKqQRKjL2/i/EXDclBd9B2ZG+iUwyDVmLnTFVAMzknPjpH0+yJhiipr 0oOTj09W8PXvDxhOy5RExD3/4JXxAnE= MIME-Version: 1.0 Date: Thu, 7 Dec 2023 17:38:12 +0100 Message-ID: <170196710688.9.2401797988823830037.226818130@721217.xyz> X-SimpleLogin-Type: Reply X-SimpleLogin-EmailLog-ID: 226818130 X-SimpleLogin-Want-Signing: yes Received-SPF: pass client-ip=176.119.200.162; envelope-from=sl.lmysyibsgi3dqmjygeztalbageydcnrrhe4f2.zhtkr323xf3he@721217.xyz; helo=mail-200162.simplelogin.co X-Spam_score_int: -5 X-Spam_score: -0.6 X-Spam_bar: / X-Spam_report: (-0.6 / 5.0 requ) APOSTROPHE_FROM=0.545, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, PDS_NAKED_TO_NUMERO=1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 07 Dec 2023 12:39:14 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Thu, 07 Dec 2023 13:36:59 -0500 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: *~=`'#}+{/-|&$^_@721217.xyz X-ACL-Warn: , *~=`'#}+{/-|&$^_--- via Guix-patches X-Patchwork-Original-From: *~=`'#}+{/-|&$^_--- via Guix-patches via From: "ashish.is--- via Guix-patches\" via" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From 3718cdbb185d16794eb36f9b558f4e9d11220afe Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Thu, 7 Dec 2023 16:15:18 +0000 Subject: [PATCH] syscalls: Define riscv64 syscall ID for clone * guix/build/syscalls.scm (clone): Add an entry for riscv64. This allows the use of --container on riscv64. The behavior before and after is shown below. (before) $ guix shell --container --pure hello accepted connection from pid 3269077, user root Backtrace: 19 (apply-smob/0 #) In ice-9/boot-9.scm: 724:2 18 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 17 (_ #(#(#))) In guix/ui.scm: 2275:7 16 (run-guix . _) 2238:10 15 (run-guix-command _ . _) In ice-9/boot-9.scm: 1752:10 14 (with-exception-handler _ _ #:unwind? _ # _) 1752:10 13 (with-exception-handler _ _ #:unwind? _ # _) In guix/store.scm: 661:37 12 (thunk) 1300:8 11 (call-with-build-handler _ _) 1300:8 10 (call-with-build-handler # ?) In guix/status.scm: 815:4 9 (call-with-status-report _ _) In guix/scripts/environment.scm: 1078:11 8 (_) In guix/monads.scm: 576:2 7 (run-with-store # _ ?) In guix/scripts/environment.scm: 793:8 6 (_ _) In gnu/build/linux-container.scm: 397:16 5 (call-with-container (#< device: "none?> ?) ?) 239:15 4 (run-container "/tmp/guix-directory.YvLVVm" (#< ?) ?) In guix/build/syscalls.scm: 1109:21 3 (_ 2114060305) In unknown file: Exception thrown while printing backtrace: In procedure primitive-call-ip: Wrong type argument in position 1 (expecting PRIMITIVE_P): # ice-9/boot-9.scm:1685:16: In procedure raise-exception: Wrong type (expecting exact integer): #f (after) $ guix shell --container --pure hello [env]# hello Hello, world! Change-Id: I12b3cb5e2aa248266d006b6e456082f4ddc70e62 --- guix/build/syscalls.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/guix/build/syscalls.scm b/guix/build/syscalls.scm index 0358960..4a0a7f6 100644 --- a/guix/build/syscalls.scm +++ b/guix/build/syscalls.scm @@ -1093,6 +1093,7 @@ (define clone ("armv7l" 120) ("aarch64" 220) ("ppc64le" 120) + ("riscv64" 220) (_ #f)))) (lambda (flags) "Create a new child process by duplicating the current parent process.