Subject: | Compile fail |
Date: | Tue, 1 Oct 2019 14:46:03 +0100 |
To: | bug-Lexical-Var [...] rt.cpan.org |
From: | Dave Hodgkinson <davehodg [...] gmail.com> |
I’m trying to run a cpanm for my project on a docker:latest on GitHub. It’s allegedly perl 5.30. L::V fails to compile with:
Building Lexical-Var-0.009 ... Building Lexical-Var
cc -I/usr/local/lib/perl5/5.30.0/x86_64-linux-gnu/CORE -DVERSION="0.009" -DXS_VERSION="0.009" -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/Lexical/Var.o lib/Lexical/Var.c
In file included from /usr/local/lib/perl5/5.30.0/x86_64-linux-gnu/CORE/perl.h:3684,
from lib/Lexical/Var.xs:3:
lib/Lexical/Var.xs: In function 'THX_setup_pad':
/usr/local/lib/perl5/5.30.0/x86_64-linux-gnu/CORE/pad.h:319:32: error: 'SV' {aka 'struct sv'} has no member named 'xpadn_flags'; did you mean 'sv_flags'?
#define PadnameFLAGS(pn) (pn)->xpadn_flags
^~~~~~~~~~~
/usr/local/lib/perl5/5.30.0/x86_64-linux-gnu/CORE/pad.h:319:32: note: in definition of macro 'PadnameFLAGS'
#define PadnameFLAGS(pn) (pn)->xpadn_flags
^~~~~~~~~~~
lib/Lexical/Var.xs:470:2: note: in expansion of macro 'SvPAD_OUR_on'
SvPAD_OUR_on(ourname);
^~~~~~~~~~~~
/usr/local/lib/perl5/5.30.0/x86_64-linux-gnu/CORE/pad.h:321:33: error: 'SV' {aka 'struct sv'} has no member named 'xpadn_ourstash'
#define PadnameOURSTASH(pn) (pn)->xpadn_ourstash
^~
/usr/local/lib/perl5/5.30.0/x86_64-linux-gnu/CORE/pad.h:321:33: note: in definition of macro 'PadnameOURSTASH'
#define PadnameOURSTASH(pn) (pn)->xpadn_ourstash
^~
/usr/local/lib/perl5/5.30.0/x86_64-linux-gnu/CORE/pad.h:349:25: note: in expansion of macro 'PadnameOURSTASH_set'
#define SvOURSTASH_set PadnameOURSTASH_set
^~~~~~~~~~~~~~~~~~~
lib/Lexical/Var.xs:473:2: note: in expansion of macro 'SvOURSTASH_set'
SvOURSTASH_set(ourname, (HV*)SvREFCNT_inc((SV*)stash));
^~~~~~~~~~~~~~
lib/Lexical/Var.xs:67:33: error: 'union _xnvu' has no member named 'xpad_cop_seq'
do { ((XPVNV*)SvANY(sv))->xnv_u.xpad_cop_seq.xlow = val; } while(0)
^
lib/Lexical/Var.xs:474:2: note: in expansion of macro 'COP_SEQ_RANGE_LOW_set'
COP_SEQ_RANGE_LOW_set(ourname, PL_cop_seqmax);
^~~~~~~~~~~~~~~~~~~~~
lib/Lexical/Var.xs:69:33: error: 'union _xnvu' has no member named 'xpad_cop_seq'
do { ((XPVNV*)SvANY(sv))->xnv_u.xpad_cop_seq.xhigh = val; } while(0)
^
lib/Lexical/Var.xs:475:2: note: in expansion of macro 'COP_SEQ_RANGE_HIGH_set'
COP_SEQ_RANGE_HIGH_set(ourname, pad_max());
^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/lib/perl5/5.30.0/x86_64-linux-gnu/CORE/perl.h:5359,
from lib/Lexical/Var.xs:3:
lib/Lexical/Var.xs:477:11: warning: passing argument 1 of 'Perl_av_store' from incompatible pointer type [-Wincompatible-pointer-types]
av_store(padname, ouroffset, ourname);
^~~~~~~
/usr/local/lib/perl5/5.30.0/x86_64-linux-gnu/CORE/embed.h:66:46: note: in definition of macro 'av_store'
#define av_store(a,b,c) Perl_av_store(aTHX_ a,b,c)
^
In file included from /usr/local/lib/perl5/5.30.0/x86_64-linux-gnu/CORE/perl.h:5320,
from lib/Lexical/Var.xs:3:
/usr/local/lib/perl5/5.30.0/x86_64-linux-gnu/CORE/proto.h:243:20: note: expected 'AV *' {aka 'struct av *'} but argument is of type 'PADNAMELIST *' {aka 'struct padnamelist *'}
PERL_CALLCONV SV** Perl_av_store(pTHX_ AV *av, SSize_t key, SV *val);
^~~~~~~~~~~~~
error building lib/Lexical/Var.o from 'lib/Lexical/Var.c' at /usr/local/lib/perl5/5.30.0/ExtUtils/CBuilder/Base.pm line 185.
! Installing Lexical::Sub failed. See /root/.cpanm/work/1569922705.6/build.log for details. Retry with --force to force install it.
—
David Hodgkinson
Perl Developer. DevOps.
daveh@hodgkinson.org
+44 7768 490620
Message body is not shown because it is too large.