#67786 closed defect (invalid)

gnuplot @5.4.8: dyld: Library not loaded, Reason: no suitable image found. Did find ... mach-o, but wrong architecture

Reported by: linlupin (linlupin) Owned by: mojca (Mojca Miklavec)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: arm64 Cc:
Port: gnuplot

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

To whom will concern it,

I tried to update the Macports to the latest version 2.8.1 and upgrade the related ports. Unfortunately, I received the following error message:

--->  Computing dependencies for gnuplot
--->  Fetching archive for gnuplot
--->  Attempting to fetch gnuplot-5.4.8_0+aquaterm+luaterm+pangocairo+wxwidgets+x11.darwin_20.arm64.tbz2 from https://packages.macports.org/gnuplot
--->  Attempting to fetch gnuplot-5.4.8_0+aquaterm+luaterm+pangocairo+wxwidgets+x11.darwin_20.arm64.tbz2 from http://jog.id.packages.macports.org/macports/packages/gnuplot
--->  Attempting to fetch gnuplot-5.4.8_0+aquaterm+luaterm+pangocairo+wxwidgets+x11.darwin_20.arm64.tbz2 from http://mirror.fcix.net/macports/packages/gnuplot
--->  Building gnuplot
Error: Failed to build gnuplot: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_gnuplot/gnuplot/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port gnuplot failed

Due to the error of the upgrade, several old installations are also affected. For example, when I operate the "grace", I obtain the following error message:

dyld: Library not loaded: /opt/local/lib/libXm.4.dylib
  Referenced from: /opt/local/bin/xmgrace
  Reason: no suitable image found.  Did find:
	/opt/local/lib/libXm.4.dylib: mach-o, but wrong architecture
	/opt/local/lib/libXm.4.dylib: mach-o, but wrong architecture

Any good suggestion to fix this bug?

Attachments (1)

main.log (352.9 KB) - added by linlupin (linlupin) 16 months ago.
Error message in the main.log

Download all attachments as: .zip

Change History (4)

Changed 16 months ago by linlupin (linlupin)

Attachment: main.log added

Error message in the main.log

comment:1 Changed 16 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: arm64 added
Owner: set to mojca
Port: grace and .... removed
Status: newassigned
Summary: Problem (bug) to upgrade to gnuplot-5.4.8 in Mac M1gnuplot @5.4.8: dyld: Library not loaded, Reason: no suitable image found. Did find ... mach-o, but wrong architecture
dyld: Library not loaded: /opt/local/lib/libXm.4.dylib
  Referenced from: /opt/local/bin/xmgrace
  Reason: no suitable image found.  Did find:
	/opt/local/lib/libXm.4.dylib: mach-o, but wrong architecture
	/opt/local/lib/libXm.4.dylib: mach-o, but wrong architecture

The log says:

:info:build dyld: Library not loaded: /opt/local/lib/libpixman-1.0.dylib
:info:build   Referenced from: /opt/local/lib/libcairo.2.dylib
:info:build   Reason: no suitable image found.  Did find:
:info:build     /opt/local/lib/libpixman-1.0.dylib: mach-o, but wrong architecture
:info:build     /opt/local/lib/libpixman-1.0.dylib: mach-o, but wrong architecture

So, what is the architecture of libpixman and libXm on your system? To find out, run:

file /opt/local/lib/libpixman-1.0.dylib /opt/local/lib/libXm.4.dylib

You show that you are on an Apple Silicon Mac and that you are installing gnuplot for arm64, so the problem must be that your dependencies were not installed for that architecture. And if so, why is that? Have you migrated to this Apple Silicon Mac from an Intel Mac? If so, it sounds like you may not have followed the migration instructions.

comment:2 Changed 16 months ago by linlupin (linlupin)

Thanks. The migration instructions do work.
I install the Macports on Mac when Mac Silicon just released so the old environment does not properly fit the current upgrade.
The migration can fix my problems.

comment:3 Changed 15 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: assignedclosed

Ok great, glad you got it working.

Note: See TracTickets for help on using tickets.