NetBSD Problem Report #55739

From gson@gson.org  Tue Oct 20 18:25:37 2020
Return-Path: <gson@gson.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id B61081A9217
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 20 Oct 2020 18:25:37 +0000 (UTC)
Message-Id: <20201020182532.AF355253EDE@guava.gson.org>
Date: Tue, 20 Oct 2020 21:25:32 +0300 (EEST)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@NetBSD.org
Subject: py-numpy fails on macOS
X-Send-Pr-Version: 3.95

>Number:         55739
>Category:       pkg
>Synopsis:       py-numpy fails on macOS
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 20 18:30:00 +0000 2020
>Closed-Date:    Fri Oct 06 16:40:53 +0000 2023
>Last-Modified:  Fri Oct 06 16:40:53 +0000 2023
>Originator:     Andreas Gustafsson
>Release:        pkgsrc-current as of 2020-10-20
>Organization:
>Environment:
System: macOS Catalina 10.15.7
Architecture: x86_64
Machine: MacBook Pro Retina late 2012
>Description:

py37-numpy-1.19.2nb1 builds successfully on macOS, but importing it fails:

  $ python3.7 -c 'import numpy'
  python3.7(72995,0x111874dc0) malloc: can't allocate region
  :*** mach_vm_map(size=18446744071817588736, flags: 100) failed (error code=3)
  python3.7(72995,0x111874dc0) malloc: *** set a breakpoint in malloc_error_break to debug
  init_dgelsd failed init
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/Users/gson/pkg/lib/python3.7/site-packages/numpy/__init__.py", line 286, in <module>
      raise RuntimeError(msg)
  RuntimeError: Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend. If you compiled yourself, see site.cfg.example for information. Otherwise report this to the vendor that provided NumPy.
  RankWarning: Polyfit may be poorly conditioned

https://github.com/numpy/numpy/issues/12230 looks related.

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: adam@NetBSD.org
State-Changed-When: Fri, 06 Oct 2023 16:40:53 +0000
State-Changed-Why:
Latest py-numpy seems to be working correctly on macOS.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.