Build fails with GCC 14. This blocks GCC_DEFAULT update to GCC 14. cd /wrkdirs/usr/ports/science/openmolcas/work/.build/CMakeFiles/parnell && /usr/local/bin/gcc14 -D_EFP_ -D_I8_ -D_MOLCAS_ -I/wrkdirs/usr/ports/science/openmolcas/work/OpenMolcas-ff0b5d1cb86ae8766625b9018d18260f07e46f52/src/Include -I/wrkdirs/usr/ports/science/openmolcas/work/.build/CMakeFiles/include -I/wrkdirs/usr/ports/science/openmolcas/work/.build/CMakeFiles/mod -std=gnu99 -O2 -MD -MT CMakeFiles/parnell/CMakeFiles/parnell.exe.dir/parnell_unlink.c.o -MF CMakeFiles/parnell.exe.dir/parnell_unlink.c.o.d -o CMakeFiles/parnell.exe.dir/parnell_unlink.c.o -c /wrkdirs/usr/ports/science/openmolcas/work/OpenMolcas-ff0b5d1cb86ae8766625b9018d18260f07e46f52/src/parnell/parnell_unlink.c /wrkdirs/usr/ports/science/openmolcas/work/OpenMolcas-ff0b5d1cb86ae8766625b9018d18260f07e46f52/src/parnell/parnell_unlink.c: In function 'parnell_unlink': /wrkdirs/usr/ports/science/openmolcas/work/OpenMolcas-ff0b5d1cb86ae8766625b9018d18260f07e46f52/src/parnell/parnell_unlink.c:78:7: error: implicit declaration of function 'lstat'; did you mean 'stat'? [-Wimplicit-function-declaration] 78 | if (lstat(fpath, &info)) { | ^~~~~ | stat *** Error code 1 Stop. Full log: https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-29_19h57m48s/logs/errors/openmolcas-24.06.log Useful link: https://gcc.gnu.org/gcc-14/porting_to.html
Fixed.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=c005684472f840294c5b3c0e2df30046a4ad4a4f commit c005684472f840294c5b3c0e2df30046a4ad4a4f Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2024-09-05 14:01:22 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2024-09-05 21:04:30 +0000 science/openmolcas: Fix build with gcc14 PR: 281246 Reported by: Lorenzo Salvadore <salvadore@freebsd.org> .../files/patch-src_parnell_parnell__unlink.c (new) | 11 +++++++++++ 1 file changed, 11 insertions(+)