Bug 281223 - cad/alliance: Fails to build with GCC 14: beh_delbequad.c:45:6: error: type of 'listbequad' defaults to 'int' [-Wimplicit-int]
Summary: cad/alliance: Fails to build with GCC 14: beh_delbequad.c:45:6: error: type o...
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:40 UTC by Lorenzo Salvadore
Modified: 2024-09-05 09:53 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:40:12 UTC
Build fails with GCC 14. This blocks GCC_DEFAULT update to GCC 14.

/bin/sh ../../libtool  --tag=CC   --mode=compile gcc14 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"alliance\" -DVERSION=\"5.0\" -DYYTEXT_POINTER=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_FCNTL_H=1 -DHAVE_MALLOC_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRINGS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBM=1 -DHAVE_LIBM=1 -DHAVE_LIBM=1 -DHAVE_LIBM=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_SYS_WAIT_H=1 -DRETSIGTYPE=void -DHAVE_MOTIF=1 -DHAVE_XPM=1 -DHAVE_XPM=1 -DHAVE_X11_XPM_H=1 -DHAVE_MOTIF=1 -DHAVE_XMUSEVERSION=1 -DHAVE_XMINSTALLIMAGE=1 -DALLIANCE_VERSION=\"5.0\" -DALLIANCE_TOP=\"/usr/local/alliance\" -I.    -I../../mbk/src -I../../log/src -O2 -pipe  -fcommon -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc14 -fno-strict-aliasing  -MT beh_delbequad.lo -MD -MP -MF .deps/beh_delbequad.Tpo -c -o beh_delbequad.lo beh_delbequad.c
libtool: compile:  gcc14 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"alliance\" -DVERSION=\"5.0\" -DYYTEXT_POINTER=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_FCNTL_H=1 -DHAVE_MALLOC_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRINGS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBM=1 -DHAVE_LIBM=1 -DHAVE_LIBM=1 -DHAVE_LIBM=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_SYS_WAIT_H=1 -DRETSIGTYPE=void -DHAVE_MOTIF=1 -DHAVE_XPM=1 -DHAVE_XPM=1 -DHAVE_X11_XPM_H=1 -DHAVE_MOTIF=1 -DHAVE_XMUSEVERSION=1 -DHAVE_XMINSTALLIMAGE=1 -DALLIANCE_VERSION=\"5.0\" -DALLIANCE_TOP=\"/usr/local/alliance\" -I. -I../../mbk/src -I../../log/src -O2 -pipe -fcommon -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc14 -fno-strict-aliasing -MT beh_delbequad.lo -MD -MP -MF .deps/beh_delbequad.Tpo -c beh_delbequad.c  -fPIC -DPIC -o .libs/beh_delbequad.o
beh_delbequad.c: In function 'beh_delbequad':
beh_delbequad.c:45:6: error: type of 'listbequad' defaults to 'int' [-Wimplicit-int]
   45 | void beh_delbequad (listbequad, ptbequad, mode)
      |      ^~~~~~~~~~~~~
gmake[2]: *** [Makefile:782: beh_delbequad.lo] Error 1
gmake[2]: Leaving directory '/wrkdirs/usr/ports/cad/alliance/work/alliance-ebece102e15c110fc79f1da50524c68fd9523f0c/alliance/src/beh/src'
gmake[1]: *** [Makefile:530: all-recursive] Error 1
gmake[1]: Leaving directory '/wrkdirs/usr/ports/cad/alliance/work/alliance-ebece102e15c110fc79f1da50524c68fd9523f0c/alliance/src/beh'
gmake: *** [Makefile:579: all-recursive] Error 1
*** Error code 1

Stop.
make: stopped in /usr/ports/cad/alliance
Full log: https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-29_19h57m48s/logs/errors/alliance-5.1.1_6.log

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

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

commit 85f7ee26d6846d73be6e2fc3c5be50f98f609b40
Author:     Lorenzo Salvadore <salvadore@FreeBSD.org>
AuthorDate: 2024-09-04 09:53:17 +0000
Commit:     Lorenzo Salvadore <salvadore@FreeBSD.org>
CommitDate: 2024-09-05 09:48:38 +0000

    cad/alliance: Fix build with GCC 14

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

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

 cad/alliance/Makefile                              |  3 ++-
 cad/alliance/files/patch-scr_src_Makefile.am (new) | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)