libretro / libretro/fbalpha2012

build failure with gcc14 src/burner/unzip.c:1182:24: error: assignment to ‘const long unsigned int

Open
#116 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
31
Forks
55
PR merge metrics
No merged PRs in 30d

Description

Hello,
Build failure with GCC14 (no issue with GCC12 using same commit) on my gentoo system.

Log:

x86_64-pc-linux-gnu-gcc -march=bdver2 -O2 -pipe -march=bdver2 -O2 -pipe -DNDEBUG -fPIC -Wno-write-strings -DGIT_VERSION="" b7ac554"" -DINCLUDE_7Z_SUPPORT -DUSE_SPEEDHACKS -D__LIBRETRO__ -D__LIBRETRO_OPTIMIZATIONS__ -DWANT_NEOGEOCD -D__LIBRETRO_OPTIMIZATIONS__ -DFRONTEND_SUPPORTS_RGB565 -c -osrc/burn/snd/ym2151.o src/burn/snd/ym2151.c -march=bdver2 -O2 -pipe -march=bdver2 -O2 -pipe -DNDEBUG -fPIC -Wno-write-strings -DGIT_VERSION="" b7ac554"" -DINCLUDE_7Z_SUPPORT -DUSE_SPEEDHACKS -D__LIBRETRO__ -D__LIBRETRO_OPTIMIZATIONS__ -DWANT_NEOGEOCD -D__LIBRETRO_OPTIMIZATIONS__ -DFRONTEND_SUPPORTS_RGB565 -Isrc/burner/libretro -Isrc/burn -Isrc/cpu -Isrc/burn/snd -Isrc/burn/devices -Isrc/intf -Isrc/intf/input -Isrc/intf/cd -Isrc/burner -Isrc/cpu -Isrc/cpu/i8039 -Isrc/dep/libs/zlib -Isrc/dep/libs/lib7z -Isrc/burn/drv/capcom -Isrc/burn/drv/dataeast -Isrc/burn/drv/cave -Isrc/burn/drv/neogeo -Isrc/burn/drv/psikyo -Isrc/burn/drv/sega -Isrc/burn/drv/toaplan -Isrc/burn/drv/taito -Isrc/dep/generated -Isrc/burner/libretro/libretro-common/include -Isrc/dep/libs
src/burner/unzip.c: In function ‘unzOpenCurrentFile3’:
src/burner/unzip.c:1182:24: error: assignment to ‘const long unsigned int *’ from incompatible pointer type ‘const z_crc_t *’ {aka ‘const unsigned int *’} [-Wincompatible-pointer-types]
1182 | s->pcrc_32_tab = get_crc_table();
| ^
make: *** [makefile.libretro:806: src/burner/unzip.o] Error 1
make: *** Waiting for unfinished jobs....

  • ERROR: games-emulation/libretro-fbalpha2012-9999-r1::localrepo failed (compile phase):
  • emake failed

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/burner/unzip.c at line 1182 and inspect the assignment in unzOpenCurrentFile3 alongside the reported GCC14 type error. Reproduce the failure using the makefile.libretro target, then verify that the project compiles successfully with GCC14 without introducing new warnings.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.