develooper Front page | perl.perl5.porters | Postings from July 2020

AIX =?UTF-8?B?LeKGkg==?= green

Thread Next
H.Merijn Brand
July 28, 2020 18:35
AIX =?UTF-8?B?LeKGkg==?= green
Message ID:
v5.33.0-94-g81295a4  Configuration (common) none
----------- ---------------------------------------------------------
F F F F F F 
F F F F F F -Duse64bitall
F F F F F F -Duseithreads
F F F F F F -Duseithreads -Duse64bitall
| | | | | +- LC_ALL = EN_US.UTF-8 -DDEBUGGING
| | | | +--- PERLIO = perlio -DDEBUGGING
| | | +----- PERLIO = stdio  -DDEBUGGING
| | +------- LC_ALL = EN_US.UTF-8
| +--------- PERLIO = perlio
+----------- PERLIO = stdio 

Locally applied patches:

Testsuite was run only with 'harness'

Failures: (common-args) none
[stdio/perlio/EN_US.UTF-8] -DDEBUGGING
[stdio/perlio/EN_US.UTF-8] -Duse64bitall
[stdio/perlio/EN_US.UTF-8] -DDEBUGGING -Duse64bitall
[stdio/perlio/EN_US.UTF-8] -Duseithreads
[stdio/perlio/EN_US.UTF-8] -DDEBUGGING -Duseithreads
[stdio/perlio/EN_US.UTF-8] -Duseithreads -Duse64bitall
[stdio/perlio/EN_US.UTF-8] -DDEBUGGING -Duseithreads -Duse64bitall
    5, 11, 17, 23, 29, 35
    Non-zero exit status: 6

perl-git/t > ./perl harness -v ../cpan/ExtUtils-MakeMaker/t/03-xsstatic.t
../cpan/ExtUtils-MakeMaker/t/03-xsstatic.t ..
ok 1 - setup static
ok 2 - chdir'd to XS-Teststatic
ok 3 - Makefile.PL exited with zero
ok 4 - "make"   exited normally

# xlc_r -q64 -L/usr/local/ppc64/lib64 -b64 -q64 -L/pro/local/lib -brtl -bdynamic -b64 -bE:/pro/lib/perl5/5.33.1/aix-thread-multi-64all/CORE/../../../../perl.exp Test.o -O ./perlmain.o -o perl "blib/arch/auto/XS/Test/Test.a" "../../../../libperl.a" `cat blib/arch/auto/XS/Test/extralibs.all` -lpthread -lbind -lnsl -ldl -lld -lm -lcrypt -lpthreads -lc
# ld: 0706-004 Cannot find or read export file: /pro/lib/perl5/5.33.1/aix-thread-multi-64all/CORE/../../../../perl.exp
#       ld:accessx(): A file or directory in the path name does not exist.

What happens here is that EU::MM uses the *correct* values stored in

perl-git/t > ./perl -I../lib -V:.*lflags
cccdlflags=' ';
ccdlflags='  -bE:/pro/lib/perl5/5.33.1/aix-thread-multi-64all/CORE/perl.exp';
lddlflags='-b64 -bhalt:4 -G -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -bnoentry -lpthreads -lc -lm -L/usr/local/ppc64/lib64 -L/pro/local/lib';

but these values take affect *after* installation. At the moment this
test runs, perl.exp still resides at top-level, and for sure not (yet)
in its final location. Therefor I suggest

diff --git a/cpan/ExtUtils-MakeMaker/t/03-xsstatic.t b/cpan/ExtUtils-MakeMaker/t/03-xsstatic.t
index faf56e3..4bacb26 100644
--- a/cpan/ExtUtils-MakeMaker/t/03-xsstatic.t
+++ b/cpan/ExtUtils-MakeMaker/t/03-xsstatic.t
@@ -20,6 +20,7 @@ plan skip_all => "ExtUtils::CBuilder not installed or couldn't find a compiler"
   unless have_compiler();
 plan skip_all => 'Shared perl library' if $Config{useshrplib} eq 'true';
 plan skip_all => $^O if $^O =~ m!^(MSWin32|cygwin|haiku|darwin)$!;
+plan skip_all => 'Skipped as perl.exp is not in scope' if $ENV{PERL_CORE} && -s '../../../perl.exp';
 plan skip_all => 'Skipped when not PERL_CORE nor in git repo' unless $ENV{PERL_CORE} or $release;
 my @tests = list_static();
 plan skip_all => "No tests" unless @tests;

perl-git/t > ./perl harness -v ../cpan/ExtUtils-MakeMaker/t/03-xsstatic.t
../cpan/ExtUtils-MakeMaker/t/03-xsstatic.t ..
1..0 # SKIP Skipped as perl.exp is not in scope
skipped: Skipped as perl.exp is not in scope
Files=1, Tests=0,  1 wallclock secs ( 0.02 usr  0.01 sys +  0.73 cusr  0.12 csys =  0.88 CPU)

FWIW At the moment "aix" is the only (documented) system that uses
perl.exp, so

plan skip_all => 'Skipped as perl.exp is not in scope' if $ENV{PERL_CORE} && $^O eq "aix";

is a good alternative to get the smokes back to GREEN

p.s. the best fix would be to replace PERL_INC in Makefile.PL's of these
tests to be the top-level of the source tree, but I found that too much
of a swamp to wade through to warrent a real fix
H.Merijn Brand   Perl Monger
using perl5.00307 .. 5.31      porting perl5 on HP-UX, AIX, and Linux

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About