Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Sep 2024 13:39:35 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 281238] lang/gforth: Fails to build with GCC 14: prim:2157:5: error: implicit declaration of function 'ecvt' [-Wimplicit-function-declaration]
Message-ID:  <bug-281238-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 281238
           Summary: lang/gforth: Fails to build with GCC 14: prim:2157:5:
                    error: implicit declaration of function 'ecvt'
                    [-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/gforth-0.7
                    .3_15.log
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Ports Framework
          Assignee: portmgr@FreeBSD.org
          Reporter: salvadore@freebsd.org
                CC: ports-bugs@FreeBSD.org
            Blocks: 281091

Build fails with GCC 14. This blocks GCC_DEFAULT update to GCC 14.

gcc14  -I./../arch/generic -I. -Wall -O2 -pipe  -fstack-protector-strong
-Wl,-rpath=3D/usr/local/lib/gcc14 -isystem /usr/local/include
-fno-strict-aliasing  -DHAVE_CONFIG_H=20
-DDEFAULTPATH=3D'".:/usr/local/lib/gforth/site-forth:/usr/local/share/gfort=
h/site-forth:/usr/local/lib/gforth/0.7.3:/usr/local/share/gforth/0.7.3"'
 -isystem /usr/local/include -fno-gcse -fno-strict-aliasing -fno-crossjumpi=
ng
-fno-reorder-blocks -falign-labels=3D1 -falign-loops=3D1 -falign-jumps=3D1
-fno-defer-pop -fcaller-saves -fno-inline -fno-reorder-blocks
-DGFORTH_DEBUGGING -o engine-noll.o -c ./engine.c
In file included from ./engine.c:28:
./forth.h:279:2: warning: #warning flush-icache probably will not work (see
manual) [-Wcpp]
  279 | #warning flush-icache probably will not work (see manual)
      |  ^~~~~~~
./forth.h:281:2: warning: #warning no FLUSH_ICACHE, turning off dynamic nat=
ive
code by default [-Wcpp]
  281 | #warning no FLUSH_ICACHE, turning off dynamic native code by default
      |  ^~~~~~~
In file included from ./engine.c:455:
prim: In function 'gforth_engine':
prim:2157:5: error: implicit declaration of function 'ecvt'
[-Wimplicit-function-declaration]
prim:2157:4: error: assignment to 'char *' from 'int' makes pointer from
integer without a cast [-Wint-conversion]
gmake[3]: *** [Makefile:169: engine-noll.o] Error 1
gmake[3]: Leaving directory
'/wrkdirs/usr/ports/lang/gforth/work/gforth-0.7.3/engine'
gmake[2]: Leaving directory '/wrkdirs/usr/ports/lang/gforth/work/gforth-0.7=
.3'
gmake[1]: Leaving directory '/wrkdirs/usr/ports/lang/gforth/work/gforth-0.7=
.3'
cp: gforth-noll: No such file or directory
gmake: *** [Makefile:806: gforth] Error 1
*** Error code 1

Full log:
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-29=
_19h57m48s/logs/errors/gforth-0.7.3_15.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 on the CC list for the bug.=



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