From owner-freebsd-python@freebsd.org Mon Jun 25 01:54:01 2018 Return-Path: Delivered-To: freebsd-python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BC0B8101EBF6 for ; Mon, 25 Jun 2018 01:54:00 +0000 (UTC) (envelope-from stackyjoe@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 342948595B for ; Mon, 25 Jun 2018 01:54:00 +0000 (UTC) (envelope-from stackyjoe@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id E5922101EBF5; Mon, 25 Jun 2018 01:53:59 +0000 (UTC) Delivered-To: python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A34C4101EBF3 for ; Mon, 25 Jun 2018 01:53:59 +0000 (UTC) (envelope-from stackyjoe@gmail.com) Received: from mail-oi0-x22e.google.com (mail-oi0-x22e.google.com [IPv6:2607:f8b0:4003:c06::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2AD348595A for ; Mon, 25 Jun 2018 01:53:59 +0000 (UTC) (envelope-from stackyjoe@gmail.com) Received: by mail-oi0-x22e.google.com with SMTP id l22-v6so10991229oib.4 for ; Sun, 24 Jun 2018 18:53:59 -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=FVdXoL+WBhtRac4VBbx0LwT2bZQZhhKyVoVxso98SHg=; b=AFZgzpwtyOM0j+D45fYci7pt0AA31oCXhkmO9yZCZLMJF9W22KeT0Ggra6xDld5Juj ZFwPOdaLBlH/8K4QUsmAce2qrpBEu5BPUqLALU9QuYo+9AM4YHx5ytV6N05ED7n9WMpq GdgZK+cJ+KQ5EPJd0f9BDlGVV1VGUDhDWyjFU/PYmwQojxG78h6vKcaAvP10yliJAqQH QDlHu+DjgIXw7h2ATWVXHF3RTVeL4AAmkMVCzlqX7C99mv1cZQy40qx86Niln8nlIixh F04WrSqK8TtMU0lhzhbULsyv1SQhAjFSehMhNVbkWtv2LIzftxqroRW3yPEMT03kGRd9 9e3Q== 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=FVdXoL+WBhtRac4VBbx0LwT2bZQZhhKyVoVxso98SHg=; b=W/VvqBbhRYCckIgLyovYSTVccRDl0KqaKGwCELMx2md2as663nr2/IZSqUTmNJ2xrY nIpxTBsavGnfuoHWjW6bhF4hcUNXyL4g4pVfp2cz2NZQNpS6dzbxRqclmw6QPoWefFDZ n54Y7nhils2mIGzZJACULV+bieD049ePWgIp4iuoSNg6QiEXGOGonXVzFjKU19pKRLDO Tb1q1248CtVR3WCUp5sQEL+t7dHxiQbn49mlP9RqFTP6ixwQIyvh4ElHEXnBB3xwYjc8 /KjbTyBn3vvB/JyW5KWSXRcBrPZVEMaVX4f3dWQBIZMm0Lpb0ujSIGTW0IGBzT8VqOlt l9BQ== X-Gm-Message-State: APt69E3gsNjg+ifoNkgPqWyhE4zS4LirNA6nWY/r2x6n+qVO+eQFGxkD kBN68k8PmV5gz5oKhWzVMXim5bEyGO7H4y03Z3uM3Q== X-Google-Smtp-Source: ADUXVKKcD2QEakYuiSNtB/5P2UlrIKuZfB78Ix01Wkhk/r7jUhuJRlZ8XtZ72HkCEKtauvrBsl0kuD4TbNo4cYxQhWc= X-Received: by 2002:aca:5416:: with SMTP id i22-v6mr3554890oib.73.1529891638129; Sun, 24 Jun 2018 18:53:58 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac9:7b88:0:0:0:0:0 with HTTP; Sun, 24 Jun 2018 18:53:57 -0700 (PDT) From: Joe Berner Date: Sun, 24 Jun 2018 20:53:57 -0500 Message-ID: Subject: Problems with numpy and linking with blas libraries To: python@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jun 2018 01:54:01 -0000 It seems like there's a history of issues here and different workarounds. Some keywords would be "GCC_4.6.0", "cblas", possibly "libgfortran". I was running into the issue with the most current port revision and after a bunch of make / make clean cycles I've gotten it to compile and work just by making changes to /usr/ports/math/py-numpy/files/site.cfg 1) Changing the variable "library_dirs" to be equal to /usr/lib/local/gcc49 , removing the other colon-separated alternatives. Not removing the other alternatives resulted in the build failing. 2) Adding /usr/local/lib/gcc49/include to the "include_dirs" variable. I did not have to remove the other variables. It seems like the build system is preferentially trying to link against one of the openblas.so files in /usr/local/lib as opposed to (say) /usr/local/lib/gcc49 . However the one in /usr/local/lib has incompatible versions on my system, and so the compile fails. Trying this again*, the build also works compiled against the corresponding gcc6 folders instead of gcc49. I am using the pkg-provided gcc6. Hopefully this information helps wiser people solve the problem for others. Joe *: Trying again in this case means make clean, changing things then make deinstall, make reinstall, and runnin numpy.test(label='fast', verbose=10) in python3.6.