lundi 13 juillet 2015

How can I fix these failed tests when building perl?

I'm attempting to build perl 5.16.3. However, it's failing at the make test part.

Failed 2 tests out of 2246, 99.91% okay.
    ../cpan/Archive-Extract/t/01_Archive-Extract.t
    ../lib/h2ph.t
### Since not all tests were successful, you may want to run some of
### them individually and examine any diagnostic messages they produce.
### See the INSTALL document's section on "make test".
### You have a good chance to get more information by running
###   ./perl harness
### in the 't' directory since most (>=80%) of the tests succeeded.
### You may have to set your dynamic library search path,
### LD_LIBRARY_PATH, to point to the build directory:
###   setenv LD_LIBRARY_PATH `pwd`; cd t; ./perl harness
###   LD_LIBRARY_PATH=`pwd`; export LD_LIBRARY_PATH; cd t; ./perl harness
###   export LD_LIBRARY_PATH=`pwd`; cd t; ./perl harness
### for csh-style shells, like tcsh; or for traditional/modern
### Bourne-style shells, like bash, ksh, and zsh, respectively.
u=99.10  s=23.36  cu=7851.09  cs=326.70  scripts=2246  tests=528321
makefile:868: recipe for target 'test' failed
make: *** [test] Error 1

I wasn't sure how to deal with the vagueness of may have to set, so I ignored it at first.

$ cd t; ./perl harness ../cpan/Archive-Extract/t/01_Archive-Extract.t ../lib/h2ph.t
...
Test Summary Report
-------------------
../cpan/Archive-Extract/t/01_Archive-Extract.t (Wstat: 39424 Tests: 1704 Failed: 154)
  Failed tests:  87, 89-94, 98, 100-105, 111, 113-118, 122
                124-129, 255, 257-262, 266, 268-273, 495
                497-502, 506, 508-513, 567, 569-574, 578
                580-585, 615, 617-622, 626, 628-633, 711
                713-718, 722, 724-729, 807, 809-814, 818
                820-825, 879, 881-886, 890, 892-897, 903
                905-910, 914, 916-921, 927, 929-934, 938
                940-945
  Non-zero exit status: 154
../lib/h2ph.t                                 (Wstat: 0 Tests: 6 Failed: 2)
  Failed tests:  5-6
Files=2, Tests=1710, 36 wallclock secs ( 3.47 usr  0.23 sys + 17.04 cusr  5.06 csys = 25.80 CPU)
Result: FAIL

I then tried again with cd ..; export LD_LIBRARY_PATH=$(pwd); cd t; ./perl harness ../cpan/Archive-Extract/t/01_Archive-Extract.t ../lib/h2ph.t, but the same tests failed.

How can I build perl without the tests failing?

Aucun commentaire:

Enregistrer un commentaire