[Bug 284425] math/openblas: 0.3.29 fails to build at phase: stage

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 28 Jan 2025 19:33:24 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284425

            Bug ID: 284425
           Summary: math/openblas: 0.3.29 fails to build at phase: stage
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: lysfjord.daniel@smokepit.net
                CC: phd_kimberlite@yahoo.co.jp
                CC: phd_kimberlite@yahoo.co.jp
             Flags: maintainer-feedback?(phd_kimberlite@yahoo.co.jp)

After update from 0.3.27 to 0.3.29, openblas fails to stage with the following
error:

=======================<phase: stage          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Staging for openblas-0.3.29,2
===>   Generating temporary packing list
In file included from getarch.c:1799:
./cpuid_x86.c:2233:4: warning: add explicit braces to avoid dangling else
[-Wdangling-else]
 2233 |           else
      |           ^
./cpuid_x86.c:2248:4: warning: add explicit braces to avoid dangling else
[-Wdangling-else]
 2248 |           else
      |           ^
./cpuid_x86.c:2265:4: warning: add explicit braces to avoid dangling else
[-Wdangling-else]
 2265 |           else
      |           ^
3 warnings generated.
/usr/local/bin/gmake -f Makefile.install install
gmake[1]: Entering directory
'/wrkdirs/usr/ports/math/openblas/work/OpenBLAS-ce3f668'
Generating openblas_config.h in
/wrkdirs/usr/ports/math/openblas/work/stage/usr/local/include
Generating f77blas.h in
/wrkdirs/usr/ports/math/openblas/work/stage/usr/local/include
Generating cblas.h in
/wrkdirs/usr/ports/math/openblas/work/stage/usr/local/include
Copying LAPACKE header files to
/wrkdirs/usr/ports/math/openblas/work/stage/usr/local/include
Copying the static library to
/wrkdirs/usr/ports/math/openblas/work/stage/usr/local/lib
Copying the shared library to
/wrkdirs/usr/ports/math/openblas/work/stage/usr/local/lib
PKGFILE="/wrkdirs/usr/ports/math/openblas/work/stage/usr/local/lib/pkgconfig/openblas.pc"
Generating openblas.pc in
/wrkdirs/usr/ports/math/openblas/work/stage/usr/local/lib/pkgconfig
Generating OpenBLASConfig.cmake in
/wrkdirs/usr/ports/math/openblas/work/stage/usr/local/lib/cmake/openblas
Generating OpenBLASConfigVersion.cmake in
/wrkdirs/usr/ports/math/openblas/work/stage/usr/local/lib/cmake/openblas
Install OK!
gmake[1]: Leaving directory
'/wrkdirs/usr/ports/math/openblas/work/OpenBLAS-ce3f668'
/usr/bin/strip
/wrkdirs/usr/ports/math/openblas/work/stage/usr/local/lib/libopenblasp-r0.3.27.so
strip: open
/wrkdirs/usr/ports/math/openblas/work/stage/usr/local/lib/libopenblasp-r0.3.27.so
failed: No such file or directory
*** Error code 1

Replacing the newly added lib/libopenblas_*p-${PORTVERSION:C/9/7} during
post-install-DYNAMIC-ARCH-off with lib/libopenblas_* makes the whole thing
build just fine. It's probably not the best idea?

-- 
You are receiving this mail because:
You are the assignee for the bug.