Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: op/magic.t fails to build in perl > 5.36.1

by syphilis (Archbishop)
on Jan 26, 2024 at 13:00 UTC ( [id://11157284]=note: print w/replies, xml ) Need Help??

in reply to op/magic.t fails to build in perl > 5.36.1

Apple and macOS are driving me crazy

I don't know what you should do, but it seems to me that Apple/macOS has a long history of being recalcitrant - which is not perl's fault.
OTOH, wrt perl, things are generally fine with both Linux and Windows.

  • Comment on Re: op/magic.t fails to build in perl > 5.36.1

Replies are listed 'Best First'.
Re^2: op/magic.t fails to build in perl > 5.36.1
by perlboy_emeritus (Scribe) on Jan 28, 2024 at 22:15 UTC

    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.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11157284]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-05-22 02:56 GMT
Find Nodes?
    Voting Booth?

    No recent polls found