Opened 4 years ago

Closed 4 years ago

#62446 closed defect (invalid)

Failed to build ossp-uuid on macOS Big Sur and Apples M1 CPU: no suitable image found

Reported by: dzhub Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc:
Port:

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Hi all :-)

I just once again tried "port upgrade outdated", and now got this error:

:info:build Can't load '/opt/local/lib/perl5/vendor_perl/5.26/darwin-thread-multi-2level/auto/Cwd/Cwd.bundle' for module Cwd: dlopen(/opt/local/lib/perl5/vendor_perl/5.26/darwin-thread-multi-2level/auto/Cwd/Cwd.bundle, 1): no suitable image found.  Did find:

Please see the log for all the details.

Attachments (1)

main.log (45.3 KB) - added by dzhub 4 years ago.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ossp-uuid/ossp-uuid/main.log

Download all attachments as: .zip

Change History (9)

Changed 4 years ago by dzhub

Attachment: main.log added

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ossp-uuid/ossp-uuid/main.log

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

The log says:

:info:build Can't load '/opt/local/lib/perl5/vendor_perl/5.26/darwin-thread-multi-2level/auto/Cwd/Cwd.bundle' for module Cwd: dlopen(/opt/local/lib/perl5/vendor_perl/5.26/darwin-thread-multi-2level/auto/Cwd/Cwd.bundle, 1): no suitable image found.  Did find:
:info:build     /opt/local/lib/perl5/vendor_perl/5.26/darwin-thread-multi-2level/auto/Cwd/Cwd.bundle: mach-o, but wrong architecture
:info:build     /opt/local/lib/perl5/vendor_perl/5.26/darwin-thread-multi-2level/auto/Cwd/Cwd.bundle: mach-o, but wrong architecture at /opt/local/lib/perl5/5.26/XSLoader.pm line 99.

We can see that you're trying to build ossp-uuid for arm64. For what arch was /opt/local/lib/perl5/vendor_perl/5.26/darwin-thread-multi-2level/auto/Cwd/Cwd.bundle built? To find out, run:

lipo -info /opt/local/lib/perl5/vendor_perl/5.26/darwin-thread-multi-2level/auto/Cwd/Cwd.bundle

comment:2 Changed 4 years ago by dzhub

lipo -info /opt/local/lib/perl5/vendor_perl/5.26/darwin-thread-multi-2level/auto/Cwd/Cwd.bundle
Non-fat file: /opt/local/lib/perl5/vendor_perl/5.26/darwin-thread-multi-2level/auto/Cwd/Cwd.bundle is architecture: x86_64
Last edited 4 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 4 years ago by jmroot (Joshua Root)

What does port provides /opt/local/lib/perl5/vendor_perl/5.26/darwin-thread-multi-2level/auto/Cwd/Cwd.bundle say?

comment:4 Changed 4 years ago by dzhub

Hi,

it says:

/opt/local/lib/perl5/vendor_perl/5.26/darwin-thread-multi-2level/auto/Cwd/Cwd.bundle is provided by: p5.26-pathtools
Last edited 4 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:5 Changed 4 years ago by jmroot (Joshua Root)

And what does port -v installed p5.26-pathtools say?

comment:6 Changed 4 years ago by dzhub

Hi,

port -v installed p5.26-pathtools

The following ports are currently installed:
  p5.26-pathtools @3.750.0_0 (active) platform='darwin 17' archs='x86_64' date='2018-09-13T18:56:34+0200'
Last edited 4 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:7 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Ok, so if you are on Apple Silicon running macOS Big Sur, why is that port installed for x86_64 for macOS High Sierra back in 2018? Did you perhaps forget to follow the migration instructions when you upgraded to this new computer? Please follow them now.

comment:8 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.