From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yLIkLgCHp2DMXgEAgWs5BA (envelope-from ) for ; Fri, 21 May 2021 12:10:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id eE3ZKQCHp2CLAwAA1q6Kng (envelope-from ) for ; Fri, 21 May 2021 10:10:08 +0000 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 11CEF10F9F for ; Fri, 21 May 2021 12:10:08 +0200 (CEST) Received: from localhost ([::1]:34040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lk26Y-0002C4-Mc for larch@yhetil.org; Fri, 21 May 2021 06:10:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47182) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lk26U-00029v-5K for guix-patches@gnu.org; Fri, 21 May 2021 06:10:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52567) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lk26T-0000gI-Tt for guix-patches@gnu.org; Fri, 21 May 2021 06:10:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lk26T-0002qk-NU for guix-patches@gnu.org; Fri, 21 May 2021 06:10:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48541] [PATCH] gnu: Fix build for ldc. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 21 May 2021 10:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48541 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Roel Janssen Cc: 48541@debbugs.gnu.org Received: via spool by 48541-submit@debbugs.gnu.org id=B48541.162159176210892 (code B ref 48541); Fri, 21 May 2021 10:10:01 +0000 Received: (at 48541) by debbugs.gnu.org; 21 May 2021 10:09:22 +0000 Received: from localhost ([127.0.0.1]:35880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lk25n-0002pX-6u for submit@debbugs.gnu.org; Fri, 21 May 2021 06:09:22 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lk25j-0002pD-5D for 48541@debbugs.gnu.org; Fri, 21 May 2021 06:09:17 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46568) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lk25d-0000Am-W7 for 48541@debbugs.gnu.org; Fri, 21 May 2021 06:09:10 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=55674 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lk25d-0006OF-EM; Fri, 21 May 2021 06:09:09 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <2b42fec5-8266-4953-4a6d-8b73e2105fff@gnu.org> Date: Fri, 21 May 2021 12:09:07 +0200 In-Reply-To: <2b42fec5-8266-4953-4a6d-8b73e2105fff@gnu.org> (Roel Janssen's message of "Thu, 20 May 2021 18:08:31 +0200") Message-ID: <87o8d44cvw.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621591808; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: 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; bh=1AW9RE50OfIhbhz6bLXfdwrY4EZ7FIj21EN+wYKYk+0=; b=o00Su3/FC2++i1jufCRYg+p6QBZMqjymBKaLZBnrBEDV+shgKQ4cR3+50KT5mCvO+MFKlT okNIceodIh4c/VKxQdXJ5oR9igYdmYoiBOD/o98Ad0PN1yjS/NKcPo8KSJKDTZdImqxIHV y/y5jxFPbFYCPuCwZtDDNBcfSPRU+hLltBgQDzRoP7vLEBWOZSnv/JbzUuHYybzGm7ioOx PQVK1tC08i/5Qyig/38QblVgFjFddJTt2yttJgQ5jqjE00gdBuQb7rBxIIrorAnpXNY0Q4 nlD6wc498WF7sgtTrOXSFbjj8EWBRChP/Iwf3nbD3kskc3mcDO7Mps9FPIx4fg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621591808; a=rsa-sha256; cv=none; b=dyPVMjOIb2zumwJI07twlJ7M83qUUndlmcunDxTbBg2Amomc5+lKc5iQ7pgf9IoXzzXByQ NmxF1Jr1c+OQlSNLrufHZsulCvTArUqnwlq5NVdFbyxLlD3M1lgcc+X35CflFoNkaxIYGU Zqy2WRiqXuUHsXZaxw+vzkMyfRYHI43/worULEwkuCC6wII5qp7YJKdglsjQ7/MLKYbgHY NAKokWEOxZZmyL4832/D6/GuzRgWuMcokSx+Hi/2Q8+c775s10j56NU2NqMpK31MQ/lx+f ecRu/eG4ODKSlHtxqflSI9wwJP3LfQfuiZ55Y9kuYaSvW1QDcuMuW8QyKqjEwg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -2.94 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 11CEF10F9F X-Spam-Score: -2.94 X-Migadu-Scanner: scn1.migadu.com X-TUID: 0CLLi3JwVg3L Hi Roel, Roel Janssen skribis: > I looked into why our LDC package fails to build, and it seems that > all tests that make use of "ptrace" fail because the build environment=20 > doesn't allow it. > So I disabled these tests by removing the relevant files, and > completed a successful build. > > If there is a way to provide the build environment with the ability to > use ptrace, and if that is preferred to removing tests, then please > let me know so I can prepare another patch. The build environment doesn=E2=80=99t prevent the use of ptrace per se, AFA= IK. However, some systems may have /proc/sys/kernel/yama/ptrace_scope set to 1 (as a system-level setting), which prevents ptracing one=E2=80=99s own processes, unless they=E2=80=99re a child. I thought this could have been the reason but I see that ldc fails to build on berlin, where ptrace_scope is 0 (it=E2=80=99s Guix System), so may= be there=E2=80=99s something else. Unfortunately the build log at doesn=E2=80=99t show anythin= g. Do you have more info about these failures? >>>From 191aa4cc2f131453d9ffc902d72dbe16307aa0c0 Mon Sep 17 00:00:00 2001 > From: Roel Janssen > Date: Thu, 20 May 2021 18:04:05 +0200 > Subject: [PATCH] gnu: Fix build for ldc. > > * gnu/packages/dlang.scm (ldc): Disable tests that use ptrace. > --- > gnu/packages/dlang.scm | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/gnu/packages/dlang.scm b/gnu/packages/dlang.scm > index da3b818c26..33be779ba3 100644 > --- a/gnu/packages/dlang.scm > +++ b/gnu/packages/dlang.scm > @@ -240,6 +240,16 @@ bootstrapping more recent compilers written in D.") > (delete-file "tests/compilable/ctfe_math.d") > (delete-file "tests/debuginfo/nested_gdb.d") > (delete-file "tests/debuginfo/classtypes_gdb.d") > + ;; the following tests need special permissions for ptrac= e: > + (delete-file "tests/d2/dmd-testsuite/runnable/b18504.d") > + (delete-file "tests/d2/dmd-testsuite/runnable/gdb14225.d") > + (delete-file "tests/d2/dmd-testsuite/runnable/gdb14276.d") > + (delete-file "tests/d2/dmd-testsuite/runnable/gdb14313.d") > + (delete-file "tests/d2/dmd-testsuite/runnable/gdb14330.d") In the interim, perhaps you can commit it with a link to this issue and/or additional info about the problem? Thanks, Ludo=E2=80=99.