Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 887647 - [guru] games-emulation/np2kai-22_p20210211 fails to compile (CLANG-STRICTER-SYSTEM): fontmng.c:477:37: error: incompatible pointer to integer conversion passing SDL_Surface (aka struct SDL_Surface ) to parameter of type Uint16 (aka unsigned short) [-Wint
Summary: [guru] games-emulation/np2kai-22_p20210211 fails to compile (CLANG-STRICTER-S...
Status: CONFIRMED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Lino Bigatti
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-12-21 10:04 UTC by Agostino Sarubbo
Modified: 2023-12-05 04:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz (build.log.xz,33.14 KB, application/x-xz)
2022-12-21 10:04 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-12-21 10:04:31 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: games-emulation/np2kai-22_p20210211 fails to compile (CLANG-STRICTER-SYSTEM).
Discovered on: amd64 (internal ref: guru_tinderbox)

NOTE:
(CLANG-STRICTER-SYSTEM) in the summary means that the bug was found on a machine that runs clang with stricter mode

This machine uses clang with CFLAGS/CXXFLAGS=-Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-function-pointer-types

See also:
https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
https://wiki.gentoo.org/wiki/Modern_C_porting
Comment 1 Agostino Sarubbo gentoo-dev 2022-12-21 10:04:34 UTC
Created attachment 844351 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2022-12-21 10:04:34 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


-- Could NOT find SDL (missing: SDL_LIBRARY SDL_INCLUDE_DIR) 
-- Could NOT find SDL_mixer (missing: SDL_MIXER_LIBRARIES SDL_MIXER_INCLUDE_DIRS) 
-- Could NOT find SDL_ttf (missing: SDL_TTF_LIBRARIES SDL_TTF_INCLUDE_DIRS) 
FAILED: CMakeFiles/sdlnp2kai.dir/sdl/fontmng.c.o 
fatal: not a git repository (or any parent up to mount point /var/tmp)
/var/tmp/portage/games-emulation/np2kai-22_p20210211/work/NP2kai-3e8fedc7c1c6f68faa26589187512474a766ee9e/sdl/fontmng.c:477:37: error: incompatible pointer to integer conversion passing 'SDL_Surface *' (aka 'struct SDL_Surface *') to parameter of type 'Uint16' (aka 'unsigned short') [-Wint-conversion]