[Bug 283587] math/suitesparse-lagraph: needs -lm on armv7

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 25 Dec 2024 09:28:16 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283587

            Bug ID: 283587
           Summary: math/suitesparse-lagraph: needs -lm on armv7
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: fortran@FreeBSD.org
          Reporter: fuz@FreeBSD.org
          Assignee: fortran@FreeBSD.org
             Flags: maintainer-feedback?(fortran@FreeBSD.org)
 Attachment #256126 text/plain
         mime type:

Created attachment 256126
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=256126&action=edit
suitesparse-lagraph 1.1.3 build failure on armv7 FreeBSD 14.1

In a recent test build I found that the test suite would fail to link due to
missing math library (-lm) symbols:

: && /usr/local/libexec/ccache/cc -O2 -pipe  -O3 -fstack-protector-strong
-isystem /usr/local/include -fno-strict-aliasing
-DLGDIR=/wrkdirs/usr/ports/math/suitesparse-lagraph/work/SuiteSparse-7.7.0/LAGraph
-O3  -O2 -pipe  -O3 -fstack-protector-strong -isystem /usr/local/include
-fno-strict-aliasing  -DNDEBUG -Wno-extra-semi-stmt -O2 -pipe  -O3
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing 
-DNDEBUG -Wno-extra-semi-stmt -O2 -pipe  -O3 -fstack-protector-strong -isystem
/usr/local/include -fno-strict-aliasing  -DNDEBUG -Wno-extra-semi-stmt
-L/wrkdirs/usr/ports/math/suitesparse-lagraph/work/SuiteSparse-7.7.0/lib -s
-fstack-protector-strong -L/usr/local/lib     -Xlinker
--dependency-file=src/test/CMakeFiles/test_Betweenness.dir/link.d
src/test/CMakeFiles/test_Betweenness.dir/test_Betweenness.c.o -o
src/test/test_Betweenness 
-Wl,-rpath,/wrkdirs/usr/ports/math/suitesparse-lagraph/work/SuiteSparse-7.7.0/LAGraph/experimental:/wrkdirs/usr/ports/math/suitesparse-lagraph/work/SuiteSparse-7.7.0/LAGraph/src/test:/wrkdirs/usr/ports/math/suitesparse-lagraph/work/SuiteSparse-7.7.0/LAGraph/src
 experimental/liblagraphx.so.1.1.3  src/test/liblagraphtest.so.1.1.3 
src/liblagraph.so.1.1.3  /usr/local/lib/libgraphblas.so.9.1.0 && :
ld: error: undefined reference due to --no-allow-shlib-undefined: round
>>> referenced by experimental/liblagraphx.so.1.1.3

ld: error: undefined reference due to --no-allow-shlib-undefined: fmax
>>> referenced by experimental/liblagraphx.so.1.1.3

ld: error: undefined reference due to --no-allow-shlib-undefined: fmin
>>> referenced by experimental/liblagraphx.so.1.1.3

This should be fixable by supplying -lm to the link of these components.
See attached log file for details.

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