Bug 275166 - science/spheral: Fails to build with GCC 13: ld: error: unable to find library -lmfem
Summary: science/spheral: Fails to build with GCC 13: ld: error: unable to find librar...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Yuri Victorovich
URL:
Keywords:
Depends on:
Blocks: 273397
  Show dependency treegraph
 
Reported: 2023-11-18 10:42 UTC by Lorenzo Salvadore
Modified: 2024-01-07 07:58 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (yuri)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lorenzo Salvadore freebsd_committer freebsd_triage 2023-11-18 10:42:55 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

/usr/local/lib/libhdf5.so /usr/local/lib/libhdf5_hl.so /usr/local/lib/libosdCPU.so /usr/local/lib/libpolytope.so /usr/lib/libz.so /usr/local/lib/libboost_filesystem.so /usr/local/lib/libboost_system.so /usr/local/lib/libqhull_r.so /usr/local/lib/libsiloh5.so /usr/local/lib/libaxom.so /usr/local/lib/libhdf5.so /usr/local/lib/libhdf5_hl.so /usr/local/lib/libosdCPU.so /usr/local/lib/libpolytope.so /usr/local/lib/libmpifort.so -lmfem /usr/local/lib/libconduit_relay_mpi_io.so /usr/local/lib/libconduit_relay.so -lrt /usr/local/lib/libsiloh5.so -lpthread /usr/local/lib/libhdf5.so.200.2.0 -lm -ldl /usr/local/lib/libconduit_blueprint_mpi.so /usr/local/lib/libconduit_blueprint.so /usr/local/lib/libconduit_relay_mpi.so /usr/local/lib/libconduit.so /usr/local/lib/libmpi.so /usr/local/lib/libmpicxx.so /usr/local/lib/liblua-5.4.so -lgfortran -lssp_nonshared -lquadmath 
ld: error: unable to find library -lmfem
c++: error: linker command failed with exit code 1 (use -v to see invocation)
*** [lib/libSpheral_CXX.so] Error code 1

make[3]: stopped in /wrkdirs/usr/ports/science/spheral/work/.build
1 error

make[3]: stopped in /wrkdirs/usr/ports/science/spheral/work/.build
*** [src/CMakeFiles/Spheral_CXX.dir/all] Error code 2

make[2]: stopped in /wrkdirs/usr/ports/science/spheral/work/.build
1 error

make[2]: stopped in /wrkdirs/usr/ports/science/spheral/work/.build
*** [all] Error code 2

make[1]: stopped in /wrkdirs/usr/ports/science/spheral/work/.build
1 error

Full log: https://pkg-status.freebsd.org/package22/data/132amd64-default-foo/2023-11-10_07h48m13s/logs/errors/spheral-2023.06.0.log
Comment 1 Lorenzo Salvadore freebsd_committer freebsd_triage 2024-01-07 07:58:36 UTC
This has been fixed with commit https://cgit.freebsd.org/ports/commit/?id=e0b553b48894e8df7d93347771938b6036b7c37e .