Date: Mon, 25 Jun 2018 14:10:13 +1000 From: Kubilay Kocak <koobs@FreeBSD.org> To: Joe Berner <stackyjoe@gmail.com>, python@freebsd.org Subject: Re: Problems with numpy and linking with blas libraries Message-ID: <ff73b751-bfda-3b3e-2ac8-bfdcda4483aa@FreeBSD.org> In-Reply-To: <CALXgyM7LfnD_Uc0a8_yMQngTWZX89wtr1EtFj0Vrh%2BYm_4-PSw@mail.gmail.com> References: <CALXgyM7LfnD_Uc0a8_yMQngTWZX89wtr1EtFj0Vrh%2BYm_4-PSw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ff73b751-bfda-3b3e-2ac8-bfdcda4483aa>