Hot damn! I figured it out! In studying t/op/magic.t, the failing tests when I build 5.36.3 and 5.38.2, or even 5.30.3, to find a version of Perl that works with PDL-2.084, are focused on various ways to manipulate %ENV. An interesting key is {__NoNeSuCh} which I assume is deep in perlguts and relates to how $0 gets set. The test does `env` but in my infinite wisdom I wrote my own env command and placed it forward of /usr/bin/env, the native env in macOS/Linux. Obviously, now it's clear that mine does not run early enough in process creation, so it fails to capture the true environment needed for those tests to run successfully. When I remove access to my env and let perlbrew use macOS env, those tests pass 100% correctly. Boy, it's really easy to shoot oneself in the foot :-( My apologies to all monks who wasted their valuable time looking at this classic example of pilot error. I will now revisit building PDL.


In reply to Re^2: op/magic.t fails to build in perl > 5.36.1 by perlboy_emeritus
in thread op/magic.t fails to build in perl > 5.36.1 by perlboy_emeritus

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.