Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

share install on MacOS GitHub Actions gives unexpected library-load failure #20

Closed
mohawk2 opened this issue Dec 3, 2024 · 3 comments
Closed

Comments

@mohawk2
Copy link
Contributor

mohawk2 commented Dec 3, 2024

E.g. in https://github.com/PDLPorters/PDL-Transform-Proj4/actions/runs/12134943895/job/33833045527

  Can't load '/Users/runner/work/PDL-Transform-Proj4/PDL-Transform-Proj4/blib/arch/auto/PDL/Transform/Proj4/Proj4.bundle' for module PDL::Transform::Proj4: dlopen(/Users/runner/work/PDL-Transform-Proj4/PDL-Transform-Proj4/blib/arch/auto/PDL/Transform/Proj4/Proj4.bundle, 0x0002): Library not loaded: @rpath/libproj.25.dylib
    Referenced from: <F74CD300-5820-33A4-BEC2-74783C6D8410> /Users/runner/work/PDL-Transform-Proj4/PDL-Transform-Proj4/blib/arch/auto/PDL/Transform/Proj4/Proj4.bundle
  Error:   Reason: tried: '/usr/lib:/Users/runner/perl5/lib/perl5/darwin-2level/auto/share/dist/Alien-proj/lib/libproj.25.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib:/Users/runner/perl5/lib/perl5/darwin-2level/auto/share/dist/Alien-proj/lib/libproj.25.dylib' (no such file), '/usr/lib:/Users/runner/perl5/lib/perl5/darwin-2level/auto/share/dist/Alien-proj/lib/libproj.25.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib:/Users/runner/perl5/lib/perl5/darwin-2level/auto/share/dist/Alien-proj/lib/libproj.25.dylib' (no such file) at /Users/runner/hostedtoolcache/perl/5.30.3/arm64/lib/5.30.3/darwin-2level/DynaLoader.pm line 197.
   at t/proj_transform.t line 6.

Note in particular tried: '/usr/lib:/Users/runner/perl5/lib/perl5/darwin-2level/auto/share/dist/Alien-proj/lib/libproj.25.dylib' (no such file) - it's trying two dir names with a : in the middle, rather than splitting on the :.

@shawnlaffan
Copy link
Owner

Possibly it's related to Proj 9.5 which was released the other day. I'll try to test it on my mac tomorrow.

I notice that the Alien::proj tests are currently disabled.
https://github.com/PDLPorters/PDL-Transform-Proj4/actions/runs/12134943895/job/33833045527#step:4:73

It would be good to see if these pass or fail.

The deps can be installed without testing first to reduce noise (cpanm -n --installdeps Alien::proj).

@shawnlaffan
Copy link
Owner

I was able to reproduce this locally. It is unrelated to the Proj version.

The root cause seems to be an interaction between Plugin::SearchDeps and system aliens (PerlAlien/Alien-Build#419). Alien::proj was filtering a system Alien::libtiff from the list, but not Alien::sqlite. Now it does any system aliens that are passed (#21).

I've released Alien::proj 1.30 to CPAN. Can you give it a test?

@mohawk2
Copy link
Contributor Author

mohawk2 commented Dec 9, 2024

It works great. Thank you very much!

@mohawk2 mohawk2 closed this as completed Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants