<div dir="ltr">For what it's worth, after updating to Big Sur, I also updated the Xcode command-line tools, then used perlbrew to install Perl 5.32 in my home directory, with all new modules too.<div><br></div><div>The system perl in MacOS /usr/bin went from 5.18 to 5.28, will make a difference if your local::lib was compiled against that.</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">-y<br></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 12, 2021 at 1:40 AM David Christensen <<a href="mailto:dpchrist@holgerdanske.com">dpchrist@holgerdanske.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">On 2021-02-11 21:51, Joseph Brenner wrote:<br>
<br>
> On 2/11/21, David Christensen wrote:<br>
<br>
>> 2021-02-11 20:21:48 dpchrist@MacBook-Pro ~/MacOS-Foo $ perl<br>
>> Makefile.PL Checking if your kit is complete... Segmentation fault:<br>
>> 11<br>
<br>
> That sounds pretty crazy...<br>
> <br>
> Are familiar with the perl debugger?  You could try running with<br>
> "perl -d", then single stepping ("n" or maybe "s") repeatedly to<br>
> narrow down where it's segfaulting.<br>
> <br>
> A random thought: you could try initializing the module differently, <br>
> rather than using h2xs.   Or try basing it on something besides <br>
> ExtUtils::Makemaker?<br>
<br>
Thanks for the ideas.  :-)<br>
<br>
<br>
Using the Perl debugger, entering 's', and then leaning on the <Enter> <br>
key for 1 minute 5 seconds:<br>
<br>
...<br>
Carp::ret_backtrace(/System/Library/Perl/5.28/Carp.pm:625):<br>
625:        return $mess;<br>
   DB<1><br>
Signal SEGV at <br>
/Users/dpchrist/perl5/lib/perl5/darwin-thread-multi-2level/List/Util.pm <br>
line 23.<br>
        require List/Util.pm called at <br>
/Users/dpchrist/perl5/lib/perl5/darwin-thread-multi-2level/Scalar/Util.pm line <br>
23<br>
        require Scalar/Util.pm called at (eval <br>
29)[/System/Library/Perl/5.28/File/Copy.pm:18] line 1<br>
        eval ' require Scalar::Util; require overload; 1 ' called at <br>
/System/Library/Perl/5.28/File/Copy.pm line 18<br>
        require File/Copy.pm called at <br>
/Users/dpchrist/perl5/lib/perl5/ExtUtils/Manifest.pm line 6<br>
        ExtUtils::Manifest::BEGIN() called at <br>
/Users/dpchrist/perl5/lib/perl5/darwin-thread-multi-2level/List/Util.pm <br>
line 0<br>
        eval {...} called at <br>
/Users/dpchrist/perl5/lib/perl5/darwin-thread-multi-2level/List/Util.pm <br>
line 0<br>
        require ExtUtils/Manifest.pm called at <br>
/Users/dpchrist/perl5/lib/perl5/ExtUtils/MakeMaker.pm line 1040<br>
        ExtUtils::MakeMaker::check_manifest() called at <br>
/Users/dpchrist/perl5/lib/perl5/ExtUtils/MakeMaker.pm line 508<br>
        ExtUtils::MakeMaker::new("MM", MM=HASH(0x7ff6938f1150)) called at <br>
/Users/dpchrist/perl5/lib/perl5/ExtUtils/MakeMaker.pm line 77<br>
        ExtUtils::MakeMaker::WriteMakefile("NAME", "MacOS::Foo", <br>
"VERSION_FROM", "lib/MacOS/Foo.pm", "PREREQ_PM", HASH(0x7ff694018848), <br>
"ABSTRACT_FROM", "lib/MacOS/Foo.pm", ...) called at Makefile.PL line 5<br>
Abort trap: 6<br>
<br>
<br>
So, it blows up when Carp::ret_backtrace tries to return.  I don't know <br>
what to do with that...<br>
<br>
<br>
I initially discovered this when I attempted to build my code.  I did <br>
the h2xs(1) to see if it was Perl or my Makefile.PL.<br>
<br>
<br>
ExtUtils::MakeMaker is fundamental to Perl.  If that's broke, Perl is <br>
broke AFAIC.<br>
<br>
<br>
Next idea -- blow away ~/perl5 (created by local::lib), log out, log in, <br>
and try again:<br>
<br>
2021-02-11 22:16:30 dpchrist@MacBook-Pro ~/MacOS-Foo<br>
$ cd<br>
<br>
2021-02-11 22:19:01 dpchrist@MacBook-Pro ~<br>
$ rm -rf perl5<br>
<br>
2021-02-11 22:19:16 dpchrist@MacBook-Pro ~<br>
$ exit<br>
logout<br>
Connection to dpchrist-mbp closed.<br>
<br>
2021-02-11 22:27:17 dpchrist@tinkywinky ~<br>
$ ssh dpchrist-mbp<br>
Last login: Thu Feb 11 22:20:29 2021 from 192.168.5.74<br>
Attempting to create directory /Users/dpchrist/perl5<br>
-bash: /Users/dpchrist/perl5/perlbrew/etc/bashrc: No such file or directory<br>
<br>
The default interactive shell is now zsh.<br>
To update your account to use zsh, please run `chsh -s /bin/zsh`.<br>
For more details, please visit <a href="https://support.apple.com/kb/HT208050" rel="noreferrer" target="_blank">https://support.apple.com/kb/HT208050</a>.<br>
<br>
2021-02-11 22:27:21 dpchrist@MacBook-Pro ~<br>
$ cd MacOS-Foo/<br>
<br>
2021-02-11 22:27:24 dpchrist@MacBook-Pro ~/MacOS-Foo<br>
$ make realclean<br>
<br>
2021-02-11 22:27:26 dpchrist@MacBook-Pro ~/MacOS-Foo<br>
$ perl Makefile.PL<br>
Checking if your kit is complete...<br>
Looks good<br>
Generating a Unix-style Makefile<br>
Writing Makefile for MacOS::Foo<br>
Writing MYMETA.yml and MYMETA.json<br>
<br>
<br>
So, it was something in ~/perl5.<br>
<br>
<br>
Now I need to reinstall CPAN modules required to build my code.  We'll <br>
see if I run into the module that breaks ExtUtils::MakeMaker...<br>
<br>
<br>
David<br>
_______________________________________________<br>
SanFrancisco-pm mailing list<br>
<a href="mailto:SanFrancisco-pm@pm.org" target="_blank">SanFrancisco-pm@pm.org</a><br>
<a href="https://mail.pm.org/mailman/listinfo/sanfrancisco-pm" rel="noreferrer" target="_blank">https://mail.pm.org/mailman/listinfo/sanfrancisco-pm</a><br>
</blockquote></div>