Subject: | Does not compile (0.02) |
I see the following compilation failures on all my smoker systems (various Linux and FreeBSD systems):
Either:
cc -I/usr/perl5.16.3t/lib/5.16.3/amd64-freebsd-thread-multi/CORE -DVERSION="0.02" -DXS_VERSION="0.02" -DPIC -fPIC -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -O -o lib/Future/AsyncAwait.o lib/Future/AsyncAwait.c
lib/Future/AsyncAwait.xs: In function 'Perl_suspendedstate_suspend':
lib/Future/AsyncAwait.xs:86: error: 'PERL_CONTEXT' has no member named 'blk_oldsaveix'
lib/Future/AsyncAwait.xs: In function 'Perl_suspendedstate_resume':
lib/Future/AsyncAwait.xs:129: error: 'for' loop initial declaration used outside C99 mode
lib/Future/AsyncAwait.xs:137: warning: assignment makes pointer from integer without a cast
lib/Future/AsyncAwait.xs: In function 'future_done_from_stack':
lib/Future/AsyncAwait.xs:172: error: 'for' loop initial declaration used outside C99 mode
lib/Future/AsyncAwait.xs: In function 'pp_await':
lib/Future/AsyncAwait.xs:355: error: invalid type argument of '->'
lib/Future/AsyncAwait.xs: In function 'async_keyword_plugin':
lib/Future/AsyncAwait.xs:501: warning: assignment makes pointer from integer without a cast
error building lib/Future/AsyncAwait.o from 'lib/Future/AsyncAwait.c' at /usr/perl5.16.3t/lib/site_perl/5.16.3/ExtUtils/CBuilder/Base.pm line 173.
Or:
cc -I/opt/perl-5.24.1/lib/5.24.1/x86_64-linux/CORE -DVERSION="0.02" -DXS_VERSION="0.02" -fPIC -c -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -o lib/Future/AsyncAwait.o lib/Future/AsyncAwait.c
lib/Future/AsyncAwait.xs: In function âPerl_suspendedstate_resumeâ:
lib/Future/AsyncAwait.xs:129:3: error: âforâ loop initial declarations are only allowed in C99 or C11 mode
for(SuspendedFrame *frame = state->frames, *next; frame; frame = next) {
^
lib/Future/AsyncAwait.xs:129:3: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
lib/Future/AsyncAwait.xs: In function âfuture_done_from_stackâ:
lib/Future/AsyncAwait.xs:172:3: error: âforâ loop initial declarations are only allowed in C99 or C11 mode
for (SV **svp = SP; svp >= bottom; svp--) {
^
error building lib/Future/AsyncAwait.o from 'lib/Future/AsyncAwait.c' at /opt/perl-5.24.1/lib/5.24.1/ExtUtils/CBuilder/Base.pm line 174.