On Mon, Jan 13, 2020 at 12:50:32PM +0000, Stuart Henderson wrote:
> 2/3 through a bulk build and I see that this breaks scipy (missing symbols,
> blas/cblas-related) so needs a bit more work, but I think it's generally
> along the right lines.

Not sure if this provides any useful clue, but py-numpy doesn't build at
all on sparc64 with this diff, also due to missing blas/cblas symbols:

===> py-numpy-1.16.5 depends on: g95->=8,<9 -> g95-8.3.0p4
===> py-numpy-1.16.5 depends on: python->=2.7,<2.8 -> python-2.7.17p1
===> py-numpy-1.16.5 depends on: py-setuptools->=39.0.1v0 -> 
py-setuptools-41.6.0v0
===> py-numpy-1.16.5 depends on: gcc->=8,<9 -> gcc-8.3.0p4
===> py-numpy-1.16.5 depends on: unzip-* -> unzip-6.0p12
===> py-numpy-1.16.5 depends on: cblas-* -> cblas-1.0p6
===> py-numpy-1.16.5 depends on: lapack-* -> lapack-3.8.0p1
===> py-numpy-1.16.5 depends on: gcc-libs->=8,<9 -> gcc-libs-8.3.0p4
===>  Verifying specs:  gfortran>=8 python2.7 blas cblas lapack m pthread 
gfortran>=8
===>  found gfortran.8.0 python2.7.0.0 blas.2.1 cblas.1.0 lapack.7.1 m.10.1 
pthread.26.1
===>  Checking files for py-numpy-1.16.5
`/usr/ports/distfiles/numpy-1.16.5.zip' is up to date.
>> (SHA256) numpy-1.16.5.zip: OK
===>  Extracting for py-numpy-1.16.5
===>  Patching for py-numpy-1.16.5
===>   Applying OpenBSD patch patch-numpy_core_include_numpy_npy_common_h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$OpenBSD: patch-numpy_core_include_numpy_npy_common_h,v 1.6 2018/06/30 
21:49:33 daniel Exp $
|
|XXX recheck powerpc, is this still needed?
|
|py-numpy only checks for expl to determine whether extended-precision
|support is present.  since we don't have it yet;  it implements
|it's own.  however, on alpha, powerpc, it declared functions with
|types that conflict with C99 (double for *l), therefore failed.
|
|Index: numpy/core/include/numpy/npy_common.h
|--- numpy/core/include/numpy/npy_common.h.orig
|+++ numpy/core/include/numpy/npy_common.h
--------------------------
Patching file numpy/core/include/numpy/npy_common.h using Plan A...
Hunk #1 succeeded at 320.
done
===>   Ignoring patchfile patch-numpy_core_include_numpy_npy_common_h.orig
===>   Applying OpenBSD patch patch-numpy_distutils_command_build_src_py
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$OpenBSD: patch-numpy_distutils_command_build_src_py,v 1.3 2018/06/30 21:49:33 
daniel Exp $
|
|fix build of other packages (e.g. py-scipy) in some cases (e.g. when
|WRKOBJDIR has a trailing slash)
|
|Index: numpy/distutils/command/build_src.py
|--- numpy/distutils/command/build_src.py.orig
|+++ numpy/distutils/command/build_src.py
--------------------------
Patching file numpy/distutils/command/build_src.py using Plan A...
Hunk #1 succeeded at 370.
done
===>   Ignoring patchfile patch-numpy_distutils_command_build_src_py.orig
===>   Applying OpenBSD patch patch-numpy_distutils_fcompiler_gnu_py
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$OpenBSD: patch-numpy_distutils_fcompiler_gnu_py,v 1.2 2018/06/30 21:49:33 
daniel Exp $
|
|Causes segmentation fault on powerpc when building py-scipy.
|
|See discussion at:
|https://github.com/numpy/numpy/issues/5451
|
|Index: numpy/distutils/fcompiler/gnu.py
|--- numpy/distutils/fcompiler/gnu.py.orig
|+++ numpy/distutils/fcompiler/gnu.py
--------------------------
Patching file numpy/distutils/fcompiler/gnu.py using Plan A...
Hunk #1 succeeded at 245.
done
===>   Ignoring patchfile patch-numpy_distutils_fcompiler_gnu_py.orig
===>   Applying OpenBSD patch patch-numpy_distutils_site_cfg
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$OpenBSD: patch-numpy_distutils_site_cfg,v 1.2 2009/02/16 10:10:09 eric Exp $
|--- numpy/distutils/site.cfg.orig      Fri Feb 13 15:41:03 2009
|+++ numpy/distutils/site.cfg   Fri Feb 13 15:41:47 2009
--------------------------
(Creating file numpy/distutils/site.cfg...)
Patching file numpy/distutils/site.cfg using Plan A...
Empty context always matches.
Hunk #1 succeeded at 1.
done
===>  Compiler link: gcc -> /usr/local/bin/egcc
===>  Compiler link: cc -> /usr/local/bin/egcc
===>  Compiler link: gfortran -> /usr/local/bin/egfortran
===>  Compiler link: c++ -> /usr/bin/c++
===>  Generating configure for py-numpy-1.16.5
===>  Configuring for py-numpy-1.16.5
===>  Building for py-numpy-1.16.5
cp -f /usr/ports/pobj/py-numpy-1.16.5/numpy-1.16.5/numpy/distutils/site.cfg 
/usr/ports/pobj/py-numpy-1.16.5/numpy-1.16.5/site.cfg
Running from numpy source directory.
running egg_info
creating numpy.egg-info
writing numpy.egg-info/PKG-INFO
writing top-level names to numpy.egg-info/top_level.txt
writing dependency_links to numpy.egg-info/dependency_links.txt
writing entry points to numpy.egg-info/entry_points.txt
writing manifest file 'numpy.egg-info/SOURCES.txt'
reading manifest file 'numpy.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'doc/build'
no previously-included directories found matching 'doc/source/generated'
no previously-included directories found matching 'benchmarks/env'
no previously-included directories found matching 'benchmarks/results'
no previously-included directories found matching 'benchmarks/html'
no previously-included directories found matching 'benchmarks/numpy'
no previously-included directories found matching '*/__pycache__'
warning: no previously-included files matching '*.pyo' found anywhere in 
distribution
warning: no previously-included files matching '*.pyd' found anywhere in 
distribution
warning: no previously-included files matching '*.swp' found anywhere in 
distribution
warning: no previously-included files matching '*.bak' found anywhere in 
distribution
warning: no previously-included files matching '*~' found anywhere in 
distribution
writing manifest file 'numpy.egg-info/SOURCES.txt'
Running from numpy source directory.
blas_opt_info:
blas_mkl_info:
customize UnixCCompiler
C compiler: cc -fno-strict-aliasing -O2 -pipe -DNDEBUG -O2 -pipe -fPIC -O2 
-pipe -D CYTHON_SMALL_CODE= -fPIC

creating /tmp/tmpsPEZBm/tmp
creating /tmp/tmpsPEZBm/tmp/tmpsPEZBm
compile options: '-MMD -MF /tmp/tmpsPEZBm/file.c.d -c'
cc: /tmp/tmpsPEZBm/file.c
  libraries XXXnonexistXXX not found in ['/usr/local/lib', '/usr/lib', 
'/usr/lib/']
  NOT AVAILABLE

blis_info:
customize UnixCCompiler
C compiler: cc -fno-strict-aliasing -O2 -pipe -DNDEBUG -O2 -pipe -fPIC -O2 
-pipe -D CYTHON_SMALL_CODE= -fPIC

creating /tmp/tmpjAwhWP/tmp
creating /tmp/tmpjAwhWP/tmp/tmpjAwhWP
compile options: '-MMD -MF /tmp/tmpjAwhWP/file.c.d -c'
cc: /tmp/tmpjAwhWP/file.c
  libraries blis not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']
  NOT AVAILABLE

openblas_info:
customize UnixCCompiler
C compiler: cc -fno-strict-aliasing -O2 -pipe -DNDEBUG -O2 -pipe -fPIC -O2 
-pipe -D CYTHON_SMALL_CODE= -fPIC

creating /tmp/tmpau7Mp8/tmp
creating /tmp/tmpau7Mp8/tmp/tmpau7Mp8
compile options: '-MMD -MF /tmp/tmpau7Mp8/file.c.d -c'
cc: /tmp/tmpau7Mp8/file.c
customize UnixCCompiler
C compiler: cc -fno-strict-aliasing -O2 -pipe -DNDEBUG -O2 -pipe -fPIC -O2 
-pipe -D CYTHON_SMALL_CODE= -fPIC

creating /tmp/tmpvKhRzx/tmp
creating /tmp/tmpvKhRzx/tmp/tmpvKhRzx
compile options: '-MMD -MF /tmp/tmpvKhRzx/file.c.d -c'
cc: /tmp/tmpvKhRzx/file.c
  libraries openblas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']
  NOT AVAILABLE

atlas_3_10_blas_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
C compiler: cc -fno-strict-aliasing -O2 -pipe -DNDEBUG -O2 -pipe -fPIC -O2 
-pipe -D CYTHON_SMALL_CODE= -fPIC

creating /tmp/tmpVAZDoQ/tmp
creating /tmp/tmpVAZDoQ/tmp/tmpVAZDoQ
compile options: '-MMD -MF /tmp/tmpVAZDoQ/file.c.d -c'
cc: /tmp/tmpVAZDoQ/file.c
  libraries XXXnonexistXXX not found in ['/usr/local/lib', '/usr/lib', 
'/usr/lib/']
  NOT AVAILABLE

atlas_3_10_blas_info:
customize UnixCCompiler
C compiler: cc -fno-strict-aliasing -O2 -pipe -DNDEBUG -O2 -pipe -fPIC -O2 
-pipe -D CYTHON_SMALL_CODE= -fPIC

creating /tmp/tmpb56SjT/tmp
creating /tmp/tmpb56SjT/tmp/tmpb56SjT
compile options: '-MMD -MF /tmp/tmpb56SjT/file.c.d -c'
cc: /tmp/tmpb56SjT/file.c
  libraries XXXnonexistXXX not found in ['/usr/local/lib', '/usr/lib', 
'/usr/lib/']
  NOT AVAILABLE

atlas_blas_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
C compiler: cc -fno-strict-aliasing -O2 -pipe -DNDEBUG -O2 -pipe -fPIC -O2 
-pipe -D CYTHON_SMALL_CODE= -fPIC

creating /tmp/tmpZg0fww/tmp
creating /tmp/tmpZg0fww/tmp/tmpZg0fww
compile options: '-MMD -MF /tmp/tmpZg0fww/file.c.d -c'
cc: /tmp/tmpZg0fww/file.c
  libraries XXXnonexistXXX not found in ['/usr/local/lib', '/usr/lib', 
'/usr/lib/']
  NOT AVAILABLE

atlas_blas_info:
customize UnixCCompiler
C compiler: cc -fno-strict-aliasing -O2 -pipe -DNDEBUG -O2 -pipe -fPIC -O2 
-pipe -D CYTHON_SMALL_CODE= -fPIC

creating /tmp/tmpyXsn17/tmp
creating /tmp/tmpyXsn17/tmp/tmpyXsn17
compile options: '-MMD -MF /tmp/tmpyXsn17/file.c.d -c'
cc: /tmp/tmpyXsn17/file.c
  libraries XXXnonexistXXX not found in ['/usr/local/lib', '/usr/lib', 
'/usr/lib/']
  NOT AVAILABLE

accelerate_info:
  NOT AVAILABLE

/usr/ports/pobj/py-numpy-1.16.5/numpy-1.16.5/numpy/distutils/system_info.py:639:
 UserWarning: 
    Atlas (http://math-atlas.sourceforge.net/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [atlas]) or by setting
    the ATLAS environment variable.
  self.calc_info()
blas_info:
customize UnixCCompiler
C compiler: cc -fno-strict-aliasing -O2 -pipe -DNDEBUG -O2 -pipe -fPIC -O2 
-pipe -D CYTHON_SMALL_CODE= -fPIC

creating /tmp/tmpbCGKGJ/tmp
creating /tmp/tmpbCGKGJ/tmp/tmpbCGKGJ
compile options: '-MMD -MF /tmp/tmpbCGKGJ/file.c.d -c'
cc: /tmp/tmpbCGKGJ/file.c
customize UnixCCompiler
C compiler: cc -fno-strict-aliasing -O2 -pipe -DNDEBUG -O2 -pipe -fPIC -O2 
-pipe -D CYTHON_SMALL_CODE= -fPIC

creating /tmp/tmp6nRDPD/tmp
creating /tmp/tmp6nRDPD/tmp/tmp6nRDPD
compile options: '-MMD -MF /tmp/tmp6nRDPD/file.c.d -c'
cc: /tmp/tmp6nRDPD/file.c
C compiler: cc -fno-strict-aliasing -O2 -pipe -DNDEBUG -O2 -pipe -fPIC -O2 
-pipe -D CYTHON_SMALL_CODE= -fPIC

creating /tmp/tmpKcZ0cd/tmp
creating /tmp/tmpKcZ0cd/tmp/tmpKcZ0cd
compile options: '-I/usr/local/include -I/usr/include -c'
cc: /tmp/tmpKcZ0cd/source.c
cc /tmp/tmpKcZ0cd/tmp/tmpKcZ0cd/source.o -L/usr/local/lib -lcblas -o 
/tmp/tmpKcZ0cd/a.out
/usr/local/lib/libcblas.so.1.0: undefined reference to `ztbsv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `dasum_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `chbmv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `stbmv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `strsm_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `ctbsv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `srotmg_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `zdotu_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `dtrmm_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `dtbmv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `ssyr2k_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `ssbmv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `cgbmv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `dscal_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `dgbmv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `ctbmv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `csscal_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `sger_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `dgemv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `cgeru_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `zher2k_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `zherk_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `zdotc_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `cgemv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `drot_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `dswap_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `srot_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `dtpsv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `dspr_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `zhbmv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `saxpy_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `ctrsm_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `zhpr_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `cgemm_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `zgbmv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `sgemv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `scopy_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `strmm_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `sasum_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `chpr2_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `ztrmv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `dtpmv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `zhpmv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `dsyr2_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `dspmv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `stpmv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `chpmv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `cher_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `stpsv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `ztrmm_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `dsbmv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `ssyr_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `zswap_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `dsymv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `dcopy_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `ctpsv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `ztrsv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `sgbmv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `isamax_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `sdsdot_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `drotmg_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `dsymm_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `sspmv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `zhpr2_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `izamax_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `zsyr2k_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `dtbsv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `zhemv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `csyr2k_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `dzasum_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `caxpy_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `cher2_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `sgemm_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `drotm_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `ddot_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `ssyr2_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `ctpmv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `dgemm_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `ssymv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `strsv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `ctrmm_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `scasum_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `csymm_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `ztbmv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `sspr_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `zgemv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `zher2_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `zscal_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `cher2k_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `dtrsm_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `ccopy_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `zgerc_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `ctrsv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `dsyr2k_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `sdot_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `strmv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `ssyrk_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `ztpsv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `csyrk_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `zhemm_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `ctrmv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `snrm2_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `cdotc_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `dsyrk_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `stbsv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `dsyr_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `cgerc_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `sscal_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `srotg_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `drotg_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `chpr_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `scnrm2_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `ztpmv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `chemv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `sspr2_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `idamax_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `ssymm_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `dznrm2_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `dsdot_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `cscal_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `zaxpy_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `dger_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `zgeru_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `zcopy_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `zdscal_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `daxpy_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `chemm_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `dnrm2_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `zher_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `srotm_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `dtrsv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `zgemm_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `zsyrk_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `cherk_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `dspr2_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `cdotu_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `icamax_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `cswap_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `dtrmv_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `zsymm_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `ztrsm_'
/usr/local/lib/libcblas.so.1.0: undefined reference to `sswap_'
collect2: error: ld returned 1 exit status
cc /tmp/tmpKcZ0cd/tmp/tmpKcZ0cd/source.o -L/usr/local/lib -lblas -o 
/tmp/tmpKcZ0cd/a.out
/tmp/tmpKcZ0cd/tmp/tmpKcZ0cd/source.o: In function `main':
source.c:(.text.startup+0xdc): undefined reference to `cblas_ddot'
collect2: error: ld returned 1 exit status
Traceback (most recent call last):
  File "./setup.py", line 419, in <module>
    setup_package()
  File "./setup.py", line 411, in setup_package
    setup(**metadata)
  File "/usr/ports/pobj/py-numpy-1.16.5/numpy-1.16.5/numpy/distutils/core.py", 
line 137, in setup
    config = configuration()
  File "./setup.py", line 164, in configuration
    config.add_subpackage('numpy')
  File 
"/usr/ports/pobj/py-numpy-1.16.5/numpy-1.16.5/numpy/distutils/misc_util.py", 
line 1036, in add_subpackage
    caller_level = 2)
  File 
"/usr/ports/pobj/py-numpy-1.16.5/numpy-1.16.5/numpy/distutils/misc_util.py", 
line 1005, in get_subpackage
    caller_level = caller_level + 1)
  File 
"/usr/ports/pobj/py-numpy-1.16.5/numpy-1.16.5/numpy/distutils/misc_util.py", 
line 942, in _get_configuration_from_setup_py
    config = setup_module.configuration(*args)
  File "numpy/setup.py", line 10, in configuration
    config.add_subpackage('core')
  File 
"/usr/ports/pobj/py-numpy-1.16.5/numpy-1.16.5/numpy/distutils/misc_util.py", 
line 1036, in add_subpackage
    caller_level = 2)
  File 
"/usr/ports/pobj/py-numpy-1.16.5/numpy-1.16.5/numpy/distutils/misc_util.py", 
line 1005, in get_subpackage
    caller_level = caller_level + 1)
  File 
"/usr/ports/pobj/py-numpy-1.16.5/numpy-1.16.5/numpy/distutils/misc_util.py", 
line 942, in _get_configuration_from_setup_py
    config = setup_module.configuration(*args)
  File "numpy/core/setup.py", line 760, in configuration
    blas_info = get_info('blas_opt', 0)
  File 
"/usr/ports/pobj/py-numpy-1.16.5/numpy-1.16.5/numpy/distutils/system_info.py", 
line 446, in get_info
    return cl().get_info(notfound_action)
  File 
"/usr/ports/pobj/py-numpy-1.16.5/numpy-1.16.5/numpy/distutils/system_info.py", 
line 639, in get_info
    self.calc_info()
  File 
"/usr/ports/pobj/py-numpy-1.16.5/numpy-1.16.5/numpy/distutils/system_info.py", 
line 1664, in calc_info
    blas_info = get_info('blas')
  File 
"/usr/ports/pobj/py-numpy-1.16.5/numpy-1.16.5/numpy/distutils/system_info.py", 
line 446, in get_info
    return cl().get_info(notfound_action)
  File 
"/usr/ports/pobj/py-numpy-1.16.5/numpy-1.16.5/numpy/distutils/system_info.py", 
line 639, in get_info
    self.calc_info()
  File 
"/usr/ports/pobj/py-numpy-1.16.5/numpy-1.16.5/numpy/distutils/system_info.py", 
line 1700, in calc_info
    lib = self.has_cblas(info)
  File 
"/usr/ports/pobj/py-numpy-1.16.5/numpy-1.16.5/numpy/distutils/system_info.py", 
line 1743, in has_cblas
    extra_postargs=info.get('extra_link_args', []))
  File "/usr/local/lib/python2.7/distutils/ccompiler.py", line 700, in 
link_executable
    debug, extra_preargs, extra_postargs, None, target_lang)
  File "/usr/local/lib/python2.7/distutils/unixccompiler.py", line 202, in link
    raise LinkError, msg
distutils.errors.LinkError: Command "cc /tmp/tmpKcZ0cd/tmp/tmpKcZ0cd/source.o 
-L/usr/local/lib -lblas -o /tmp/tmpKcZ0cd/a.out" failed with exit status 1
*** Error 1 in . (/usr/ports/lang/python/python.port.mk:250 'do-build': @: ;cd 
/usr/ports/pobj/py-numpy-1.16.5/numpy-1.16.5 && /usr/bin/env ...)
*** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2878 
'/usr/ports/pobj/py-numpy-1.16.5/.build_done': @cd /usr/ports/math/py-numpy ...)
*** Error 2 in /usr/ports/math/py-numpy 
(/usr/ports/infrastructure/mk/bsd.port.mk:2548 'all': @lock=py-numpy-1.16.5;  
export _LOCKS_HELD=" p...)

Reply via email to