Source: dosbox Version: 0.74-3-3 Severity: serious Justification: FTBFS Tags: bookworm sid ftbfs
Hi, During a rebuild of all packages in sid, your package failed to build on amd64. Relevant part (hopefully): > g++ -DHAVE_CONFIG_H -I. -I../../../src/debug -I../.. -I../../../include > -Wdate-time -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL > -D_GNU_SOURCE=1 -D_REENTRANT -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. > -fstack-protector-strong -Wformat -Werror=format-security -mno-ms-bitfields > -c -o debug_win32.o ../../../src/debug/debug_win32.cpp > ../../../src/debug/debug_gui.cpp: In function ‘void DEBUG_RefreshPage(char)’: > ../../../src/debug/debug_gui.cpp:98:26: error: format not a string literal > and no format arguments [-Werror=format-security] > 98 | mvwprintw(dbg.win_out,rem_lines-1, 0, > const_cast<char*>((*i).c_str())); > | > ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ../../../src/debug/debug_gui.cpp:100:42: warning: zero-length gnu_printf > format string [-Wformat-zero-length] > 100 | mvwprintw(dbg.win_out,maxy-1, 0, ""); > | ^~ > ../../../src/debug/debug_gui.cpp: In member function ‘void > LOG::operator()(const char*, ...)’: > ../../../src/debug/debug_gui.cpp:113:27: warning: format ‘%u’ expects > argument of type ‘unsigned int’, but argument 2 has type ‘Bitu’ {aka ‘long > unsigned int’} [-Wformat=] > 113 | DEBUG_ShowMsg("%10u: > %s:%s\n",cycle_count,loggrp[d_type].front,buf); > | ~~~^ ~~~~~~~~~~~ > | | | > | | Bitu {aka long unsigned int} > | unsigned int > | %10lu > ../../../src/debug/debug.cpp: In member function ‘virtual Bitu > DebugPageHandler::readb(PhysPt)’: > ../../../src/debug/debug.cpp:82:9: warning: no return statement in function > returning non-void [-Wreturn-type] > 82 | } > | ^ > ../../../src/debug/debug.cpp: In member function ‘virtual Bitu > DebugPageHandler::readw(PhysPt)’: > ../../../src/debug/debug.cpp:84:9: warning: no return statement in function > returning non-void [-Wreturn-type] > 84 | } > | ^ > ../../../src/debug/debug.cpp: In member function ‘virtual Bitu > DebugPageHandler::readd(PhysPt)’: > ../../../src/debug/debug.cpp:86:9: warning: no return statement in function > returning non-void [-Wreturn-type] > 86 | } > | ^ > ../../../src/debug/debug.cpp: In function ‘bool GetDescriptorInfo(char*, > char*, char*)’: > ../../../src/debug/debug.cpp:198:56: warning: format ‘%X’ expects argument of > type ‘unsigned int’, but argument 4 has type ‘Bitu’ {aka ‘long unsigned int’} > [-Wformat=] > 198 | sprintf(out1,"%s: s:%08X type:%02X > p",selname,desc.GetSelector(),desc.saved.gate.type); > | ~~~^ > ~~~~~~~~~~~~~~~~~~ > | | > | > | unsigned int > Bitu {aka long unsigned int} > | %08lX > ../../../src/debug/debug.cpp:207:56: warning: format ‘%X’ expects argument of > type ‘unsigned int’, but argument 3 has type ‘Bitu’ {aka ‘long unsigned int’} > [-Wformat=] > 207 | sprintf(out2," l:%08X dpl : %01X > %1X%1X%1X",desc.GetLimit(),desc.saved.seg.dpl,desc.saved.seg.p,desc.saved.seg.avl,desc.saved.seg.g); > | ~~~^ > ~~~~~~~~~~~~~~~ > | | > | > | unsigned int > Bitu {aka long unsigned int} > | %08lX > ../../../src/debug/debug.cpp:211:56: warning: format ‘%X’ expects argument of > type ‘unsigned int’, but argument 4 has type ‘Bitu’ {aka ‘long unsigned int’} > [-Wformat=] > 211 | sprintf(out1,"%s: s:%08X type:%02X p > params: > %02X",selname,desc.GetSelector(),desc.saved.gate.type,desc.saved.gate.paramcount); > | ~~~^ > ~~~~~~~~~~~~~~~~~~ > | | > | > | unsigned int > Bitu {aka long unsigned int} > | %08lX > ../../../src/debug/debug.cpp:212:56: warning: format ‘%X’ expects argument of > type ‘unsigned int’, but argument 3 has type ‘Bitu’ {aka ‘long unsigned int’} > [-Wformat=] > 212 | sprintf(out2," o:%08X dpl : %01X > %1X",desc.GetOffset(),desc.saved.gate.dpl,desc.saved.gate.p); > | ~~~^ > ~~~~~~~~~~~~~~~~ > | | > | > | unsigned int > Bitu {aka long unsigned int} > | %08lX > ../../../src/debug/debug.cpp:218:56: warning: format ‘%X’ expects argument of > type ‘unsigned int’, but argument 4 has type ‘Bitu’ {aka ‘long unsigned int’} > [-Wformat=] > 218 | sprintf(out1,"%s: s:%08X type:%02X > p",selname,desc.GetSelector(),desc.saved.gate.type); > | ~~~^ > ~~~~~~~~~~~~~~~~~~ > | | > | > | unsigned int > Bitu {aka long unsigned int} > | %08lX > ../../../src/debug/debug.cpp:219:56: warning: format ‘%X’ expects argument of > type ‘unsigned int’, but argument 3 has type ‘Bitu’ {aka ‘long unsigned int’} > [-Wformat=] > 219 | sprintf(out2," o:%08X dpl : %01X > %1X",desc.GetOffset(),desc.saved.gate.dpl,desc.saved.gate.p); > | ~~~^ > ~~~~~~~~~~~~~~~~ > | | > | > | unsigned int > Bitu {aka long unsigned int} > | %08lX > ../../../src/debug/debug.cpp:223:40: warning: format ‘%X’ expects argument of > type ‘unsigned int’, but argument 3 has type ‘Bitu’ {aka ‘long unsigned int’} > [-Wformat=] > 223 | sprintf(out2," l:%08X dpl : %01X > %1X%1X%1X%1X%1X",desc.GetLimit(),desc.saved.seg.dpl,desc.saved.seg.p,desc.saved.seg.avl,desc.saved.seg.r,desc.saved.seg.big,desc.saved.seg.g); > | ~~~^ > ~~~~~~~~~~~~~~~ > | | > | > | unsigned int > Bitu {aka long unsigned int} > | %08lX > ../../../src/debug/debug.cpp: In function ‘void DrawRegisters()’: > ../../../src/debug/debug.cpp:737:41: warning: format ‘%X’ expects argument of > type ‘unsigned int’, but argument 5 has type ‘Bitu’ {aka ‘long unsigned int’} > [-Wformat=] > 737 | mvwprintw (dbg.win_reg,2,72,"%01X",GETFLAG(IOPL)>>12); > | ~~~^ > | | > | unsigned int > | %01lX > ../../../src/debug/debug.cpp:741:41: warning: format ‘%X’ expects argument of > type ‘unsigned int’, but argument 5 has type ‘Bitu’ {aka ‘long unsigned int’} > [-Wformat=] > 741 | mvwprintw (dbg.win_reg,2,78,"%01X",cpu.cpl); > | ~~~^ ~~~~~~~ > | | | > | | Bitu {aka long > unsigned int} > | unsigned int > | %01lX > ../../../src/debug/debug.cpp:755:44: error: format not a string literal and > no format arguments [-Werror=format-security] > 755 | mvwprintw(dbg.win_reg,2,28,out1); > | ^~~~ > ../../../src/debug/debug.cpp:756:44: error: format not a string literal and > no format arguments [-Werror=format-security] > 756 | mvwprintw(dbg.win_reg,3,28,out2); > | ^~~~ > ../../../src/debug/debug.cpp:760:38: warning: format ‘%u’ expects argument of > type ‘unsigned int’, but argument 5 has type ‘Bitu’ {aka ‘long unsigned int’} > [-Wformat=] > 760 | mvwprintw(dbg.win_reg,3,60,"%u ",cycle_count); > | ~^ ~~~~~~~~~~~ > | | | > | | Bitu {aka long > unsigned int} > | unsigned int > | %lu > ../../../src/debug/debug.cpp: In function ‘void DrawCode()’: > ../../../src/debug/debug.cpp:840:45: warning: too many arguments for format > [-Wformat-extra-args] > 840 | > mvwprintw(dbg.win_code,10,0,"(Running)",codeViewData.inputStr); > | ^~~~~~~~~~~ > ../../../src/debug/debug.cpp: In function ‘void LogGDT()’: > ../../../src/debug/debug.cpp:1771:57: warning: format ‘%X’ expects argument > of type ‘unsigned int’, but argument 4 has type ‘Bitu’ {aka ‘long unsigned > int’} [-Wformat=] > 1771 | LOG(LOG_MISC,LOG_ERROR)("GDT Base:%08X > Limit:%08X",address,length); > | ~~~^ > ~~~~~~ > | | | > | | > Bitu {aka long unsigned int} > | unsigned int > | %08lX > ../../../src/debug/debug.cpp:1774:34: warning: format ‘%X’ expects argument > of type ‘unsigned int’, but argument 3 has type ‘Bitu’ {aka ‘long unsigned > int’} [-Wformat=] > 1774 | sprintf(out1,"%04X: b:%08X type: %02X > parbg",(i<<3),desc.GetBase(),desc.saved.seg.type); > | ~~~^ ~~~~~~ > | | | > | unsigned int Bitu > {aka long unsigned int} > | %04lX > ../../../src/debug/debug.cpp:1776:42: warning: format ‘%X’ expects argument > of type ‘unsigned int’, but argument 3 has type ‘Bitu’ {aka ‘long unsigned > int’} [-Wformat=] > 1776 | sprintf(out1," l:%08X dpl : %01X > %1X%1X%1X%1X%1X",desc.GetLimit(),desc.saved.seg.dpl,desc.saved.seg.p,desc.saved.seg.avl,desc.saved.seg.r,desc.saved.seg.big,desc.saved.seg.g); > | ~~~^ > ~~~~~~~~~~~~~~~ > | | > | > | unsigned int > Bitu {aka long unsigned int} > | %08lX > ../../../src/debug/debug.cpp: In function ‘void LogLDT()’: > ../../../src/debug/debug.cpp:1791:57: warning: format ‘%X’ expects argument > of type ‘unsigned int’, but argument 4 has type ‘Bitu’ {aka ‘long unsigned > int’} [-Wformat=] > 1791 | LOG(LOG_MISC,LOG_ERROR)("LDT Base:%08X > Limit:%08X",address,length); > | ~~~^ > ~~~~~~ > | | | > | | > Bitu {aka long unsigned int} > | unsigned int > | %08lX > ../../../src/debug/debug.cpp:1794:34: warning: format ‘%X’ expects argument > of type ‘unsigned int’, but argument 3 has type ‘Bitu’ {aka ‘long unsigned > int’} [-Wformat=] > 1794 | sprintf(out1,"%04X: b:%08X type: %02X > parbg",(i<<3)|4,desc.GetBase(),desc.saved.seg.type); > | ~~~^ ~~~~~~~~ > | | | > | unsigned int > Bitu {aka long unsigned int} > | %04lX > ../../../src/debug/debug.cpp:1796:42: warning: format ‘%X’ expects argument > of type ‘unsigned int’, but argument 3 has type ‘Bitu’ {aka ‘long unsigned > int’} [-Wformat=] > 1796 | sprintf(out1," l:%08X dpl : %01X > %1X%1X%1X%1X%1X",desc.GetLimit(),desc.saved.seg.dpl,desc.saved.seg.p,desc.saved.seg.avl,desc.saved.seg.r,desc.saved.seg.big,desc.saved.seg.g); > | ~~~^ > ~~~~~~~~~~~~~~~ > | | > | > | unsigned int > Bitu {aka long unsigned int} > | %08lX > ../../../src/debug/debug.cpp: In function ‘void LogIDT()’: > ../../../src/debug/debug.cpp:1808:42: warning: format ‘%X’ expects argument > of type ‘unsigned int’, but argument 3 has type ‘Bitu’ {aka ‘long unsigned > int’} [-Wformat=] > 1808 | sprintf(out1,"%04X: sel:%04X > off:%02X",address/8,desc.GetSelector(),desc.GetOffset()); > | ~~~^ > ~~~~~~~~~ > | | > | > | unsigned int > Bitu {aka long unsigned int} > | %04lX > ../../../src/debug/debug.cpp:1808:52: warning: format ‘%X’ expects argument > of type ‘unsigned int’, but argument 4 has type ‘Bitu’ {aka ‘long unsigned > int’} [-Wformat=] > 1808 | sprintf(out1,"%04X: sel:%04X > off:%02X",address/8,desc.GetSelector(),desc.GetOffset()); > | ~~~^ > ~~~~~~~~~~~~~~~~~~ > | | > | > | unsigned int > Bitu {aka long unsigned int} > | %04lX > ../../../src/debug/debug.cpp:1808:61: warning: format ‘%X’ expects argument > of type ‘unsigned int’, but argument 5 has type ‘Bitu’ {aka ‘long unsigned > int’} [-Wformat=] > 1808 | sprintf(out1,"%04X: sel:%04X > off:%02X",address/8,desc.GetSelector(),desc.GetOffset()); > | ~~~^ > ~~~~~~~~~~~~~~~~ > | | > | > | unsigned > int Bitu {aka long unsigned int} > | %02lX > ../../../src/debug/debug.cpp: In function ‘void LogPages(char*)’: > ../../../src/debug/debug.cpp:1844:55: warning: format ‘%X’ expects argument > of type ‘unsigned int’, but argument 3 has type ‘Bitu’ {aka ‘long unsigned > int’} [-Wformat=] > 1844 | sprintf(out1,"page %05Xxxx -> %04Xxxx > flags [puw] > %x:%x::%x:%x::%x:%x",sel,entry.block.base,entry.block.p,table.block.p,entry.block.us,table.block.us,entry.block.wr,table.block.wr); > | ~~~^ > ~~~ > | | > | > | unsigned int > Bitu {aka long unsigned int} > | %05lX > ../../../src/debug/debug.cpp:1847:60: warning: format ‘%X’ expects argument > of type ‘unsigned int’, but argument 3 has type ‘Bitu’ {aka ‘long unsigned > int’} [-Wformat=] > 1847 | sprintf(out1,"pagetable %03X not > present, flags [puw] %x::%x::%x",(sel >> > 10),table.block.p,table.block.us,table.block.wr); > | ~~~^ > ~~~~~~~~~~~ > | | > | > | unsigned > int Bitu {aka long unsigned int} > | %03lX > ../../../src/debug/debug.cpp: In function ‘void LogCPUInfo()’: > ../../../src/debug/debug.cpp:1856:30: warning: format ‘%X’ expects argument > of type ‘unsigned int’, but argument 3 has type ‘Bitu’ {aka ‘long unsigned > int’} [-Wformat=] > 1856 | sprintf(out1,"cr0:%08X cr2:%08X cr3:%08X > cpl=%x",cpu.cr0,paging.cr2,paging.cr3,cpu.cpl); > | ~~~^ ~~~~~~~ > | | | > | unsigned int Bitu > {aka long unsigned int} > | %08lX > ../../../src/debug/debug.cpp:1856:39: warning: format ‘%X’ expects argument > of type ‘unsigned int’, but argument 4 has type ‘Bitu’ {aka ‘long unsigned > int’} [-Wformat=] > 1856 | sprintf(out1,"cr0:%08X cr2:%08X cr3:%08X > cpl=%x",cpu.cr0,paging.cr2,paging.cr3,cpu.cpl); > | ~~~^ > ~~~~~~~~~~ > | | > | > | unsigned int > Bitu {aka long unsigned int} > | %08lX > ../../../src/debug/debug.cpp:1856:48: warning: format ‘%X’ expects argument > of type ‘unsigned int’, but argument 5 has type ‘Bitu’ {aka ‘long unsigned > int’} [-Wformat=] > 1856 | sprintf(out1,"cr0:%08X cr2:%08X cr3:%08X > cpl=%x",cpu.cr0,paging.cr2,paging.cr3,cpu.cpl); > | ~~~^ > ~~~~~~~~~~ > | | > | > | unsigned int > Bitu {aka long unsigned int} > | %08lX > ../../../src/debug/debug.cpp:1856:56: warning: format ‘%x’ expects argument > of type ‘unsigned int’, but argument 6 has type ‘Bitu’ {aka ‘long unsigned > int’} [-Wformat=] > 1856 | sprintf(out1,"cr0:%08X cr2:%08X cr3:%08X > cpl=%x",cpu.cr0,paging.cr2,paging.cr3,cpu.cpl); > | ~^ > ~~~~~~~ > | | > | > | unsigned int > Bitu {aka long unsigned int} > | %lx > ../../../src/debug/debug.cpp:1858:33: warning: format ‘%X’ expects argument > of type ‘unsigned int’, but argument 3 has type ‘Bitu’ {aka ‘long unsigned > int’} [-Wformat=] > 1858 | sprintf(out1,"eflags:%08X [vm=%x iopl=%x > nt=%x]",reg_flags,GETFLAG(VM)>>17,GETFLAG(IOPL)>>12,GETFLAG(NT)>>14); > | ~~~^ > | | > | unsigned int > | %08lX > ../../../src/debug/debug.cpp:1858:40: warning: format ‘%x’ expects argument > of type ‘unsigned int’, but argument 4 has type ‘Bitu’ {aka ‘long unsigned > int’} [-Wformat=] > 1858 | sprintf(out1,"eflags:%08X [vm=%x iopl=%x > nt=%x]",reg_flags,GETFLAG(VM)>>17,GETFLAG(IOPL)>>12,GETFLAG(NT)>>14); > | ~^ > | | > | unsigned int > | %lx > ../../../src/debug/debug.cpp:1858:48: warning: format ‘%x’ expects argument > of type ‘unsigned int’, but argument 5 has type ‘Bitu’ {aka ‘long unsigned > int’} [-Wformat=] > 1858 | sprintf(out1,"eflags:%08X [vm=%x iopl=%x > nt=%x]",reg_flags,GETFLAG(VM)>>17,GETFLAG(IOPL)>>12,GETFLAG(NT)>>14); > | ~^ > | | > | unsigned int > | %lx > ../../../src/debug/debug.cpp:1858:54: warning: format ‘%x’ expects argument > of type ‘unsigned int’, but argument 6 has type ‘Bitu’ {aka ‘long unsigned > int’} [-Wformat=] > 1858 | sprintf(out1,"eflags:%08X [vm=%x iopl=%x > nt=%x]",reg_flags,GETFLAG(VM)>>17,GETFLAG(IOPL)>>12,GETFLAG(NT)>>14); > | ~^ > | | > | unsigned int > | %lx > ../../../src/debug/debug.cpp:1860:46: warning: format ‘%X’ expects argument > of type ‘unsigned int’, but argument 4 has type ‘Bitu’ {aka ‘long unsigned > int’} [-Wformat=] > 1860 | sprintf(out1,"GDT base=%08X > limit=%08X",cpu.gdt.GetBase(),cpu.gdt.GetLimit()); > | ~~~^ > ~~~~~~~~~~~~~~~~~~ > | | > | > | unsigned int > Bitu {aka long unsigned int} > | %08lX > ../../../src/debug/debug.cpp:1862:46: warning: format ‘%X’ expects argument > of type ‘unsigned int’, but argument 4 has type ‘Bitu’ {aka ‘long unsigned > int’} [-Wformat=] > 1862 | sprintf(out1,"IDT base=%08X > limit=%08X",cpu.idt.GetBase(),cpu.idt.GetLimit()); > | ~~~^ > ~~~~~~~~~~~~~~~~~~ > | | > | > | unsigned int > Bitu {aka long unsigned int} > | %08lX > ../../../src/debug/debug.cpp:1868:46: warning: format ‘%X’ expects argument > of type ‘unsigned int’, but argument 3 has type ‘Bitu’ {aka ‘long unsigned > int’} [-Wformat=] > 1868 | sprintf(out1,"TR selector=%04X, base=%08X > limit=%08X*%X",sel,desc.GetBase(),desc.GetLimit(),desc.saved.seg.g?0x4000:1); > | ~~~^ > ~~~ > | | > | > | unsigned int > Bitu {aka long unsigned int} > | %04lX > ../../../src/debug/debug.cpp:1868:68: warning: format ‘%X’ expects argument > of type ‘unsigned int’, but argument 5 has type ‘Bitu’ {aka ‘long unsigned > int’} [-Wformat=] > 1868 | sprintf(out1,"TR selector=%04X, base=%08X > limit=%08X*%X",sel,desc.GetBase(),desc.GetLimit(),desc.saved.seg.g?0x4000:1); > | ~~~^ > ~~~~~~~~~~~~~~~ > | | > | > | > unsigned int Bitu {aka long unsigned int} > | %08lX > ../../../src/debug/debug.cpp:1873:47: warning: format ‘%X’ expects argument > of type ‘unsigned int’, but argument 3 has type ‘Bitu’ {aka ‘long unsigned > int’} [-Wformat=] > 1873 | sprintf(out1,"LDT selector=%04X, base=%08X > limit=%08X*%X",sel,desc.GetBase(),desc.GetLimit(),desc.saved.seg.g?0x4000:1); > | ~~~^ > ~~~ > | | > | > | unsigned int > Bitu {aka long unsigned int} > | %04lX > ../../../src/debug/debug.cpp:1873:69: warning: format ‘%X’ expects argument > of type ‘unsigned int’, but argument 5 has type ‘Bitu’ {aka ‘long unsigned > int’} [-Wformat=] > 1873 | sprintf(out1,"LDT selector=%04X, base=%08X > limit=%08X*%X",sel,desc.GetBase(),desc.GetLimit(),desc.saved.seg.g?0x4000:1); > | ~~~^ > ~~~~~~~~~~~~~~~ > | | > | > | > unsigned int Bitu {aka long unsigned int} > | %08lX > ../../../src/debug/debug.cpp: In function ‘void LogInstruction(Bit16u, > Bit32u, std::ofstream&)’: > ../../../src/debug/debug.cpp:1905:77: warning: too many arguments for format > [-Wformat-extra-args] > 1905 | if (mem_readb_checked(start+i,&value)) > sprintf(tmpc,"?? ",value); > | > ^~~~~ > ../../../src/debug/debug.cpp: In function ‘void SaveMemory(Bit16u, Bit32u, > Bit32u)’: > ../../../src/debug/debug.cpp:2150:92: warning: too many arguments for format > [-Wformat-extra-args] > 2150 | if > (mem_readb_checked(GetAddress(seg,ofs1+x),&value)) sprintf(temp,"?? ",value); > | > ^~~~~ > ../../../src/debug/debug.cpp:2163:92: warning: too many arguments for format > [-Wformat-extra-args] > 2163 | if > (mem_readb_checked(GetAddress(seg,ofs1+x),&value)) sprintf(temp,"?? ",value); > | > ^~~~~ > ../../../src/debug/debug.cpp: In function ‘void DrawVariables()’: > ../../../src/debug/debug.cpp:2225:60: warning: too many arguments for format > [-Wformat-extra-args] > 2225 | snprintf(buffer,DEBUG_VAR_BUF_LEN, "??????", > value); > | ^~~~~~~~ > ../../../src/debug/debug.cpp:2231:26: error: format not a string literal and > no format arguments [-Werror=format-security] > 2231 | mvwprintw(dbg.win_var, y, x, dv->GetName()); > | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ../../../src/debug/debug.cpp:2232:74: error: format not a string literal and > no format arguments [-Werror=format-security] > 2232 | mvwprintw(dbg.win_var, y, (x + DEBUG_VAR_BUF_LEN + > 1) , buffer); > | > ^~~~~~ > cc1plus: some warnings being treated as errors > make[5]: *** [Makefile:358: debug_gui.o] Error 1 The full build log is available from: http://qa-logs.debian.net/2021/10/23/dosbox_0.74-3-3_unstable.log A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute! If you reassign this bug to another package, please marking it as 'affects'-ing this package. See https://www.debian.org/Bugs/server-control#affects If you fail to reproduce this, please provide a build log and diff it with mine so that we can identify if something relevant changed in the meantime.