Subject: | t/29named_params.t fails due to bad float |
$ /usr/bin/perl Makefile.PL INSTALLDIRS=vendor
Found these python executables on your PATH:
1. /usr/bin/python
Use which? [1] 1
Using /usr/bin/python
Using These Settings:
Extra Libs: -lpthread -ldl -lutil
Python Lib: -L/usr/lib64/python2.7/config -lpython2.7
Includes: -I/usr/include/python2.7
Extra Flags: none (perl Makefile.PL --help for details)
Checking if your kit is complete...
Looks good
Writing Makefile for Inline::Python
$ make -j24
/usr/bin/perl5.12.2 /usr/lib/perl5/5.12.2/ExtUtils/xsubpp -typemap
/usr/lib/perl5/5.12.2/ExtUtils/typemap Python.xs > Python.xsc && mv
Python.xsc Python.c
gcc -c -I/usr/include/python2.7 -D_REENTRANT -D_GNU_SOURCE
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector
--param=ssp-buffer-size=4 -DVERSION=\"0.37\" -DXS_VERSION=\"0.37\"
-fPIC "-I/usr/lib/perl5/5.12.2/x86_64-linux-thread-multi/CORE"
-DEXPOSE_PERL -DCREATE_PYTHON -UCREATE_PERL py2pl.c
gcc -c -I/usr/include/python2.7 -D_REENTRANT -D_GNU_SOURCE
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector
--param=ssp-buffer-size=4 -DVERSION=\"0.37\" -DXS_VERSION=\"0.37\"
-fPIC "-I/usr/lib/perl5/5.12.2/x86_64-linux-thread-multi/CORE"
-DEXPOSE_PERL -DCREATE_PYTHON -UCREATE_PERL perlmodule.c
gcc -c -I/usr/include/python2.7 -D_REENTRANT -D_GNU_SOURCE
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector
--param=ssp-buffer-size=4 -DVERSION=\"0.37\" -DXS_VERSION=\"0.37\"
-fPIC "-I/usr/lib/perl5/5.12.2/x86_64-linux-thread-multi/CORE"
-DEXPOSE_PERL -DCREATE_PYTHON -UCREATE_PERL util.c
Running Mkbootstrap for Inline::Python ()
chmod 644 Python.bs
cp Python.bs blib/arch/auto/Inline/Python/Python.bs
chmod 644 blib/arch/auto/Inline/Python/Python.bs
cp Python.pm blib/lib/Inline/Python.pm
cp Python.pod blib/lib/Inline/Python.pod
gcc -c -I/usr/include/python2.7 -D_REENTRANT -D_GNU_SOURCE
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector
--param=ssp-buffer-size=4 -DVERSION=\"0.37\" -DXS_VERSION=\"0.37\"
-fPIC "-I/usr/lib/perl5/5.12.2/x86_64-linux-thread-multi/CORE"
-DEXPOSE_PERL -DCREATE_PYTHON -UCREATE_PERL Python.c
py2pl.c: In function 'Py2Pl':
py2pl.c:82:9: warning: assignment from incompatible pointer type
perlmodule.c: In function 'PerlSub_call':
perlmodule.c:506:5: warning: passing argument 2 of 'Perl_sv_2mortal'
from incompatible pointer type
/usr/lib/perl5/5.12.2/x86_64-linux-thread-multi/CORE/proto.h:3159:19:
note: expected 'struct SV * const' but argument is of type 'struct AV *'
rm -f blib/arch/auto/Inline/Python/Python.so
LD_RUN_PATH="/usr/lib64/python2.7/config" gcc -shared -O2 -g -pipe
-Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-fstack-protector --param=ssp-buffer-size=4 -L/usr/local/lib64 Python.o
py2pl.o perlmodule.o util.o -o blib/arch/auto/Inline/Python/Python.so \
-L/usr/lib64/python2.7/config -lpython2.7 -lpthread -ldl -lutil \
chmod 755 blib/arch/auto/Inline/Python/Python.so
Manifying blib/man3/Inline::Python.3pm
$ make test
PERL_DL_NONLAZY=1 /usr/bin/perl5.12.2 "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00init.t ............. ok
t/01testpl.t ........... ok
t/02testpl.t ........... ok
t/03parse.t ............ ok
t/04func.t ............. ok
t/05JAxH.t ............. ok
t/06dict.t ............. ok
t/07nherit.t ........... ok
t/08ipyobj.t ........... ok
t/09bind.t ............. ok
t/10pyeval.t ........... ok
t/11factor.t ........... ok
t/12evnodd.t ........... ok
t/13fibbon.t ........... ok
t/14study.t ............ ok
t/15anon.t ............. ok
t/16evalpy.t ........... ok
t/17once.t ............. ok
t/18newclass.t ......... ok
t/19testref.t .......... ok
t/20unicode.t .......... ok
t/21arrayref.t ......... ok
t/22int.t .............. ok
t/23getattr.t .......... ok
t/24getitem.t .......... ok
t/25py_sub.t ........... ok
t/26undef.t ............ ok
t/27pyattrs.t .......... ok
t/28exception.t ........ ok
t/29named_params.t ..... ok
# Failed test at t/30floats.t line 13.
# got: '(0.2,)'
# expected: '(0.20000000000000001,)'
# Failed test at t/30floats.t line 15.
# got: '([0.1, 0.2, 0.3, 0.4],)'
# expected: '([0.10000000000000001, 0.20000000000000001,
0.29999999999999999, 0.40000000000000002],)'
# Failed test at t/30floats.t line 18.
# got: '([0.1, 0.2, 0.3, 0.4],)'
# expected: '([0.10000000000000001, 0.20000000000000001,
0.29999999999999999, 0.40000000000000002],)'
# Failed test at t/30floats.t line 21.
# got: '([0.1, 0.2, 0.3, 0.4],)'
# expected: '([0.10000000000000001, 0.20000000000000001,
0.29999999999999999, 0.40000000000000002],)'
# Looks like you failed 4 tests of 4.
t/30floats.t ...........
Dubious, test returned 4 (wstat 1024, 0x400)
Failed 4/4 subtests
t/31stringification.t .. ok
Test Summary Report
-------------------
t/30floats.t (Wstat: 1024 Tests: 4 Failed: 4)
Failed tests: 1-4
Non-zero exit status: 4
Files=32, Tests=776, 1 wallclock secs ( 0.13 usr 0.02 sys + 1.23 cusr
0.21 csys = 1.59 CPU)
Result: FAIL
Failed 1/32 test programs. 4/776 subtests failed.
make: *** [test_dynamic] Error 255