tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: blas problem in py-torch



Hi,

I have just committed math/py-torch/Makefile rev 1.3.
It fixes my pbulk build.

It seems that dependencies declared in math/py-numpy/buildlink3.mk
become imcomplete for math/py-torch.
For example, adding '.include "../../devel/glib2/buildlink3.mk"' next to
'.include "../../mk/blas.buildlink3.mk"' and detected as 'not installed'
like openblas64_pthread.

I do not have any idea about its root cause.
However declaring before math/py-numpy/buildlink3.mk is workaround for me.

Thank you.

Thomas Klausner <wiz%NetBSD.org@localhost> writes:

> Hi!
>
> When I build py-torch outside a bulk build, it works fine.
>
> When I build it inside a pbulk, it doesn't, same as in the TNF bulk builds:
>
> http://shadow.netbsd.org/pub/pkgsrc/packages/reports/HEAD/NetBSD-10.0-x86_64/20250123.0504/py313-torch-2.5.1/configure.log
>
> i.e.:
>
> => Applying pkgsrc patches for py313-torch-2.5.1
> ===> Creating toolchain wrappers for py313-torch-2.5.1
> ERROR: openblas64_pthread>=0.3.5 is not installed; can't buildlink files.
> *** Error code 1
>
>
> Comparing the output from that file with the one when I build locally,
> manually (outside pbulk) I see:
>
>  => Full dependency mpfr>=4.0.0: found mpfr-4.2.1
>  => Full dependency openmp>=18.0.0: found openmp-18.1.8nb1
>  => Full dependency py313-numpy>=1.20.3nb1: found py313-numpy-2.2.2
> +=> Full dependency openblas64_pthread>=0.3.5: found openblas64_pthread-0.3.26
>  ===> Skipping vulnerability checks.
>  WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
>  WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'.
> -===> Overriding tools for py313-torch-2.5.1
> -===> Extracting for py313-torch-2.5.1
> -/bin/rm -f /pbulk/work/math/py-torch/work/pytorch-v2.5.1/third_party/opentelemetry-cpp/third_party/prometheus-cpp/3rdparty/civetweb/resources/cert/server_bkup.key.orig
> -/bin/rm -f /pbulk/work/math/py-torch/work/pytorch-v2.5.1/third_party/opentelemetry-cpp/third_party/prometheus-cpp/3rdparty/civetweb/resources/cert/client.key.orig
> -/bin/rm -f /pbulk/work/math/py-torch/work/pytorch-v2.5.1/third_party/opentelemetry-cpp/third_party/prometheus-cpp/3rdparty/civetweb/resources/cert/server.key.orig
> -===> Patching for py313-torch-2.5.1
> -=> Applying pkgsrc patches for py313-torch-2.5.1
> -===> Creating toolchain wrappers for py313-torch-2.5.1
> -ERROR: openblas64_pthread>=0.3.5 is not installed; can't buildlink files.
> -*** Error code 1
> -
> -Stop.
> -make[1]: stopped in /usr/pkgsrc/math/py-torch
> -*** Error code 1
>
> I.e. my local (non-pbulk) build has the full dependency on
> openblas64_pthread, but that doesn't seem to work in the bulk build.
>
> Does anyone have an idea what could cause this difference?
>  Thomas

-- 
Ryo ONODERA // ryo%tetera.org@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Home | Main Index | Thread Index | Old Index