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

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 25 Dec 2024 09:28:16 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-fortran (Nobody)
<fortran@FreeBSD.org> for maintainer-feedback:
Bug 283587: math/suitesparse-lagraph: needs -lm on armv7
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283587



--- Description ---
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/LAGr
aph
-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/L
AGraph/experimental:/wrkdirs/usr/ports/math/suitesparse-lagraph/work/SuiteSpars
e-7.7.0/LAGraph/src/test:/wrkdirs/usr/ports/math/suitesparse-lagraph/work/Suite
Sparse-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.