From nobody Thu May 12 13:22:22 2022 X-Original-To: python@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id AE4E91ADF715 for ; Thu, 12 May 2022 13:22:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KzXWL3kCqz4cj3 for ; Thu, 12 May 2022 13:22:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5D7436BD6 for ; Thu, 12 May 2022 13:22:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 24CDMMBJ092835 for ; Thu, 12 May 2022 13:22:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24CDMM90092834 for python@FreeBSD.org; Thu, 12 May 2022 13:22:22 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 263939] python3.8 os.sched_getaffinity(0); broken on arm64? Date: Thu, 12 May 2022 13:22:22 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: bz@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: cc short_desc see_also Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD-specific Python issues List-Archive: https://lists.freebsd.org/archives/freebsd-python List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-python@freebsd.org X-BeenThere: freebsd-python@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652361742; 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: in-reply-to:in-reply-to:references:references; bh=Wel+anJSHL+ONkVodhT/K/KyxlNKGx53za4FbUBwi3w=; b=exMFzitbDGyKk2OcprAPQIviOz9dW1j9C17s4vyR0H1wzzLBhOftY6l6ba5TCZAzfBlmiH gJ+yn6B8ovRsxJYmk3DrJ+acaKCbmysJ7IXhqV11aAwZXxaJPWFIW2qKj6OfStsP+TILAO 6JFr+bhCVroU7egJZFFvfa61PDPVoAhnz0P5eA0HnfZyEwHnd1sg7k/4IishJJB1UA0jIq 7FaTfhAWlw/wR//2anaCz/o83W2E+yrVn5QXQ8o8fo7qSFJgsjEZL1q8a6UxQHzfIe/qUU doE/iyvCYQQoonRua9bkYBO3FRY0ExCguFgUtqGec59drHa5RH+joBmqnrwT/Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652361742; a=rsa-sha256; cv=none; b=rxqHp13DrZq2a93lEDMazTXMA7UXESUKzONCrOoSjqdIvYrvzRkCdz7XXrB1xx3TByhzBQ ZM3munvTRL0k/q9HKDah3Qx9TuxfpaS4KLuy+lA4vM151UNdiPjEK2kyN220+Tci+fPZyY dTgLHA2F0YWFgY40Ai7E74L0f3caedv2n/WlYPvuZQZcXufI8XfjuHAkAU4inHoU4PyKtP PztaLJ/Vy4402xlCq+upUTVhCYijlYXrpBVLGxxUz29Ynz8fGarWPHVuMdwTUW40LP5RBq bqC/WzXjsNsgHUhRz0R5wDqGF2cZrBi8oTKvSOW227Ro28Hsj3CWPu/ZtQoWjg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263939 Bjoern A. Zeeb changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kib@FreeBSD.org Summary|math/py-numpy -- error on |python3.8 |build |os.sched_getaffinity(0); | |broken on arm64? See Also|https://bugs.freebsd.org/bu | |gzilla/show_bug.cgi?id=3D2596 | |37 | --- Comment #3 from Bjoern A. Zeeb --- Renaming this as it seems the actual problem is in python itself (also remo= ving the see-also). On amd64 with python 3.8 installed from pkg I get: % python3.8 Python 3.8.13 (default, Apr 28 2022, 01:23:51)=20 [Clang 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b66= 9b3a on freebsd14 Type "help", "copyright", "credits" or "license" for more information. >>> import os; >>> os.sched_getaffinity(0); {0, 1, 2, 3, 4, 5, 6, 7} >>> quit(); % On arm64 where I am building I get: # python3.8 Python 3.8.13 (default, May 11 2022, 17:57:27)=20 [Clang 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b66= 9b3a on freebsd14 Type "help", "copyright", "credits" or "license" for more information. >>> import os; >>> os.sched_getaffinity(0); Traceback (most recent call last): File "", line 1, in OSError: [Errno 0] Error >>> quit(); # I can see a difference on an older installation where the problem was that = the function wasn't present yet to my reading (again here on arm64 but probably= in general); the change is probably driven by @kib's changes to sched.h in src last year so it became supported? # python3.8 Python 3.8.10 (default, Jul 10 2021, 10:18:40)=20 [Clang 12.0.1 (git@github.com:llvm/llvm-project.git llvmorg-12.0.1-rc2-0-ge= 7dac on freebsd14 Type "help", "copyright", "credits" or "license" for more information. >>> import os; >>> os.sched_getaffinity(0); Traceback (most recent call last): File "", line 1, in AttributeError: module 'os' has no attribute 'sched_getaffinity' >>> quit(); # --=20 You are receiving this mail because: You are the assignee for the bug.=