Bug 281236 - lang/clisp: Fails to build with GCC 14: error: passing argument 2 of 'db->stat' from incompatible pointer type [-Wincompatible-pointer-types]
Summary: lang/clisp: Fails to build with GCC 14: error: passing argument 2 of 'db->sta...
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 13:28 UTC by Lorenzo Salvadore
Modified: 2024-12-01 17:58 UTC (History)
1 user (show)

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 13:28:44 UTC
Build fails with GCC 14. This blocks GCC_DEFAULT update to GCC 14.

/wrkdirs/usr/ports/lang/clisp/work/clisp-df3b9f6fdcff22832898e89a989eb499c0f842ed/modules/berkeley-db/bdb.c:1519:44: error: passing argument 2 of 'db->stat' from incompatible pointer type [-Wincompatible-pointer-types]
 1519 | # define DB_STAT(s)   SYSCALL(db->stat,(db,&s,flags));
      |                                            ^
      |                                            |
      |                                            DB_HASH_STAT ** {aka struct __db_h_stat **}
/wrkdirs/usr/ports/lang/clisp/work/clisp-df3b9f6fdcff22832898e89a989eb499c0f842ed/modules/berkeley-db/bdb.c:279:223: note: in definition of macro 'SYSCALL1'
  279 |   } while(0)
      |                                                                                                                                                                                                                               ^   
/wrkdirs/usr/ports/lang/clisp/work/clisp-df3b9f6fdcff22832898e89a989eb499c0f842ed/modules/berkeley-db/bdb.c:1519:23: note: in expansion of macro 'SYSCALL'
 1519 | # define DB_STAT(s)   SYSCALL(db->stat,(db,&s,flags));
      |                       ^~~~~~~
/wrkdirs/usr/ports/lang/clisp/work/clisp-df3b9f6fdcff22832898e89a989eb499c0f842ed/modules/berkeley-db/bdb.c:1534:7: note: in expansion of macro 'DB_STAT'
 1534 |       DB_STAT(hash_stat);

Full log: https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-29_19h57m48s/logs/errors/clisp-2.49.93+_7.log

Useful link: https://gcc.gnu.org/gcc-14/porting_to.html
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2024-09-03 13:28:44 UTC
Maintainer informed via mail
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-11-15 12:02:39 UTC
A commit in branch main references this bug:

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

commit b5ee3285222391d26dd59713ef187305b2d7e7f4
Author:     Lorenzo Salvadore <salvadore@FreeBSD.org>
AuthorDate: 2024-11-15 11:27:18 +0000
Commit:     Lorenzo Salvadore <salvadore@FreeBSD.org>
CommitDate: 2024-11-15 12:02:11 +0000

    lang/clisp: Fix build with GCC 14

    GCC 14 turns some warnings into errors. Add -fpermissive flag to switch
    them back to warnings.

    PR:             281236

 lang/clisp/Makefile | 1 +
 1 file changed, 1 insertion(+)
Comment 3 Lorenzo Salvadore freebsd_committer freebsd_triage 2024-11-15 12:05:00 UTC
Fixed.