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

--Sig_/DJB.fzRTrsw8ODHdR6+YXPD
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

v5.33.0-94-g81295a4  Configuration (common) none
----------- ---------------------------------------------------------
F F F F F F=20
F F F F F F -Duse64bitall
F F F F F F -Duseithreads
F F F F F F -Duseithreads -Duse64bitall
| | | | | +- LC_ALL =3D EN_US.UTF-8 -DDEBUGGING
| | | | +--- PERLIO =3D perlio -DDEBUGGING
| | | +----- PERLIO =3D stdio  -DDEBUGGING
| | +------- LC_ALL =3D EN_US.UTF-8
| +--------- PERLIO =3D perlio
+----------- PERLIO =3D stdio=20

Locally applied patches:
    SMOKE81295a42ad856da581d910c540f5bb7a18b8f7e2

Testsuite was run only with 'harness'

Failures: (common-args) none
[stdio/perlio/EN_US.UTF-8]=20
[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
.../cpan/ExtUtils-MakeMaker/t/03-xsstatic.t..................FAILED
    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 ..
1..36
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 -bdy=
namic -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-t=
hread-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
%Config:

perl-git/t > ./perl -I../lib -V:.*lflags
cccdlflags=3D' ';
ccdlflags=3D'  -bE:/pro/lib/perl5/5.33.1/aix-thread-multi-64all/CORE/perl.e=
xp';
lddlflags=3D'-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

--8<---
diff --git a/cpan/ExtUtils-MakeMaker/t/03-xsstatic.t b/cpan/ExtUtils-MakeMa=
ker/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 =3D> "ExtUtils::CBuilder not installed or c=
ouldn't find a compiler"
   unless have_compiler();
 plan skip_all =3D> 'Shared perl library' if $Config{useshrplib} eq 'true';
 plan skip_all =3D> $^O if $^O =3D~ m!^(MSWin32|cygwin|haiku|darwin)$!;
+plan skip_all =3D> 'Skipped as perl.exp is not in scope' if $ENV{PERL_CORE=
} && -s '../../../perl.exp';
 plan skip_all =3D> 'Skipped when not PERL_CORE nor in git repo' unless $EN=
V{PERL_CORE} or $release;
 my @tests =3D list_static();
 plan skip_all =3D> "No tests" unless @tests;
-->8---

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=3D1, Tests=3D0,  1 wallclock secs ( 0.02 usr  0.01 sys +  0.73 cusr  =
0.12 csys =3D  0.88 CPU)
Result: NOTESTS

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

plan skip_all =3D> '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
--=20
H.Merijn Brand  http://tux.nl   Perl Monger  http://amsterdam.pm.org/
using perl5.00307 .. 5.31      porting perl5 on HP-UX, AIX, and Linux
https://useplaintext.email  https://tux.nl  http://www.test-smoke.org
http://qa.perl.org   http://www.goldmark.org/jeff/stupid-disclaimers/

--Sig_/DJB.fzRTrsw8ODHdR6+YXPD
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEGolmczWuFi3lJEbAA6FHoT5dwJgFAl8gb/UACgkQA6FHoT5d
wJhFPQgAq2eZ8VhdVQ0wURt2GMOPrbHmiM72zKKaIP4WLXW1463DcYJ/OwcyNwG7
uxeOsddHlQbkhnNKfJWuXJFoXdRl+bZwttmKzSPbkJSQv+ZC9k1zmvABO/qQRiee
VgxKZXglXMOW8g6P1jGvIlNqmpIiD5nYdjS50XtXjvDIOTRXpp5WipIalMfZYXOp
aOiBiui/r8MaF0wAxBGaeFFfHYPtZclRMdut9oeLxWDRo1sgiDcblNPaxEndX2ub
gZddSUC2IMe/EfkceoaDclDoR5BRG0+pikdwQ92zJ/+lwtUDcGWO8dabeezT3Yze
g3dgeJMoiSMz/aLG0N0aQG/eZkG3wg==
=lg9p
-----END PGP SIGNATURE-----

--Sig_/DJB.fzRTrsw8ODHdR6+YXPD--
0
perl5
7/28/2020 6:35:33 PM
perl.perl5.porters 48174 articles. 1 followers. Follow

2 Replies
17 Views

Similar Articles

[PageSpeed] 11

On Tue, Jul 28, 2020 at 08:35:33PM +0200, H.Merijn Brand wrote:
> 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:
>     SMOKE81295a42ad856da581d910c540f5bb7a18b8f7e2
> 
> Testsuite was run only with 'harness'
> 
> Failures: (common-args) none
> [stdio/perlio/EN_US.UTF-8] 
> [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
> ../cpan/ExtUtils-MakeMaker/t/03-xsstatic.t..................FAILED
>     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 ..
> 1..36
> 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
> %Config:
> 
> 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

Maybe ccdlflags should be using $(PERL_INC) like lddlflags does.

For the in-tree build for an XS module (on Linux anyway) PERL_INC is:

PERL_INC = ../..

Though that would probably need to be an absolute path for these tests.

Have you opened a ticket against EU::MM?

Tony
0
tony
7/29/2020 12:19:39 AM
--Sig_/2xiruXVg_Ykv82.PDgGkuXm
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

On Wed, 29 Jul 2020 10:19:39 +1000, Tony Cook <tony@develop-help.com>
wrote:

> On Tue, Jul 28, 2020 at 08:35:33PM +0200, H.Merijn Brand wrote:
> > 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 =3D EN_US.UTF-8 -DDEBUGGING
> > | | | | +--- PERLIO =3D perlio -DDEBUGGING
> > | | | +----- PERLIO =3D stdio  -DDEBUGGING
> > | | +------- LC_ALL =3D EN_US.UTF-8
> > | +--------- PERLIO =3D perlio
> > +----------- PERLIO =3D stdio=20
> >=20
> > Locally applied patches:
> >     SMOKE81295a42ad856da581d910c540f5bb7a18b8f7e2
> >=20
> > Testsuite was run only with 'harness'
> >=20
> > Failures: (common-args) none
> > [stdio/perlio/EN_US.UTF-8]=20
> > [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
> > ../cpan/ExtUtils-MakeMaker/t/03-xsstatic.t..................FAILED
> >     5, 11, 17, 23, 29, 35
> >     Non-zero exit status: 6
> >=20
> >=20
> > perl-git/t > ./perl harness -v
> > ../cpan/ExtUtils-MakeMaker/t/03-xsstatic.t
> > ../cpan/ExtUtils-MakeMaker/t/03-xsstatic.t .. 1..36
> > ok 1 - setup static
> > ok 2 - chdir'd to XS-Teststatic
> > ok 3 - Makefile.PL exited with zero
> > ok 4 - "make"   exited normally
> > :
> > :
> >=20
> > # 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.
> >=20
> > What happens here is that EU::MM uses the *correct* values stored in
> > %Config:
> >=20
> > perl-git/t > ./perl -I../lib -V:.*lflags
> > cccdlflags=3D' ';
> > ccdlflags=3D'
> > -bE:/pro/lib/perl5/5.33.1/aix-thread-multi-64all/CORE/perl.exp';
> > lddlflags=3D'-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';
> >=20
> > 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 =20
>=20
> Maybe ccdlflags should be using $(PERL_INC) like lddlflags does.

I agree

> For the in-tree build for an XS module (on Linux anyway) PERL_INC is:
>=20
> PERL_INC =3D ../..
>=20
> Though that would probably need to be an absolute path for these
> tests.

That was my point

> Have you opened a ticket against EU::MM?

No, I did not (yet), as I first wanted feedback. EU::MM is a vital
part in the toolchain

> Tony

--=20
H.Merijn Brand  http://tux.nl   Perl Monger  http://amsterdam.pm.org/
using perl5.00307 .. 5.31      porting perl5 on HP-UX, AIX, and Linux
https://useplaintext.email  https://tux.nl  http://www.test-smoke.org
http://qa.perl.org   http://www.goldmark.org/jeff/stupid-disclaimers/

--Sig_/2xiruXVg_Ykv82.PDgGkuXm
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEGolmczWuFi3lJEbAA6FHoT5dwJgFAl8hHr4ACgkQA6FHoT5d
wJhCxwf/ZQocctsF2ArsXIwgvQA1TBbrW7XSyY3jkByOcmJrsqXcvz/bPNSislHu
hvrG3GkDCXTsSBfxa1U+l3xNa+rrVoMU8PagpUvPCHCQcn7IcF5XlkCpBgk9JZCg
/OO3VsDgKarkFy/WRfL393Arq9ax0vKbe+UIwvyMwHsU5Eyw9FNS+oL1p16nOHB3
RwbyK2a+6SYc2VPvnUPSyueeKL1kjCryUGoUmD1jM7SvrK1MavdBdire62RNhdO0
O9+wsjvCoCAjZkABwelAw1jq7lRH3B1FkeR1fR/aEkNb7CShPBQ/ii5mFK2gEjV1
TuXjNWYy/EfQfhnTcv2BQqm+O+sonw==
=mtC+
-----END PGP SIGNATURE-----

--Sig_/2xiruXVg_Ykv82.PDgGkuXm--
0
perl5
7/29/2020 7:01:18 AM
Reply: