[Pkg-electronics-devel] Bug#1009416: fungw: FTBFS: perl.h:736:25: error: expected expression before ‘do’

Lucas Nussbaum lucas at debian.org
Tue Apr 12 18:45:44 BST 2022


Source: fungw
Version: 1.2.0-4
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220412 ftbfs-bookworm

Hi,

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


Relevant part (hopefully):
> cc -c -Wall -g -I../../ -I../../src_3rd -fPIC -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I/usr/lib/x86_64-linux-gnu/perl/5.34/CORE -o fungw_perl.o fungw_perl.c
> In file included from fungw_perl.c:28:
> fungw_perl.c: In function ‘fgws_perl_call_fgw’:
> /usr/lib/x86_64-linux-gnu/perl/5.34/CORE/perl.h:736:25: error: expected expression before ‘do’
>   736 | #   define STMT_START   do
>       |                         ^~
> /usr/lib/x86_64-linux-gnu/perl/5.34/CORE/XSUB.h:340:24: note: in expansion of macro ‘STMT_START’
>   340 | #define XSRETURN_EMPTY STMT_START {                XSRETURN(0); } STMT_END
>       |                        ^~~~~~~~~~
> fungw_perl.c:127:24: note: in expansion of macro ‘XSRETURN_EMPTY’
>   127 |                 return XSRETURN_EMPTY;
>       |                        ^~~~~~~~~~~~~~
> /usr/lib/x86_64-linux-gnu/perl/5.34/CORE/perl.h:736:25: warning: ‘return’ with a value, in function returning void [-Wreturn-type]
>   736 | #   define STMT_START   do
>       |                         ^~
> /usr/lib/x86_64-linux-gnu/perl/5.34/CORE/XSUB.h:340:24: note: in expansion of macro ‘STMT_START’
>   340 | #define XSRETURN_EMPTY STMT_START {                XSRETURN(0); } STMT_END
>       |                        ^~~~~~~~~~
> fungw_perl.c:127:24: note: in expansion of macro ‘XSRETURN_EMPTY’
>   127 |                 return XSRETURN_EMPTY;
>       |                        ^~~~~~~~~~~~~~
> In file included from fungw_perl.c:29:
> fungw_perl.c:94:11: note: declared here
>    94 | static XS(fgws_perl_call_fgw)
>       |           ^~~~~~~~~~~~~~~~~~
> /usr/lib/x86_64-linux-gnu/perl/5.34/CORE/XSUB.h:149:34: note: in definition of macro ‘XS_EXTERNAL’
>   149 | #  define XS_EXTERNAL(name) void name(pTHX_ CV* cv __attribute__unused__)
>       |                                  ^~~~
> fungw_perl.c:94:8: note: in expansion of macro ‘XS’
>    94 | static XS(fgws_perl_call_fgw)
>       |        ^~
> In file included from fungw_perl.c:28:
> /usr/lib/x86_64-linux-gnu/perl/5.34/CORE/perl.h:736:25: error: expected expression before ‘do’
>   736 | #   define STMT_START   do
>       |                         ^~
> /usr/lib/x86_64-linux-gnu/perl/5.34/CORE/XSUB.h:340:24: note: in expansion of macro ‘STMT_START’
>   340 | #define XSRETURN_EMPTY STMT_START {                XSRETURN(0); } STMT_END
>       |                        ^~~~~~~~~~
> fungw_perl.c:148:24: note: in expansion of macro ‘XSRETURN_EMPTY’
>   148 |                 return XSRETURN_EMPTY;
>       |                        ^~~~~~~~~~~~~~
> /usr/lib/x86_64-linux-gnu/perl/5.34/CORE/perl.h:736:25: warning: ‘return’ with a value, in function returning void [-Wreturn-type]
>   736 | #   define STMT_START   do
>       |                         ^~
> /usr/lib/x86_64-linux-gnu/perl/5.34/CORE/XSUB.h:340:24: note: in expansion of macro ‘STMT_START’
>   340 | #define XSRETURN_EMPTY STMT_START {                XSRETURN(0); } STMT_END
>       |                        ^~~~~~~~~~
> fungw_perl.c:148:24: note: in expansion of macro ‘XSRETURN_EMPTY’
>   148 |                 return XSRETURN_EMPTY;
>       |                        ^~~~~~~~~~~~~~
> In file included from fungw_perl.c:29:
> fungw_perl.c:94:11: note: declared here
>    94 | static XS(fgws_perl_call_fgw)
>       |           ^~~~~~~~~~~~~~~~~~
> /usr/lib/x86_64-linux-gnu/perl/5.34/CORE/XSUB.h:149:34: note: in definition of macro ‘XS_EXTERNAL’
>   149 | #  define XS_EXTERNAL(name) void name(pTHX_ CV* cv __attribute__unused__)
>       |                                  ^~~~
> fungw_perl.c:94:8: note: in expansion of macro ‘XS’
>    94 | static XS(fgws_perl_call_fgw)
>       |        ^~
> In file included from fungw_perl.c:28:
> /usr/lib/x86_64-linux-gnu/perl/5.34/CORE/perl.h:736:25: error: expected expression before ‘do’
>   736 | #   define STMT_START   do
>       |                         ^~
> /usr/lib/x86_64-linux-gnu/perl/5.34/CORE/XSUB.h:325:5: note: in expansion of macro ‘STMT_START’
>   325 |     STMT_START {                                        \
>       |     ^~~~~~~~~~
> fungw_perl.c:156:16: note: in expansion of macro ‘XSRETURN’
>   156 |         return XSRETURN(1);
>       |                ^~~~~~~~
> /usr/lib/x86_64-linux-gnu/perl/5.34/CORE/perl.h:736:25: warning: ‘return’ with a value, in function returning void [-Wreturn-type]
>   736 | #   define STMT_START   do
>       |                         ^~
> /usr/lib/x86_64-linux-gnu/perl/5.34/CORE/XSUB.h:325:5: note: in expansion of macro ‘STMT_START’
>   325 |     STMT_START {                                        \
>       |     ^~~~~~~~~~
> fungw_perl.c:156:16: note: in expansion of macro ‘XSRETURN’
>   156 |         return XSRETURN(1);
>       |                ^~~~~~~~
> In file included from fungw_perl.c:29:
> fungw_perl.c:94:11: note: declared here
>    94 | static XS(fgws_perl_call_fgw)
>       |           ^~~~~~~~~~~~~~~~~~
> /usr/lib/x86_64-linux-gnu/perl/5.34/CORE/XSUB.h:149:34: note: in definition of macro ‘XS_EXTERNAL’
>   149 | #  define XS_EXTERNAL(name) void name(pTHX_ CV* cv __attribute__unused__)
>       |                                  ^~~~
> fungw_perl.c:94:8: note: in expansion of macro ‘XS’
>    94 | static XS(fgws_perl_call_fgw)
>       |        ^~
> In file included from fungw_perl.c:28:
> fungw_perl.c: In function ‘fgws_perl_func_reg’:
> /usr/lib/x86_64-linux-gnu/perl/5.34/CORE/perl.h:736:25: error: expected expression before ‘do’
>   736 | #   define STMT_START   do
>       |                         ^~
> /usr/lib/x86_64-linux-gnu/perl/5.34/CORE/XSUB.h:325:5: note: in expansion of macro ‘STMT_START’
>   325 |     STMT_START {                                        \
>       |     ^~~~~~~~~~
> fungw_perl.c:258:16: note: in expansion of macro ‘XSRETURN’
>   258 |         return XSRETURN(1);
>       |                ^~~~~~~~
> /usr/lib/x86_64-linux-gnu/perl/5.34/CORE/perl.h:736:25: warning: ‘return’ with a value, in function returning void [-Wreturn-type]
>   736 | #   define STMT_START   do
>       |                         ^~
> /usr/lib/x86_64-linux-gnu/perl/5.34/CORE/XSUB.h:325:5: note: in expansion of macro ‘STMT_START’
>   325 |     STMT_START {                                        \
>       |     ^~~~~~~~~~
> fungw_perl.c:258:16: note: in expansion of macro ‘XSRETURN’
>   258 |         return XSRETURN(1);
>       |                ^~~~~~~~
> In file included from fungw_perl.c:29:
> fungw_perl.c:236:11: note: declared here
>   236 | static XS(fgws_perl_func_reg)
>       |           ^~~~~~~~~~~~~~~~~~
> /usr/lib/x86_64-linux-gnu/perl/5.34/CORE/XSUB.h:149:34: note: in definition of macro ‘XS_EXTERNAL’
>   149 | #  define XS_EXTERNAL(name) void name(pTHX_ CV* cv __attribute__unused__)
>       |                                  ^~~~
> fungw_perl.c:236:8: note: in expansion of macro ‘XS’
>   236 | static XS(fgws_perl_func_reg)
>       |        ^~
> fungw_perl.c: In function ‘fgws_perl_init’:
> fungw_perl.c:286:37: warning: assignment to ‘XPV *’ {aka ‘struct xpv *’} from incompatible pointer type ‘perl_ctx_t *’ [-Wincompatible-pointer-types]
>   286 |         ctx->interp->perl_user_data = ctx;
>       |                                     ^
> make[3]: *** [Makefile:36: fungw_perl.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2022/04/12/fungw_1.2.0-4_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220412;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220412&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 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.



More information about the Pkg-electronics-devel mailing list