* Package: games-emulation/gnuboy-1.0.3-r2 * Repository: gentoo * Maintainer: games@gentoo.org * USE: X abi_x86_64 amd64 elibc_glibc kernel_linux sdl userland_GNU * FEATURES: network-sandbox preserve-libs sandbox splitdebug userpriv usersandbox >>> Unpacking source... >>> Unpacking gnuboy-1.0.3.tar.gz to /var/tmp/portage/games-emulation/gnuboy-1.0.3-r2/work >>> Source unpacked in /var/tmp/portage/games-emulation/gnuboy-1.0.3-r2/work >>> Preparing source in /var/tmp/portage/games-emulation/gnuboy-1.0.3-r2/work/gnuboy-1.0.3 ... * Applying gnuboy-1.0.3-exec-stack.patch ... [ ok ] * Applying gnuboy-1.0.3-linux-headers.patch ... [ ok ] * Applying gnuboy-1.0.3-include.patch ... [ ok ] * Running eautoreconf in '/var/tmp/portage/games-emulation/gnuboy-1.0.3-r2/work/gnuboy-1.0.3' ... * Running aclocal ... [ ok ] * Running autoconf --force ... [ ok ] * Running autoheader ... [ ok ] * Running elibtoolize in: gnuboy-1.0.3/ >>> Source prepared. >>> Configuring source in /var/tmp/portage/games-emulation/gnuboy-1.0.3-r2/work/gnuboy-1.0.3 ... ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --docdir=/usr/share/doc/gnuboy-1.0.3-r2 --htmldir=/usr/share/doc/gnuboy-1.0.3-r2/html --libdir=/usr/lib64 --with-x --with-sdl --disable-asm --disable-arch --disable-optimize checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E checking for a BSD-compatible install... /usr/lib/portage/python3.7/ebuild-helpers/xattr/install -c checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking whether byte ordering is bigendian... no checking for usleep... yes checking sys/soundcard.h usability... yes checking sys/soundcard.h presence... yes checking for sys/soundcard.h... yes checking linux/joystick.h usability... yes checking linux/joystick.h presence... yes checking for linux/joystick.h... yes checking linux/fb.h usability... yes checking linux/fb.h presence... yes checking for linux/fb.h... yes checking for vga_init in -lvga... no checking for sdl-config... yes checking for SDL_Init in -lSDL... yes checking SDL/SDL.h usability... yes checking SDL/SDL.h presence... yes checking for SDL/SDL.h... yes checking for X... libraries , headers checking for XShmCreateImage in -lXext... yes checking sys/ipc.h usability... yes checking sys/ipc.h presence... yes checking for sys/ipc.h... yes checking sys/shm.h usability... yes checking sys/shm.h presence... yes checking for sys/shm.h... yes checking X11/extensions/XShm.h usability... no checking X11/extensions/XShm.h presence... yes configure: WARNING: X11/extensions/XShm.h: present but cannot be compiled configure: WARNING: X11/extensions/XShm.h: check for missing prerequisite headers? configure: WARNING: X11/extensions/XShm.h: see the Autoconf documentation configure: WARNING: X11/extensions/XShm.h: section "Present But Cannot Be Compiled" configure: WARNING: X11/extensions/XShm.h: proceeding with the compiler's result checking for X11/extensions/XShm.h... no enabling selected compiler warnings configure: creating ./config.status config.status: creating Makefile config.status: creating sys/nix/config.h >>> Source configured. >>> Compiling source in /var/tmp/portage/games-emulation/gnuboy-1.0.3-r2/work/gnuboy-1.0.3 ... make -j1 x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c lcd.c -o lcd.o lcd.c: In function ‘updatepalette’: lcd.c:748:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 748 | if (y < 0) y = 0; if (y > 255) y = 255; | ^~ lcd.c:748:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 748 | if (y < 0) y = 0; if (y > 255) y = 255; | ^~ lcd.c:749:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 749 | if (u < 0) u = 0; if (u > 255) u = 255; | ^~ lcd.c:749:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 749 | if (u < 0) u = 0; if (u > 255) u = 255; | ^~ lcd.c:750:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 750 | if (v < 0) v = 0; if (v > 255) v = 255; | ^~ lcd.c:750:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 750 | if (v < 0) v = 0; if (v > 255) v = 255; | ^~ In file included from /usr/include/string.h:519, from defs.h:8, from lcd.c:4: In function ‘memcpy’, inlined from ‘spr_enum’ at lcd.c:495:2: /usr/include/bits/string_fortified.h:34:10: warning: ‘__builtin_memcpy’ forming offset [240, 383] is out of the bounds [0, 240] of object ‘ts’ with type ‘struct vissprite[10]’ [-Warray-bounds] 34 | return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lcd.c: In function ‘spr_enum’: lcd.c:436:19: note: ‘ts’ declared here 436 | struct vissprite ts[10]; | ^~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c refresh.c -o refresh.o x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c lcdc.c -o lcdc.o x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c palette.c -o palette.o palette.c:25:13: warning: ‘bestmatch’ defined but not used [-Wunused-function] 25 | static byte bestmatch(int c) | ^~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c cpu.c -o cpu.o x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c mem.c -o mem.o mem.c: In function ‘mem_updatemap’: mem.c:63:26: warning: array subscript -48896 is outside array bounds of ‘struct ram[1]’ [-Warray-bounds] 63 | map[0xC] = ram.ibank[0] - 0xC000; | ~~~~~~~~~~~~~^~~~~~~~ mem.c:14:12: note: while referencing ‘ram’ 14 | struct ram ram; | ^~~ mem.c:66:26: warning: array subscript -57088 is outside array bounds of ‘struct ram[1]’ [-Warray-bounds] 66 | map[0xE] = ram.ibank[0] - 0xE000; | ~~~~~~~~~~~~~^~~~~~~~ mem.c:14:12: note: while referencing ‘ram’ 14 | struct ram ram; | ^~~ mem.c:79:26: warning: array subscript -48896 is outside array bounds of ‘struct ram[1]’ [-Warray-bounds] 79 | map[0xC] = ram.ibank[0] - 0xC000; | ~~~~~~~~~~~~~^~~~~~~~ mem.c:14:12: note: while referencing ‘ram’ 14 | struct ram ram; | ^~~ mem.c:82:26: warning: array subscript -57088 is outside array bounds of ‘struct ram[1]’ [-Warray-bounds] 82 | map[0xE] = ram.ibank[0] - 0xE000; | ~~~~~~~~~~~~~^~~~~~~~ mem.c:14:12: note: while referencing ‘ram’ 14 | struct ram ram; | ^~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c rtc.c -o rtc.o rtc.c: In function ‘rtc_load_internal’: rtc.c:105:2: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 105 | fscanf( | ^~~~~~~ 106 | f, "%d %d %d %02d %02d %02d %02d\n%d\n", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 107 | &rtc.carry, &rtc.stop, &rtc.d, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 108 | &rtc.h, &rtc.m, &rtc.s, &rtc.t, &rt); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c hw.c -o hw.o In file included from hw.c:10: fastmem.h:78:13: warning: ‘writehi’ defined but not used [-Wunused-function] 78 | static void writehi(int a, byte b) | ^~~~~~~ fastmem.h:73:13: warning: ‘readhi’ defined but not used [-Wunused-function] 73 | static byte readhi(int a) | ^~~~~~ fastmem.h:44:13: warning: ‘writew’ defined but not used [-Wunused-function] 44 | static void writew(int a, int w) | ^~~~~~ fastmem.h:24:12: warning: ‘readw’ defined but not used [-Wunused-function] 24 | static int readw(int a) | ^~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c sound.c -o sound.o x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c events.c -o events.o x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c keytable.c -o keytable.o x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c loader.c -o loader.o loader.c: In function ‘sram_load’: loader.c:210:2: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 210 | fread(ram.sbank, 8192, mbc.ramsize, f); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c save.c -o save.o save.c: In function ‘loadstate’: save.c:167:2: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 167 | fread(buf, 4096, 1, f); | ^~~~~~~~~~~~~~~~~~~~~~ save.c:203:2: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 203 | fread(ram.ibank, 4096, irl, f); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ save.c:206:2: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 206 | fread(lcd.vbank, 4096, vrl, f); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ save.c:209:2: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 209 | fread(ram.sbank, 4096, srl, f); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c debug.c -o debug.o In file included from debug.c:9: fastmem.h:78:13: warning: ‘writehi’ defined but not used [-Wunused-function] 78 | static void writehi(int a, byte b) | ^~~~~~~ fastmem.h:73:13: warning: ‘readhi’ defined but not used [-Wunused-function] 73 | static byte readhi(int a) | ^~~~~~ fastmem.h:44:13: warning: ‘writew’ defined but not used [-Wunused-function] 44 | static void writew(int a, int w) | ^~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c emu.c -o emu.o x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c main.c -o main.o x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c rccmds.c -o rccmds.o x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c rckeys.c -o rckeys.o x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c rcvars.c -o rcvars.o x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c rcfile.c -o rcfile.o rcfile.c: In function ‘rc_sourcefile’: rcfile.c:30:3: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 30 | fgets(line, sizeof line, f); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c exports.c -o exports.o exports.c: In function ‘show_exports’: exports.c:42:4: warning: incompatible implicit declaration of built-in function ‘printf’ 42 | printf("%s\n", sources[i][j].name); | ^~~~~~ exports.c:6:1: note: include ‘’ or provide a declaration of ‘printf’ 5 | #include "rc.h" +++ |+#include 6 | x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c split.c -o split.o x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c path.c -o path.o path.c: In function ‘path_search’: path.c:22:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 22 | if (buf) free(buf); buf = 0; | ^~ path.c:22:22: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 22 | if (buf) free(buf); buf = 0; | ^~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c inflate.c -o inflate.o inflate.c: In function ‘inflate’: inflate.c:436:25: warning: variable ‘nlen’ set but not used [-Wunused-but-set-variable] 436 | unsigned int len, nlen; | ^~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c sys/nix/nix.c -o sys/nix/nix.o x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c sys/x11/xlib.c -o sys/x11/xlib.o sys/x11/xlib.c: In function ‘mapxkeycode’: sys/x11/xlib.c:382:2: warning: ‘XKeycodeToKeysym’ is deprecated [-Wdeprecated-declarations] 382 | sym = XKeycodeToKeysym(x_display, xkeycode, 0); | ^~~ In file included from sys/x11/xlib.c:26: /usr/include/X11/Xlib.h:1687:15: note: declared here 1687 | extern KeySym XKeycodeToKeysym( | ^~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c sys/x11/keymap.c -o sys/x11/keymap.o x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c sys/linux/joy.c -o sys/linux/joy.o x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c sys/oss/oss.c -o sys/oss/oss.o sys/oss/oss.c: In function ‘pcm_submit’: sys/oss/oss.c:94:15: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 94 | if (pcm.buf) write(dsp, pcm.buf, pcm.pos); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 lcd.o refresh.o lcdc.o palette.o cpu.o mem.o rtc.o hw.o sound.o events.o keytable.o loader.o save.o debug.o emu.o main.o rccmds.o rckeys.o rcvars.o rcfile.o exports.o split.o path.o inflate.o sys/nix/nix.o sys/x11/xlib.o sys/x11/keymap.o sys/linux/joy.o sys/oss/oss.o -o xgnuboy -lX11 -lXext x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c sys/linux/fbdev.c -o sys/linux/fbdev.o sys/linux/fbdev.c: In function ‘vid_init’: sys/linux/fbdev.c:193:3: warning: incompatible implicit declaration of built-in function ‘sprintf’ 193 | sprintf(cmd, FBSET_CMD " %.80s", fb_mode); | ^~~~~~~ sys/linux/fbdev.c:23:1: note: include ‘’ or provide a declaration of ‘sprintf’ 22 | #include "matrox.h" +++ |+#include 23 | sys/linux/fbdev.c:217:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 217 | if ((int)mmio == -1) mmio = 0; | ^ sys/linux/fbdev.c:194:3: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 194 | system(cmd); | ^~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c sys/linux/kb.c -o sys/linux/kb.o x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c sys/pc/keymap.c -o sys/pc/keymap.o x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 lcd.o refresh.o lcdc.o palette.o cpu.o mem.o rtc.o hw.o sound.o events.o keytable.o loader.o save.o debug.o emu.o main.o rccmds.o rckeys.o rcvars.o rcfile.o exports.o split.o path.o inflate.o sys/nix/nix.o sys/linux/fbdev.o sys/linux/kb.o sys/pc/keymap.o sys/linux/joy.o sys/oss/oss.o -o fbgnuboy x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c sys/sdl/sdl.c -o sys/sdl/sdl.o x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -I. -I/usr/local/include -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c sys/sdl/keymap.c -o sys/sdl/keymap.o x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wformat -Werror=format-security -Wall -Wno-implicit -Wno-long-long -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 lcd.o refresh.o lcdc.o palette.o cpu.o mem.o rtc.o hw.o sound.o events.o keytable.o loader.o save.o debug.o emu.o main.o rccmds.o rckeys.o rcvars.o rcfile.o exports.o split.o path.o inflate.o sys/nix/nix.o sys/sdl/sdl.o sys/sdl/keymap.o -o sdlgnuboy -lSDL -lpthread /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: sys/sdl/sdl.o: in function `vid_init': sdl.c:(.text+0x235): undefined reference to `SDL_NumJoysticks' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: sdl.c:(.text+0x25a): undefined reference to `SDL_JoystickOpen' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: sdl.c:(.text+0x269): undefined reference to `SDL_JoystickEventState' collect2: error: ld returned 1 exit status make: *** [Makefile:47: sdlgnuboy] Error 1 * ERROR: games-emulation/gnuboy-1.0.3-r2::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=games-emulation/gnuboy-1.0.3-r2::gentoo'`, * the complete build log and the output of `emerge -pqv '=games-emulation/gnuboy-1.0.3-r2::gentoo'`. * The complete build log is located at '/var/log/portage/games-emulation:gnuboy-1.0.3-r2:20200916-211003.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/games-emulation/gnuboy-1.0.3-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/games-emulation/gnuboy-1.0.3-r2/temp/environment'. * Working directory: '/var/tmp/portage/games-emulation/gnuboy-1.0.3-r2/work/gnuboy-1.0.3' * S: '/var/tmp/portage/games-emulation/gnuboy-1.0.3-r2/work/gnuboy-1.0.3'