Bug 281229 - devel/smv: Fails to build with GCC 14: error: implicit declaration of function 'find_atom'; did you mean 'find_assoc'? [-Wimplicit-function-declaration]
Summary: devel/smv: Fails to build with GCC 14: error: implicit declaration of functio...
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: Lorenzo Salvadore
URL: https://pkg-status.freebsd.org/gohan0...
Keywords:
Depends on:
Blocks: 281091
  Show dependency treegraph
 
Reported: 2024-09-03 12:57 UTC by Lorenzo Salvadore
Modified: 2024-09-05 14:55 UTC (History)
0 users

See Also:


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 12:57:59 UTC
Build fails with GCC 14. This blocks GCC_DEFAULT update to GCC 14.

gcc14  -O2 -pipe  -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc14 -fno-strict-aliasing  -g -I. -DBETTERHASH -DSMV_SIGNALS -DOTHER_SIMP -DREORDER -DTIMING -DVERSION="\"SMV 2.5.4.3. Mon Nov 19 10:01:26 2001.\"" -c grammar.c -o grammar.o
y.tab.c: In function 'yyparse':
y.tab.c:75:27: error: implicit declaration of function 'yyerror'; did you mean 'yyerrok'? [-Wimplicit-function-declaration]
y.tab.c:1432:5: note: in expansion of macro 'YYERROR_CALL'
y.tab.c:1496:9: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
y.tab.c:1309:1: note: include '<string.h>' or provide a declaration of 'memset'
y.tab.c:1496:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch]
y.tab.c:1496:9: note: include '<string.h>' or provide a declaration of 'memset'
grammar.y:183:21: error: implicit declaration of function 'find_atom'; did you mean 'find_assoc'? [-Wimplicit-function-declaration]
  183 | neconstlist   : constant {$$ = cons(find_atom($1),NIL);}
      |                     ^~~~~~~~~

Full log: https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-29_19h57m48s/logs/errors/smv-2.5.4.3_11.log

Useful link: https://gcc.gnu.org/gcc-14/porting_to.html
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-09-05 14:48:26 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e9e3b8343c58e3a1346ce74e9db3fc1b0a319ff4

commit e9e3b8343c58e3a1346ce74e9db3fc1b0a319ff4
Author:     Lorenzo Salvadore <salvadore@FreeBSD.org>
AuthorDate: 2024-09-05 14:47:13 +0000
Commit:     Lorenzo Salvadore <salvadore@FreeBSD.org>
CommitDate: 2024-09-05 14:47:44 +0000

    devel/smv: Fix build with GCC 14

    GCC 14 has transformed some warnings into errors: revert them to simple
    warnings.

    PR:             281229
    Reported by:    exp-run (antoine)

 devel/smv/Makefile | 2 ++
 1 file changed, 2 insertions(+)