Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Sep 2024 13:57:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 281246] science/openmolcas: Fails to build with GCC 14: error: implicit declaration of function 'lstat'; did you mean 'stat'? [-Wimplicit-function-declaration]
Message-ID:  <bug-281246-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281246

            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-ff0b5d1cb86ae876662=
5b9018d18260f07e46f52/src/Include
-I/wrkdirs/usr/ports/science/openmolcas/work/.build/CMakeFiles/include
-I/wrkdirs/usr/ports/science/openmolcas/work/.build/CMakeFiles/mod -std=3Dg=
nu99=20
-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-ff0b5d1cb86ae8766625b=
9018d18260f07e46f52/src/parnell/parnell_unlink.c
/wrkdirs/usr/ports/science/openmolcas/work/OpenMolcas-ff0b5d1cb86ae8766625b=
9018d18260f07e46f52/src/parnell/parnell_unlink.c:
In function 'parnell_unlink':
/wrkdirs/usr/ports/science/openmolcas/work/OpenMolcas-ff0b5d1cb86ae8766625b=
9018d18260f07e46f52/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=3D281091
[Bug 281091] [exp-run] Update GCC_DEFAULT to 14 etc.
--=20
You are receiving this mail because:
You are the assignee for the bug.=



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