Bug 281246 - science/openmolcas: Fails to build with GCC 14: error: implicit declaration of function 'lstat'; did you mean 'stat'? [-Wimplicit-function-declaration]
Summary: science/openmolcas: Fails to build with GCC 14: error: implicit declaration o...
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: https://pkg-status.freebsd.org/gohan0...
Keywords:
Depends on:
Blocks: 281091
  Show dependency treegraph
 
Reported: 2024-09-03 13:57 UTC by Lorenzo Salvadore
Modified: 2024-09-05 21:05 UTC (History)
0 users

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 2024-09-03 13:57:51 UTC
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
Comment 1 Yuri Victorovich freebsd_committer freebsd_triage 2024-09-05 21:05:13 UTC
Fixed.
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-09-05 21:05:19 UTC
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(+)