• Bug#1066383: virtualjaguar: FTBFS: ./inlines.h:82:20: error: implicit d

    From Lucas Nussbaum@21:1/5 to All on Wed Mar 13 13:10:05 2024
    Source: virtualjaguar
    Version: 2.1.3-2
    Severity: serious
    Justification: FTBFS
    Tags: trixie sid ftbfs
    User: lucas@debian.org
    Usertags: ftbfs-20240313 ftbfs-trixie ftbfs-impfuncdef

    Hi,

    During a rebuild of all packages in sid, your package failed to build
    on amd64.

    This is most likely caused by a change in dpkg 1.22.6, that enabled -Werror=implicit-function-declaration. For more information, see https://wiki.debian.org/qa.debian.org/FTBFS#A2024-03-13_-Werror.3Dimplicit-function-declaration

    Relevant part (hopefully):
    gcc -MMD -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I. -I./obj `sdl-config --cflags` -c obj/cpustbl.c -o obj/
    cpustbl.o
    In file included from obj/cpustbl.c:3:
    ./inlines.h: In function ‘m68k_do_rts’:
    ./inlines.h:82:20: error: implicit declaration of function ‘m68k_read_memory_32’ [-Werror=implicit-function-declaration]
    82 | m68k_setpc(m68k_read_memory_32(m68k_areg(regs, 7)));
    | ^~~~~~~~~~~~~~~~~~~
    ./inlines.h: In function ‘m68k_do_bsr’:
    ./inlines.h:89:9: error: implicit declaration of function ‘m68k_write_memory_32’ [-Werror=implicit-function-declaration]
    89 | m68k_write_memory_32(m68k_areg(regs, 7), oldpc);
    | ^~~~~~~~~~~~~~~~~~~~
    ./inlines.h: In function ‘get_ibyte_prefetch’:
    ./inlines.h:111:25: error: implicit declaration of function ‘m68k_read_memory_8’ [-Werror=implicit-function-declaration]
    111 | #define get_ibyte(o) m68k_read_memory_8(regs.pc + (o) + 1)
    | ^~~~~~~~~~~~~~~~~~
    ./inlines.h:158:16: note: in expansion of macro ‘get_ibyte’
    158 | return get_ibyte(o);
    | ^~~~~~~~~
    ./inlines.h: In function ‘get_iword_prefetch’:
    ./inlines.h:112:25: error: implicit declaration of function ‘m68k_read_memory_16’ [-Werror=implicit-function-declaration]
    112 | #define get_iword(o) m68k_read_memory_16(regs.pc + (o))
    | ^~~~~~~~~~~~~~~~~~~
    ./inlines.h:183:16: note: in expansion of macro ‘get_iword’
    183 | return get_iword(o);
    | ^~~~~~~~~
    cc1: some warnings being treated as errors
    make[2]: *** [Makefile:58: obj/cpustbl.o] Error 1


    The full build log is available from: http://qa-logs.debian.net/2024/03/13/virtualjaguar_2.1.3-2_unstable.log

    All bugs filed during this archive rebuild are listed at: https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240313;users=lucas@debian.org
    or: https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240313&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

    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 mark 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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Sat Apr 13 12:40:01 2024
    Processing control commands:

    tags -1 +patch
    Bug #1066383 [src:virtualjaguar] virtualjaguar: FTBFS: ./inlines.h:82:20: error: implicit declaration of function ‘m68k_read_memory_32’ [-Werror=implicit-function-declaration]
    Added tag(s) patch.

    --
    1066383: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066383
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to Lucas Nussbaum on Sat Apr 13 12:40:01 2024
    Control: tags -1 +patch

    Hi,

    On Wed, 2024-03-13 at 12:46 +0100, Lucas Nussbaum wrote:
    Relevant part (hopefully):
    gcc -MMD -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I. -I./obj `sdl-config --cflags` -c obj/cpustbl.c -o obj/
    cpustbl.o
    In file included from obj/cpustbl.c:3:
    ./inlines.h: In function ‘m68k_do_rts’:
    ./inlines.h:82:20: error: implicit declaration of function ‘m68k_read_memory_32’ [-Werror=implicit-function-declaration]
    82 | m68k_setpc(m68k_read_memory_32(m68k_areg(regs, 7)));
    | ^~~~~~~~~~~~~~~~~~~
    ./inlines.h: In function ‘m68k_do_bsr’:
    ./inlines.h:89:9: error: implicit declaration of function ‘m68k_write_memory_32’ [-Werror=implicit-function-declaration]
    89 | m68k_write_memory_32(m68k_areg(regs, 7), oldpc);
    | ^~~~~~~~~~~~~~~~~~~~
    ./inlines.h: In function ‘get_ibyte_prefetch’:
    ./inlines.h:111:25: error: implicit declaration of function ‘m68k_read_memory_8’ [-Werror=implicit-function-declaration]
    111 | #define get_ibyte(o) m68k_read_memory_8(regs.pc + (o) + 1)
    | ^~~~~~~~~~~~~~~~~~
    ./inlines.h:158:16: note: in expansion of macro ‘get_ibyte’
    158 | return get_ibyte(o);
    | ^~~~~~~~~
    ./inlines.h: In function ‘get_iword_prefetch’:
    ./inlines.h:112:25: error: implicit declaration of function ‘m68k_read_memory_16’ [-Werror=implicit-function-declaration]
    112 | #define get_iword(o) m68k_read_memory_16(regs.pc + (o))
    | ^~~~~~~~~~~~~~~~~~~
    ./inlines.h:183:16: note: in expansion of macro ‘get_iword’
    183 | return get_iword(o);
    | ^~~~~~~~~
    cc1: some warnings being treated as errors
    make[2]: *** [Makefile:58: obj/cpustbl.o] Error 1

    Thanks for the bug report! The attached patch fixes the problem for me. I'm going to upload
    an updated packages soon which will also include fixes for #1038585 [1].

    Adrian

    [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1038585

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer
    `. `' Physicist
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    RnJvbSBkMGM2OTllMGM2YTA3ODFhNmRkMmY4OTQ5MmIzOGY5YTFkNTBmYTljIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBKb2huIFBhdWwgQWRyaWFuIEdsYXViaXR6IDxnbGF1Yml0ekBz dXNlLmNvbT4KRGF0ZTogU2F0LCAxMyBBcHIgMjAyNCAxMToxODozOCArMDIwMApTdWJqZWN0OiBb UEFUQ0hdIEZpeCBtaXNzaW5nIGluY2x1c2lvbiBvZiBtNjhraW50ZXJmYWNlLmggaW4KIHNyYy9t NjgwMDAvaW5saW5lcy5oCgotLS0KIHNyYy9tNjgwMDAvaW5saW5lcy5oIHwgMSArCiAxIGZpbGUg Y2hhbmdlZCwgMSBpbnNlcnRpb24oKykKCmRpZmYgLS1naXQgYS9zcmMvbTY4MDAwL2lubGluZXMu aCBiL3NyYy9tNjgwMDAvaW5saW5lcy5oCmluZGV4IDU0ZGU5MzIuLmMwMzdiZDkgMTAwNjQ0Ci0t LSBhL3NyYy9tNjgwMDAvaW5saW5lcy5oCisrKyBiL3NyYy9tNjgwMDAvaW5saW5lcy5oCkBAIC0x MSw2ICsxMSw3IEBACiAjZGVmaW5lIF9fSU5MSU5FU19IX18KIAogI2luY2x1ZGUgImNwdWRlZnMu aCIKKyNpbmNsdWRlICJtNjhraW50ZXJmYWNlLmgiCiAKIFNUQVRJQ19JTkxJTkUgaW50IGNjdHJ1 ZShjb25zdCBpbnQgY2MpCiB7Ci0tIAoyLjQ0LjAKCg==

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet