Bug 275162

Summary: math/blaspp: Fails to build with GCC 13: BLAS++ requires a BLAS library and none was found.
Product: Ports & Packages Reporter: Lorenzo Salvadore <salvadore>
Component: Individual Port(s)Assignee: Yuri Victorovich <yuri>
Status: Closed FIXED    
Severity: Affects Only Me CC: salvadore
Priority: --- Flags: bugzilla: maintainer-feedback? (yuri)
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 273397    

Description Lorenzo Salvadore freebsd_committer freebsd_triage 2023-11-18 10:33:33 UTC
This bug report blocks the update of GCC_DEFAULT to 13. This webpage can help finding a fix: https://gcc.gnu.org/gcc-13/porting_to.html

[31m   BLAS library not found.[39m
CMake Error at CMakeLists.txt:374 (message):
  BLAS++ requires a BLAS library and none was found.  Ensure that it is
  accessible in environment variables $CPATH, $LIBRARY_PATH, and
  $LD_LIBRARY_PATH.

Full log: https://pkg-status.freebsd.org/package22/data/132amd64-default-foo/2023-11-10_07h48m13s/logs/errors/blaspp-2022.05.00_1.log
Comment 1 Yuri Victorovich freebsd_committer freebsd_triage 2023-11-18 19:25:25 UTC
Problem was fixed.

Thanks for reporting it!
Comment 2 commit-hook freebsd_committer freebsd_triage 2023-11-18 19:26:54 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a8bc918ae7c32c3e373434e0a412ff7a780b355c

commit a8bc918ae7c32c3e373434e0a412ff7a780b355c
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-11-18 19:21:07 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-11-18 19:25:57 +0000

    math/blaspp: Fix configure

    configure was failing to find the BLAS library because it used its
    own ad-hoc cmake file that was failing.
    find_package(BLAS) works.

    PR:             275162
    Reported by:    Lorenzo Salvadore <salvadore@freebsd.org>; fallout

 math/blaspp/Makefile | 1 +
 1 file changed, 1 insertion(+)