sakaki- / genpi64-overlay

Gentoo overlay for the Raspberry Pi 3 and 4
GNU General Public License v3.0
53 stars 49 forks source link

media-libs/raspberrypi-userland-1.20191214 FTBFS w/ gcc-10 #30

Closed crabbedhaloablution closed 4 years ago

crabbedhaloablution commented 4 years ago

In file included from /var/tmp/portage/media-libs/raspberrypi-userland-1.20191214/work/raspberrypi-userland-1.20191214/build/inc/interface/vcos/vcos.h:144, from /var/tmp/portage/media-libs/raspberrypi-userland-1.20191214/work/raspberrypi-userland-1.20191214/interface/vmcs_host/linux/vcfilesys.c:56: /var/tmp/portage/media-libs/raspberrypi-userland-1.20191214/work/raspberrypi-userland-1.20191214/interface/vmcs_host/linux/vcfilesys.c: In function ‘vc_hostfs_totalspace64’: /var/tmp/portage/media-libs/raspberrypi-userland-1.20191214/work/raspberrypi-userland-1.20191214/build/inc/interface/vcos/vcos_logging.h:234:88: error: ‘%s’ directive argument is null [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat-overflow=^G-Werror=format-overflow=8;;^G] 234 | # define _VCOS_LOG_X(cat, _level, fmt...) do { if (vcos_is_log_enabled(cat,_level)) vcos_log_impl(cat,_level,fmt); } while (0) | ^~~~~~~~~ /var/tmp/portage/media-libs/raspberrypi-userland-1.20191214/work/raspberrypi-userland-1.20191214/build/inc/interface/vcos/vcos_logging.h:245:32: note: in expansion of macro ‘_VCOS_LOG_X’ 245 | # define vcos_log_info(...) _VCOS_LOG_X(VCOS_LOG_CATEGORY, VCOS_LOG_INFO, VA_ARGS) | ^~~ /var/tmp/portage/media-libs/raspberrypi-userland-1.20191214/work/raspberrypi-userland-1.20191214/interface/vmcs_host/linux/vcfilesys.c:79:26: note: in expansion of macro ‘vcos_log_info’ 79 | #define DEBUG_MINOR(...) vcos_log_info(VA_ARGS) | ^~~~~ /var/tmp/portage/media-libs/raspberrypi-userland-1.20191214/work/raspberrypi-userland-1.20191214/interface/vmcs_host/linux/vcfilesys.c:1019:4: note: in expansion of macro ‘DEBUG_MINOR’ 1019 | DEBUG_MINOR( "vc_hostfs_totalspace for '%s' returning %" PRId64 "", path, ret ); | ^~~ /var/tmp/portage/media-libs/raspberrypi-userland-1.20191214/work/raspberrypi-userland-1.20191214/interface/vmcs_host/linux/vcfilesys.c:1019:44: note: format string is defined here 1019 | DEBUG_MINOR( "vc_hostfs_totalspace for '%s' returning %" PRId64 "", path, ret ); | ^~ cc1: all warnings being treated as errors

crabbedhaloablution commented 4 years ago

Fix here: https://git.robertjoslyn.com/meta-raspberrypi/tree/recipes-graphics/userland/files/0021-cmake-Disable-format-overflow-warning-as-error.patch