Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Dec 2024 09:28:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        fortran@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 283587] math/suitesparse-lagraph: needs -lm on armv7
Message-ID:  <bug-283587-37611-zCrxcjwbnv@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-283587-37611@https.bugs.freebsd.org/bugzilla/>
References:  <bug-283587-37611@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-fortran (Nobod=
y)
<fortran@FreeBSD.org> for maintainer-feedback:
Bug 283587: math/suitesparse-lagraph: needs -lm on armv7
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283587



--- 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=3D/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=20
-DNDEBUG -Wno-extra-semi-stmt -O2 -pipe  -O3 -fstack-protector-strong -isys=
tem
/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=3Dsrc/test/CMakeFiles/test_Betweenness.dir/link.d
src/test/CMakeFiles/test_Betweenness.dir/test_Betweenness.c.o -o
src/test/test_Betweenness=20
-Wl,-rpath,/wrkdirs/usr/ports/math/suitesparse-lagraph/work/SuiteSparse-7.7=
.0/L
AGraph/experimental:/wrkdirs/usr/ports/math/suitesparse-lagraph/work/SuiteS=
pars
e-7.7.0/LAGraph/src/test:/wrkdirs/usr/ports/math/suitesparse-lagraph/work/S=
uite
Sparse-7.7.0/LAGraph/src
 experimental/liblagraphx.so.1.1.3  src/test/liblagraphtest.so.1.1.3=20
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-283587-37611-zCrxcjwbnv>