[Bug 281246] science/openmolcas: Fails to build with GCC 14: error: implicit declaration of function 'lstat'; did you mean 'stat'? [-Wimplicit-function-declaration]

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 03 Sep 2024 13:57:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281246

            Bug ID: 281246
           Summary: science/openmolcas: Fails to build with GCC 14: error:
                    implicit declaration of function 'lstat'; did you mean
                    'stat'? [-Wimplicit-function-declaration]
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
               URL: https://pkg-status.freebsd.org/gohan04/data/140amd64-d
                    efault-foo/2024-08-29_19h57m48s/logs/errors/openmolcas
                    -24.06.log
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: yuri@freebsd.org
          Reporter: salvadore@freebsd.org
            Blocks: 281091
             Flags: maintainer-feedback?(yuri@freebsd.org)
          Assignee: yuri@freebsd.org

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


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281091
[Bug 281091] [exp-run] Update GCC_DEFAULT to 14 etc.
-- 
You are receiving this mail because:
You are the assignee for the bug.