Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 887647

Summary: [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
Product: GURU Reporter: Agostino Sarubbo <ago>
Component: Package issuesAssignee: Lino Bigatti <linobigatti>
Status: CONFIRMED ---    
Severity: normal CC: guru-bugs
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: build.log.xz

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]