* Package: games-emulation/dosbox-0.74 * Repository: gentoo * Maintainer: mr_bones_@gentoo.org games@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux opengl userland_GNU * FEATURES: preserve-libs sandbox userpriv usersandbox * Applying dosbox-0.74-gcc46.patch ... [ ok ] checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make sets $(MAKE)... (cached) yes 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 for style of include used by make... GNU checking dependency style of x86_64-pc-linux-gnu-gcc... none checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E checking whether we are using the GNU C++ compiler... yes checking whether x86_64-pc-linux-gnu-g++ accepts -g... yes checking dependency style of x86_64-pc-linux-gnu-g++... none checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib checking for sdl-config... /usr/bin/sdl-config checking for SDL - version >= 1.2.0... yes checking SDL version only being 1.2.X... yes checking for an ANSI C-conforming const... yes checking for inline... inline 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 for size_t... yes checking whether struct tm is in sys/time.h or time.h... time.h checking size of unsigned char... 1 checking size of unsigned short... 2 checking size of unsigned int... 4 checking size of unsigned long... 8 checking size of unsigned long long... 8 checking size of int *... 8 checking for stdlib.h... (cached) yes checking for sys/types.h... (cached) yes checking for sys/socket.h... yes checking for netinet/in.h... yes checking for pwd.h... yes checking if environ can be included... yes checking if environ can be linked... yes checking if dirent includes d_type... yes checking for powf in libm... yes checking if compiler allows __attribute__... yes checking if compiler allows __attribute__((always_inline)) ... no checking if compiler allows __attribute__((fastcall)) ... no checking if compiler allows __builtin_expect... yes checking whether byte ordering is bigendian... no checking curses.h usability... yes checking curses.h presence... yes checking for curses.h... yes checking for initscr in -lcurses... yes checking for initscr in -lncurses... yes checking for initscr in -lpdcurses... no Debugger not enabled checking for target cpu type... x86-64 bit compatible checking whether x86 dynamic cpu core will be enabled... no checking whether recompiling cpu core will be enabled... yes checking whether fpu emulation will be enabled... yes checking whether x86 assembly fpu core will be enabled... no checking whether to enable unaligned memory access... yes checking png.h usability... yes checking png.h presence... yes checking for png.h... yes checking for png_get_io_ptr in -lpng... yes checking SDL_net.h usability... yes checking SDL_net.h presence... yes checking for SDL_net.h... yes checking for SDLNet_Init in -lSDL_net... yes checking for main in -lX11... yes checking X11/XKBlib.h usability... yes checking X11/XKBlib.h presence... yes checking for X11/XKBlib.h... yes checking for XKBlib support... yes checking for main in -lGL... yes checking for main in -lopengl32... no checking GL/gl.h usability... yes checking GL/gl.h presence... yes checking for GL/gl.h... yes checking whether opengl display output will be enabled... yes checking SDL_sound.h usability... yes checking SDL_sound.h presence... yes checking for SDL_sound.h... yes checking for Sound_Init in -lSDL_sound... yes checking for Sound_Seek in -lSDL_sound... yes checking sys/mman.h usability... yes checking sys/mman.h presence... yes checking for sys/mman.h... yes checking for mprotect... yes checking for setpriority support... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/cpu/Makefile config.status: creating src/cpu/core_full/Makefile config.status: creating src/cpu/core_normal/Makefile config.status: creating src/cpu/core_dyn_x86/Makefile config.status: creating src/cpu/core_dynrec/Makefile config.status: creating src/debug/Makefile config.status: creating src/dos/Makefile config.status: creating src/fpu/Makefile config.status: creating src/gui/Makefile config.status: creating src/hardware/Makefile config.status: creating src/hardware/serialport/Makefile config.status: creating src/ints/Makefile config.status: creating src/libs/Makefile config.status: creating src/libs/zmbv/Makefile config.status: creating src/libs/gui_tk/Makefile config.status: creating src/misc/Makefile config.status: creating src/shell/Makefile config.status: creating src/platform/Makefile config.status: creating src/platform/visualc/Makefile config.status: creating visualc_net/Makefile config.status: creating include/Makefile config.status: creating docs/Makefile config.status: creating config.h config.status: executing depfiles commands make all-recursive make[1]: Entering directory '/var/tmp/portage/games-emulation/dosbox-0.74/work/dosbox-0.74' Making all in src make[2]: Entering directory '/var/tmp/portage/games-emulation/dosbox-0.74/work/dosbox-0.74/src' Making all in cpu make[3]: Entering directory '/var/tmp/portage/games-emulation/dosbox-0.74/work/dosbox-0.74/src/cpu' Making all in core_full make[4]: Entering directory '/var/tmp/portage/games-emulation/dosbox-0.74/work/dosbox-0.74/src/cpu/core_full' make[4]: Nothing to be done for 'all'. make[4]: Leaving directory '/var/tmp/portage/games-emulation/dosbox-0.74/work/dosbox-0.74/src/cpu/core_full' Making all in core_normal make[4]: Entering directory '/var/tmp/portage/games-emulation/dosbox-0.74/work/dosbox-0.74/src/cpu/core_normal' make[4]: Nothing to be done for 'all'. make[4]: Leaving directory '/var/tmp/portage/games-emulation/dosbox-0.74/work/dosbox-0.74/src/cpu/core_normal' Making all in core_dyn_x86 make[4]: Entering directory '/var/tmp/portage/games-emulation/dosbox-0.74/work/dosbox-0.74/src/cpu/core_dyn_x86' make[4]: Nothing to be done for 'all'. make[4]: Leaving directory '/var/tmp/portage/games-emulation/dosbox-0.74/work/dosbox-0.74/src/cpu/core_dyn_x86' Making all in core_dynrec make[4]: Entering directory '/var/tmp/portage/games-emulation/dosbox-0.74/work/dosbox-0.74/src/cpu/core_dynrec' make[4]: Nothing to be done for 'all'. make[4]: Leaving directory '/var/tmp/portage/games-emulation/dosbox-0.74/work/dosbox-0.74/src/cpu/core_dynrec' make[4]: Entering directory '/var/tmp/portage/games-emulation/dosbox-0.74/work/dosbox-0.74/src/cpu' x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o callback.o callback.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o cpu.o cpu.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o flags.o flags.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o modrm.o modrm.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o core_full.o core_full.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o paging.o paging.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o core_normal.o core_normal.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o core_simple.o core_simple.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o core_prefetch.o core_prefetch.cpp callback.cpp: In function ‘Bitu CALLBACK_SetupExtra(Bitu, Bitu, PhysPt, bool)’: callback.cpp:435:47: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] E_Exit("CALLBACK:Setup:Illegal type %d",type); ^ x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o core_dyn_x86.o core_dyn_x86.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o core_dynrec.o core_dynrec.cpp cpu.cpp: In function ‘bool CPU_SwitchTask(Bitu, TSwitchType, Bitu)’: cpu.cpp:348:86: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] E_Exit("Illegal TSS for switch, selector=%x, switchtype=%x",new_tss_selector,tstype); ^ cpu.cpp:502:50: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] E_Exit("Task switch CS Type %d",cs_desc.Type()); ^ cpu.cpp: In function ‘void CPU_Interrupt(Bitu, Bitu, Bitu)’: cpu.cpp:724:89: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] E_Exit("INT:Gate Selector points to illegal descriptor with type %x",cs_desc.Type()); ^ cpu.cpp:754:66: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 2 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] E_Exit("Illegal descriptor type %X for int %X",gate.Type(),num); ^ cpu.cpp:754:66: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 3 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] cpu.cpp: In function ‘void CPU_IRET(bool, Bitu)’: cpu.cpp:901:61: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 2 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] E_Exit("IRET:Illegal descriptor type %X",n_cs_desc.Type()); ^ cpu.cpp: In function ‘void CPU_JMP(bool, Bitu, Bitu, Bitu)’: cpu.cpp:1058:55: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 2 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] E_Exit("JMP Illegal descriptor type %X",desc.Type()); ^ cpu.cpp: In function ‘void CPU_CALL(bool, Bitu, Bitu, Bitu)’: cpu.cpp:1294:60: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] E_Exit("CALL:Descriptor type %x unsupported",call.Type()); ^ cpu.cpp: In function ‘void CPU_RET(bool, Bitu, Bitu)’: cpu.cpp:1352:61: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 2 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] E_Exit("RET from illegal descriptor type %X",desc.Type()); ^ cpu.cpp:1397:61: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 2 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] E_Exit("RET from illegal descriptor type %X",desc.Type()); // or #GP(selector) ^ cpu.cpp: In function ‘bool CPU_LTR(Bitu)’: cpu.cpp:1508:80: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 2 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] if (!cpu_tss.SetSelector(selector)) E_Exit("LTR failed, selector=%X",selector); ^ In file included from core_dynrec.cpp:137:0: core_dynrec/cache.h: In function ‘void cache_closeblock()’: core_dynrec/cache.h:503:107: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] if (written>block->cache.size+CACHE_MAXSIZE) E_Exit("CacheBlock overrun 1 %d",written-block->cache.size); ^ core_dynrec/cache.h:504:84: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] } else E_Exit("CacheBlock overrun 2 written %d size %d",written,block->cache.size); ^ core_dynrec/cache.h:504:84: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] In file included from core_dynrec/decoder.h:26:0, from core_dynrec.cpp:157: core_dynrec/dyn_fpu.h: In function ‘void dyn_fpu_esc3()’: core_dynrec/dyn_fpu.h:386:91: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] E_Exit("ESC 3:ILLEGAL OPCODE group %d subfunction %d",decode.modrm.reg,decode.modrm.rm); ^ core_dynrec/dyn_fpu.h:386:91: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] rm -f libcpu.a ar cru libcpu.a callback.o cpu.o flags.o modrm.o core_full.o paging.o core_normal.o core_simple.o core_prefetch.o core_dyn_x86.o core_dynrec.o x86_64-pc-linux-gnu-ranlib libcpu.a make[4]: Leaving directory '/var/tmp/portage/games-emulation/dosbox-0.74/work/dosbox-0.74/src/cpu' make[3]: Leaving directory '/var/tmp/portage/games-emulation/dosbox-0.74/work/dosbox-0.74/src/cpu' Making all in debug make[3]: Entering directory '/var/tmp/portage/games-emulation/dosbox-0.74/work/dosbox-0.74/src/debug' x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o debug.o debug.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o debug_gui.o debug_gui.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o debug_disasm.o debug_disasm.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o debug_win32.o debug_win32.cpp rm -f libdebug.a ar cru libdebug.a debug.o debug_gui.o debug_disasm.o debug_win32.o x86_64-pc-linux-gnu-ranlib libdebug.a make[3]: Leaving directory '/var/tmp/portage/games-emulation/dosbox-0.74/work/dosbox-0.74/src/debug' Making all in dos make[3]: Entering directory '/var/tmp/portage/games-emulation/dosbox-0.74/work/dosbox-0.74/src/dos' x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o dos.o dos.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o dos_devices.o dos_devices.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o dos_execute.o dos_execute.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o dos_files.o dos_files.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o dos_ioctl.o dos_ioctl.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o dos_memory.o dos_memory.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o dos_misc.o dos_misc.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o dos_classes.o dos_classes.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o dos_programs.o dos_programs.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o dos_tables.o dos_tables.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o drives.o drives.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o drive_virtual.o drive_virtual.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o drive_local.o drive_local.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o drive_cache.o drive_cache.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o drive_fat.o drive_fat.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o drive_iso.o drive_iso.cpp dos_programs.cpp: In member function ‘virtual void BOOT::Run()’: dos_programs.cpp:605:54: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(rombuf, 1, rombytesize_1-0x200, usefile_1); ^ dos_programs.cpp:691:40: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(rombuf, 1, 0x200, usefile_2); ^ dos_programs.cpp:696:54: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(rombuf, 1, rombytesize_2-0x200, usefile_2); ^ dos_programs.cpp:704:39: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(rombuf, 1, 0x200, usefile_1); ^ dos_programs.cpp:709:53: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(rombuf, 1, rombytesize_1-0x200, usefile_1); ^ x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o dos_mscdex.o dos_mscdex.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o dos_keyboard_layout.o dos_keyboard_layout.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o cdrom.o cdrom.cpp drive_cache.cpp: In member function ‘void DOS_Drive_Cache::CreateShortName(DOS_Drive_Cache::CFileInfo*, DOS_Drive_Cache::CFileInfo*)’: drive_cache.cpp:448:36: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] sprintf(buffer,"%d",info->shortNr); ^ x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o cdrom_ioctl_win32.o cdrom_ioctl_win32.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o cdrom_aspi_win32.o cdrom_aspi_win32.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o cdrom_ioctl_linux.o cdrom_ioctl_linux.cpp dos_keyboard_layout.cpp: In function ‘Bit32u read_kcl_file(const char*, const char*, bool)’: dos_keyboard_layout.cpp:179:43: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(rbuf, sizeof(Bit8u), 2, tempfile); ^ dos_keyboard_layout.cpp:184:44: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(rbuf, sizeof(Bit8u), 1, tempfile); ^ dos_keyboard_layout.cpp: In member function ‘Bitu keyboard_layout::read_codepage_file(const char*, Bit32s)’: dos_keyboard_layout.cpp:797:50: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(&next_byte, sizeof(Bit8u), 1, tempfile); found_at_pos++; ^ dos_keyboard_layout.cpp:799:51: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(&next_byte, sizeof(Bit8u), 1, tempfile); found_at_pos++; ^ dos_keyboard_layout.cpp:801:52: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(&next_byte, sizeof(Bit8u), 1, tempfile); found_at_pos++; ^ dos_keyboard_layout.cpp:803:53: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(&next_byte, sizeof(Bit8u), 1, tempfile); found_at_pos++; ^ dos_keyboard_layout.cpp:806:54: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(&next_byte, sizeof(Bit8u), 1, tempfile); ^ x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o cdrom_image.o cdrom_image.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o cdrom_ioctl_os2.o cdrom_ioctl_os2.cpp rm -f libdos.a ar cru libdos.a dos.o dos_devices.o dos_execute.o dos_files.o dos_ioctl.o dos_memory.o dos_misc.o dos_classes.o dos_programs.o dos_tables.o drives.o drive_virtual.o drive_local.o drive_cache.o drive_fat.o drive_iso.o dos_mscdex.o dos_keyboard_layout.o cdrom.o cdrom_ioctl_win32.o cdrom_aspi_win32.o cdrom_ioctl_linux.o cdrom_image.o cdrom_ioctl_os2.o x86_64-pc-linux-gnu-ranlib libdos.a make[3]: Leaving directory '/var/tmp/portage/games-emulation/dosbox-0.74/work/dosbox-0.74/src/dos' Making all in fpu make[3]: Entering directory '/var/tmp/portage/games-emulation/dosbox-0.74/work/dosbox-0.74/src/fpu' x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o fpu.o fpu.cpp fpu.cpp: In function ‘void FPU_ESC3_Normal(Bitu)’: fpu.cpp:389:67: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] E_Exit("ESC 3:ILLEGAL OPCODE group %d subfunction %d",group,sub); ^ fpu.cpp:389:67: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] rm -f libfpu.a ar cru libfpu.a fpu.o x86_64-pc-linux-gnu-ranlib libfpu.a make[3]: Leaving directory '/var/tmp/portage/games-emulation/dosbox-0.74/work/dosbox-0.74/src/fpu' Making all in gui make[3]: Entering directory '/var/tmp/portage/games-emulation/dosbox-0.74/work/dosbox-0.74/src/gui' x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o sdlmain.o sdlmain.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o sdl_mapper.o sdl_mapper.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o render.o render.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o render_scalers.o render_scalers.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o midi.o midi.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -Wformat -Werror=format-security -g0 -O2 -Wabi -fabi-version=6 -c -o sdl_gui.o sdl_gui.cpp sdl_mapper.cpp: In member function ‘virtual void CJAxisBind::ConfigName(char*)’: sdl_mapper.cpp:544:73: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] sprintf(buf,"%s axis %d %d",group->ConfigStart(),axis,positive ? 1 : 0); ^ sdl_mapper.cpp: In member function ‘virtual void CJAxisBind::BindName(char*)’: sdl_mapper.cpp:547:74: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] sprintf(buf,"%s Axis %d%s",group->BindStart(),axis,positive ? "+" : "-"); ^ sdl_mapper.cpp: In member function ‘virtual void CJButtonBind::ConfigName(char*)’: sdl_mapper.cpp:562:57: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] sprintf(buf,"%s button %d",group->ConfigStart(),button); ^ sdl_mapper.cpp: In member function ‘virtual void CJButtonBind::BindName(char*)’: sdl_mapper.cpp:565:55: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] sprintf(buf,"%s Button %d",group->BindStart(),button); ^ sdl_mapper.cpp: In member function ‘virtual void CJHatBind::ConfigName(char*)’: sdl_mapper.cpp:586:58: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] sprintf(buf,"%s hat %d %d",group->ConfigStart(),hat,dir); ^ sdl_mapper.cpp: In member function ‘virtual void CJHatBind::BindName(char*)’: sdl_mapper.cpp:591:51: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] ((dir==SDL_HAT_DOWN)?"down":"left"))); ^ sdl_mapper.cpp: In constructor ‘CStickBindGroup::CStickBindGroup(Bitu, Bitu, bool)’: sdl_mapper.cpp:606:41: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] sprintf(configname,"stick_%d",emustick); ^ sdl_mapper.cpp:659:111: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] LOG_MSG("Using joystick %s with %d axes, %d buttons and %d hat(s)",SDL_JoystickName(stick),axes,buttons,hats); ^ sdl_mapper.cpp:659:111: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] sdl_mapper.cpp:659:111: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] sdl_mapper.cpp: In member function ‘void CHandlerEvent::MakeDefaultBind(char*)’: sdl_mapper.cpp:1594:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] ); ^ sdl_mapper.cpp: In function ‘CJAxisEvent* AddJAxisButton(Bitu, Bitu, Bitu, Bitu, const char*, Bitu, Bitu, bool, CJAxisEvent*)’: sdl_mapper.cpp:1688:61: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] sprintf(buf,"jaxis_%d_%d%s",stick,axis,positive ? "+" : "-"); ^ sdl_mapper.cpp:1688:61: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] sdl_mapper.cpp: In function ‘CJAxisEvent* AddJAxisButton_hidden(Bitu, Bitu, bool, CJAxisEvent*)’: sdl_mapper.cpp:1695:61: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] sprintf(buf,"jaxis_%d_%d%s",stick,axis,positive ? "+" : "-"); ^ sdl_mapper.cpp:1695:61: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] sdl_mapper.cpp: In function ‘void AddJButtonButton(Bitu, Bitu, Bitu, Bitu, const char*, Bitu, Bitu)’: sdl_mapper.cpp:1701:42: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] sprintf(buf,"jbutton_%d_%d",stick,button); ^ sdl_mapper.cpp:1701:42: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] sdl_mapper.cpp: In function ‘void AddJButtonButton_hidden(Bitu, Bitu)’: sdl_mapper.cpp:1707:42: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] sprintf(buf,"jbutton_%d_%d",stick,button); ^ sdl_mapper.cpp:1707:42: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] sdl_mapper.cpp: In function ‘void AddJHatButton(Bitu, Bitu, Bitu, Bitu, const char*, Bitu, Bitu, Bitu)’: sdl_mapper.cpp:1713:46: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] sprintf(buf,"jhat_%d_%d_%d",_stick,_hat,_dir); ^ sdl_mapper.cpp:1713:46: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] sdl_mapper.cpp:1713:46: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] sdl_mapper.cpp: In function ‘void AddModButton(Bitu, Bitu, Bitu, Bitu, const char*, Bitu)’: sdl_mapper.cpp:1720:27: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] sprintf(buf,"mod_%d",_mod); ^ sdl_mapper.cpp: In function ‘void CreateDefaultBinds()’: sdl_mapper.cpp:2061:80: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] sprintf(buffer,"key_%s \"key %d\"",DefaultKeys[i].eventend,DefaultKeys[i].key); ^ In file included from midi.cpp:91:0: midi_oss.h: In member function ‘virtual void MidiHandler_oss::PlayMsg(Bit8u*)’: midi_oss.h:58:24: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result] write(device,buf,pos); ^ midi_oss.h: In member function ‘virtual void MidiHandler_oss::PlaySysex(Bit8u*, Bitu)’: midi_oss.h:68:24: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result] write(device,buf,pos); ^ sdlmain.cpp: In function ‘void GFX_SetTitle(Bit32s, Bits, bool)’: sdlmain.cpp:239:144: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘Bits {aka long int}’ [-Wformat=] sprintf(title,"DOSBox %s, Cpu speed: max %3d%% cycles, Frameskip %2d, Program: %8s",VERSION,internal_cycles,internal_frameskip,RunningProgram); ^ sdlmain.cpp:241:138: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘Bits {aka long int}’ [-Wformat=] sprintf(title,"DOSBox %s, Cpu speed: %8d cycles, Frameskip %2d, Program: %8s",VERSION,internal_cycles,internal_frameskip,RunningProgram); ^ sdlmain.cpp: In function ‘Bitu GFX_SetSize(Bitu, Bitu, Bitu, double, double, GFX_CallBack_t)’: sdlmain.cpp:443:153: warning: format ‘%i’ expects argument of type ‘int’, but argument 4 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] if (sdl.surface == NULL) E_Exit("Could not set fullscreen video mode %ix%i-%i: %s",sdl.desktop.full.width,sdl.desktop.full.height,bpp,SDL_GetError()); ^ sdlmain.cpp:450:95: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] E_Exit("Could not set fullscreen video mode %ix%i-%i: %s",width,height,bpp,SDL_GetError()); ^ sdlmain.cpp:450:95: warning: format ‘%i’ expects argument of type ‘int’, but argument 3 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] sdlmain.cpp:450:95: warning: format ‘%i’ expects argument of type ‘int’, but argument 4 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] sdlmain.cpp:472:92: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] E_Exit("Could not set windowed video mode %ix%i-%i: %s",width,height,bpp,SDL_GetError()); ^ sdlmain.cpp:472:92: warning: format ‘%i’ expects argument of type ‘int’, but argument 3 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] sdlmain.cpp:472:92: warning: format ‘%i’ expects argument of type ‘int’, but argument 4 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] sdlmain.cpp: In function ‘void show_warning(const char*)’: sdlmain.cpp:1532:16: error: format not a string literal and no format arguments [-Werror=format-security] printf(message); ^ cc1plus: some warnings being treated as errors Makefile:250: recipe for target 'sdlmain.o' failed make[3]: *** [sdlmain.o] Error 1 make[3]: *** Waiting for unfinished jobs.... render.cpp: In function ‘void RENDER_Reset()’: render.cpp:484:55: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] E_Exit("RENDER:Wrong source bpp %d", render.src.bpp ); ^ render.cpp: In function ‘void IncreaseFrameSkip(bool)’: render.cpp:543:49: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] LOG_MSG("Frame Skip at %d",render.frameskip.max); ^ render.cpp: In function ‘void DecreaseFrameSkip(bool)’: render.cpp:551:49: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘Bitu {aka long unsigned int}’ [-Wformat=] LOG_MSG("Frame Skip at %d",render.frameskip.max); ^ sdl_mapper.cpp: In function ‘void MAPPER_StartUp(Section*)’: sdl_mapper.cpp:2388:47: warning: iteration 8ul invokes undefined behavior [-Waggressive-loop-optimizations] virtual_joysticks[0].button_pressed[i]=false; ^ sdl_mapper.cpp:2387:2: note: containing loop for (i=0; i<16; i++) { ^ make[3]: Leaving directory '/var/tmp/portage/games-emulation/dosbox-0.74/work/dosbox-0.74/src/gui' Makefile:328: recipe for target 'all-recursive' failed make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory '/var/tmp/portage/games-emulation/dosbox-0.74/work/dosbox-0.74/src' Makefile:277: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/games-emulation/dosbox-0.74/work/dosbox-0.74' Makefile:215: recipe for target 'all' failed make: *** [all] Error 2 * ERROR: games-emulation/dosbox-0.74::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=games-emulation/dosbox-0.74::gentoo'`, * the complete build log and the output of `emerge -pqv '=games-emulation/dosbox-0.74::gentoo'`. * The complete build log is located at '/var/log/log/build/games-emulation/dosbox-0.74:20150218-111408.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/games-emulation/dosbox-0.74/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/games-emulation/dosbox-0.74/temp/environment'. * Working directory: '/var/tmp/portage/games-emulation/dosbox-0.74/work/dosbox-0.74' * S: '/var/tmp/portage/games-emulation/dosbox-0.74/work/dosbox-0.74'