Subject: | build failure with Type:Tiny:XS 0.015 (and 0.016?) |
Date: | Thu, 5 Sep 2019 17:27:20 -0400 |
To: | bug-Type-Tiny-XS [...] rt.cpan.org |
From: | Michael Hamlin <pyrrhlin [...] gmail.com> |
howdy,
I noticed a new build failure on an internal project yesterday that
appears to be from the new Type:Tiny:XS release.
The CI for this project is using dzil to build a package, but it's
failing while just trying to get this dependency (command was "dzil
listdeps --missing | cpanm"):
---------------------------------
Searching Type::Tiny::XS () on cpanmetadb ...
--> Working on Type::Tiny::XS
Fetching http://www.cpan.org/authors/id/T/TO/TOBYINK/Type-Tiny-XS-0.015.tar.gz
-> OK
Unpacking Type-Tiny-XS-0.015.tar.gz
Entering Type-Tiny-XS-0.015
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.24)
Configuring Type-Tiny-XS-0.015
Running Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Type::Tiny::XS
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have Test::More 0.92 ... Yes (1.302136)
Building and testing Type-Tiny-XS-0.015
cp lib/Type/Tiny/XS/Util.pm blib/lib/Type/Tiny/XS/Util.pm
cp lib/Type/Tiny/XS.pm blib/lib/Type/Tiny/XS.pm
Running Mkbootstrap for XS ()
chmod 644 "XS.bs"
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- XS.bs
blib/arch/auto/Type/Tiny/XS/XS.bs 644
"/usr/bin/perl" "/usr/share/perl5/core_perl/ExtUtils/xsubpp" -typemap
'/usr/share/perl5/core_perl/ExtUtils/typemap' Util.xs > Util.xsc
mv Util.xsc Util.c
cc -c -I. -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing
-pipe -fstack-protector-strong -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -Os -fomit-frame-pointer -DVERSION=\"0.015\"
-DXS_VERSION=\"0.015\" -fPIC "-I/usr/lib/perl5/core_perl/CORE"
Util.c
"/usr/bin/perl" "/usr/share/perl5/core_perl/ExtUtils/xsubpp" -typemap
'/usr/share/perl5/core_perl/ExtUtils/typemap' XS.xs > XS.xsc
mv XS.xsc XS.c
cc -c -I. -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing
-pipe -fstack-protector-strong -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -Os -fomit-frame-pointer -DVERSION=\"0.015\"
-DXS_VERSION=\"0.015\" -fPIC "-I/usr/lib/perl5/core_perl/CORE" XS.c
XS.xs: In function 'boot_Type__Tiny__XS':
XS.xs:785:5: warning: implicit declaration of function
'boot_Type__Tiny__XS__Util' [-Wimplicit-function-declaration]
boot_Type__Tiny__XS__Util(aTHX_ cv);
^~~~~~~~~~~~~~~~~~~~~~~~~
rm -f blib/arch/auto/Type/Tiny/XS/XS.so
cc -shared -Os -fomit-frame-pointer -L/usr/local/lib
-fstack-protector-strong Util.o XS.o -o
blib/arch/auto/Type/Tiny/XS/XS.so \
\
chmod 755 blib/arch/auto/Type/Tiny/XS/XS.so
Manifying 2 pod documents
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- XS.bs
blib/arch/auto/Type/Tiny/XS/XS.bs 644
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM"
"-MTest::Harness" "-e" "undef *Test::Harness::Switches;
test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01basic.t .............. ok
t/02int.t ................ ok
t/03positiveint.t ........ ok
t/04positiveorzeroint.t .. ok
t/05nonemptystr.t ........ ok
t/06map.t ................ ok
t/07tuple.t .............. ok
t/08enum.t ............... ok
t/09anyof_allof.t ........ ok
t/10bool.t ............... ok
t/99parsing.t ............ ok
t/gh8.t ..................
No subtests run
Test Summary Report
-------------------
t/gh8.t (Wstat: 139 Tests: 0 Failed: 0)
Non-zero wait status: 139
Parse errors: No plan found in TAP output
Files=12, Tests=134, 0 wallclock secs ( 0.04 usr 0.02 sys + 0.60
cusr 0.13 csys = 0.79 CPU)
Result: FAIL
Failed 1/12 test programs. 0/134 subtests failed.
make: *** [Makefile:1042: test_dynamic] Error 255
-> FAIL Installing Type::Tiny::XS failed. See
/root/.cpanm/work/1567627154.3790/build.log for details. Retry with
--force to force install it.
---------------------------------
If I read that correctly, it's segfaulting while trying to run the
gh8.t test. I was able to build the module just fine in my local dev
environment, so it must be something peculiar to the CI environment.
Here's the perl -V from inside this container:
---------------------------------
Summary of my perl5 (revision 5 version 26 subversion 2) configuration:
Platform:
osname=linux
osvers=4.14.39-0-vanilla
archname=x86_64-linux-thread-multi
uname='linux build-3-8-x86_64 4.14.39-0-vanilla #1-alpine smp mon
may 7 11:50:15 utc 2018 x86_64 gnulinux '
config_args='-des -Dcccdlflags=-fPIC -Dcccdlflags=-fPIC
-Dccdlflags=-rdynamic -Dprefix=/usr
-Dprivlib=/usr/share/perl5/core_perl
-Darchlib=/usr/lib/perl5/core_perl -Dvendorprefix=/usr
-Dvendorlib=/usr/share/perl5/vendor_perl
-Dvendorarch=/usr/lib/perl5/vendor_perl -Dsiteprefix=/usr/local
-Dsitelib=/usr/local/share/perl5/site_perl
-Dsitearch=/usr/local/lib/perl5/site_perl -Dlocincpth= -Doptimize=-Os
-fomit-frame-pointer -Duselargefiles -Dusethreads -Duseshrplib
-Dd_semctl_semun -Dman1dir=/usr/share/man/man1
-Dman3dir=/usr/share/man/man3 -Dinstallman1dir=/usr/share/man/man1
-Dinstallman3dir=/usr/share/man/man3 -Dman1ext=1 -Dman3ext=3pm
-Dcf_by=Alpine -Ud_csh -Dusenm'
hint=recommended
useposix=true
d_sigaction=define
useithreads=define
usemultiplicity=define
use64bitint=define
use64bitall=define
uselongdouble=undef
usemymalloc=n
default_inc_excludes_dot=define
bincompat5005=undef
Compiler:
cc='cc'
ccflags ='-D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing
-pipe -fstack-protector-strong -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64'
optimize='-Os -fomit-frame-pointer'
cppflags='-D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing
-pipe -fstack-protector-strong'
ccversion=''
gccversion='6.4.0'
gccosandvers=''
intsize=4
longsize=8
ptrsize=8
doublesize=8
byteorder=12345678
doublekind=3
d_longlong=define
longlongsize=8
d_longdbl=define
longdblsize=16
longdblkind=3
ivtype='long'
ivsize=8
nvtype='double'
nvsize=8
Off_t='off_t'
lseeksize=8
alignbytes=8
prototype=define
Linker and Libraries:
ld='cc'
ldflags =' -fstack-protector-strong -L/usr/local/lib'
libpth=/usr/local/lib /usr/include/fortify /usr/lib /lib/../lib
/usr/lib/../lib /lib
libs=-lpthread -ldl -lm -lcrypt -lutil -lc
perllibs=-lpthread -ldl -lm -lcrypt -lutil -lc
libc=/usr/lib/libc.a
so=so
useshrplib=true
libperl=libperl.so
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs
dlext=so
d_dlsymun=undef
ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5/core_perl/CORE'
cccdlflags='-fPIC'
lddlflags='-shared -Os -fomit-frame-pointer -L/usr/local/lib
-fstack-protector-strong'
Characteristics of this binary (from libperl):
Compile-time options:
HAS_TIMES
MULTIPLICITY
PERLIO_LAYERS
PERL_COPY_ON_WRITE
PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT
PERL_MALLOC_WRAP
PERL_OP_PARENT
PERL_PRESERVE_IVUV
USE_64_BIT_ALL
USE_64_BIT_INT
USE_ITHREADS
USE_LARGE_FILES
USE_LOCALE
USE_LOCALE_COLLATE
USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC
USE_LOCALE_TIME
USE_PERLIO
USE_PERL_ATOF
USE_REENTRANT_API
Built under linux
Compiled at Jun 13 2018 12:09:34
@INC:
/usr/local/lib/perl5/site_perl
/usr/local/share/perl5/site_perl
/usr/lib/perl5/vendor_perl
/usr/share/perl5/vendor_perl
/usr/lib/perl5/core_perl
/usr/share/perl5/core_perl
---------------------------------
The docker image in which these run is built using the following
Dockerfile (the inherited layer is public):
---------------------------------
FROM registry.gitlab.com/rsrchboy/perl-ci/dzil:latest
RUN apk add --update \
perl-xml-parser perl-dbd-pg \
perl-file-slurp perl-dev perl-sub-identify \
gettext
---------------------------------
While running more tests, I just saw there's a new version 0.016, but
it's failing with the same error.
Thanks for looking!
- Michael