From owner-freebsd-python@freebsd.org Mon Jun 25 04:10:24 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 83B7A1022A8A for ; Mon, 25 Jun 2018 04:10:24 +0000 (UTC) (envelope-from koobs.freebsd@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 077088968A for ; Mon, 25 Jun 2018 04:10:24 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id BAE6A1022A89; Mon, 25 Jun 2018 04:10:23 +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 7BF6F1022A88 for ; Mon, 25 Jun 2018 04:10:23 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mail-pl0-x22f.google.com (mail-pl0-x22f.google.com [IPv6:2607:f8b0:400e:c01::22f]) (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 D2E3C89689 for ; Mon, 25 Jun 2018 04:10:22 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by mail-pl0-x22f.google.com with SMTP id o18-v6so5484891pll.12 for ; Sun, 24 Jun 2018 21:10:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:reply-to:subject:to:references:from:openpgp:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=w8tb+AbquOfe36RZkmWhOiGnqz78kSQQQh8GCWuK4sw=; b=pStQYUDakgagqDe0Gz4M5imMv6C8xy6LtWwGlo6iKLfKvxBdLNiswg9En9K6sjU5ht Kx2/JlTwGAIaiO9xQE3xTMeRPMa0UKTw9etjvtRftT5KbKRuKMsnJ5WYb4k64Ho5xT3B ocBK0zLiw2BQ/n5hkgXzlBUB6ff5NIHnzL8UsgmiRBNzle6HICKKYwJ1kwN+fo2KFs0L v1MmE2P8Y+QlZMKewdrMXauLmkCvSO0MCEOHHKhsIwznJJc6bSIrg4ZhaDHeIYF07gAY ESdYEDE9gQXr31mIk8/wD1vwdmpTai5Dyy3Q/FvTROPwyJNNDMUbpAM1RqLHHXkKJ49d 5Azw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:reply-to:subject:to:references:from :openpgp:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=w8tb+AbquOfe36RZkmWhOiGnqz78kSQQQh8GCWuK4sw=; b=BejdVeDbXOd8UsGNLEwEpHRdKQSPLer2vZFQ6kXKpkhT4iBnNK0rNUL97aUimZm6N+ vrlD4Q95eO61mykOu6VwCNdAiYofpHF1NWa1nErI8mSsdWGC3nE+CpD5Nu6PSRVOJeyd i2PgMoaCHfM4SiqD6Cvcz59DsCk7NISXDAWx5vh12u+07x0eC6Zh2S8ywsdB7K8tUVQ6 2nVnS9Jc8mmZHHsBoF145EUV7cz4kT98sHbCVf96Wm49zuCiTu0nQ8zk9+x49TU3WRfz HNpy1IwPbpfX4Ax4itQtFtDJQFxSJ53V5OTvNouXYOgvl6TKkVjdbtEfghtijpsBHI+f 8/PA== X-Gm-Message-State: APt69E0j0FSHgl8s1YaALtBOZB95iRbeEg1KZ3GD+xRsKq+s8cS6fU6E pCgz6o0Cih+8bymuE2BLPFSQyQ81 X-Google-Smtp-Source: ADUXVKJ1/vBeFEazf4qE2bx2w3DRAWOxzGqWAxx8Jb9f+ZWT6GQMsYHrAxeQw5GAI/zDcoGKpCkKUA== X-Received: by 2002:a17:902:9a01:: with SMTP id v1-v6mr559166plp.20.1529899821759; Sun, 24 Jun 2018 21:10:21 -0700 (PDT) Received: from [192.168.1.102] (116.133.220.111.sta.wbroadband.net.au. [111.220.133.116]) by smtp.gmail.com with ESMTPSA id z74-v6sm27331767pff.54.2018.06.24.21.10.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Jun 2018 21:10:21 -0700 (PDT) Sender: Kubilay Kocak Reply-To: koobs@FreeBSD.org Subject: Re: Problems with numpy and linking with blas libraries To: Joe Berner , python@freebsd.org References: From: Kubilay Kocak Openpgp: preference=signencrypt Message-ID: Date: Mon, 25 Jun 2018 14:10:13 +1000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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 04:10:24 -0000 On 25/06/2018 11:53 am, Joe Berner wrote: > It seems like there's a history of issues here and different workarounds. > Some keywords would be "GCC_4.6.0", "cblas", possibly "libgfortran". Hi Joe, > I was running into the issue with the most current port revision and after What version of FreeBSD? What Python version(s)? Recent issue? Recent regression? What was the exact issue observed? Build failure? Run-time error? Please include the relevant snippet of error/output logs if so. Please include any special environment/make.conf/etc configuration settings or build arguments if relevant. > 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. site.cfg is modified (before the port builds) depending on OPTIONS that are selected for the port. Can you clarify what OPTIONS were enabled/disabled for this build. Can you provide a unified diff of the complete set of changes that were made, *after* running `make clean patch` (which will make the site.cfg changes based on OPTIONS first) > 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) Can you provide ls` output for the multiple openblas.so (and/or other relevant libraries) files in these directories? > /usr/local/lib/gcc49 . However the one in /usr/local/lib has incompatible > versions on my system, and so the compile fails. What does 'has incompatible versions on my system' mean here exactly? > Trying this again*, the build also works compiled against the corresponding > gcc6 folders instead of gcc49. I am using the pkg-provided gcc6. How are you modifying the build to do this? site.cfg again? If so, can you provide the diff for this case too. If not, please specify method and parameters/values .. > 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.