Changes between Initial Version and Version 1 of Ticket #67786


Ignore:
Timestamp:
Jul 21, 2023, 10:42:42 AM (16 months ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:
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.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #67786

    • Property Status changed from new to assigned
    • Property Summary changed from Problem (bug) to upgrade to gnuplot-5.4.8 in Mac M1 to gnuplot @5.4.8: dyld: Library not loaded, Reason: no suitable image found. Did find ... mach-o, but wrong architecture
    • Property Owner set to mojca
    • Property Keywords arm64 added
    • Property Port grace and .... removed
  • Ticket #67786 – Description

    initial v1  
    33I tried to update the Macports to the latest version 2.8.1 and upgrade the related ports. Unfortunately, I received the following error message:
    44
    5 --- \\
    6 --->  Computing dependencies for gnuplot \\
    7 --->  Fetching archive for gnuplot \\
    8 --->  Attempting to fetch gnuplot-5.4.8_0+aquaterm+luaterm+pangocairo+wxwidgets+x11.darwin_20.arm64.tbz2 from https://packages.macports.org/gnuplot \\
    9 --->  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 \\
    10 --->  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 \\
    11 --->  Building gnuplot \\
    12 Error: Failed to build gnuplot: command execution failed \\
    13 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. \\
    14 Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. \\
    15 Error: Processing of port gnuplot failed \\
    16 --- \\
     5{{{
     6--->  Computing dependencies for gnuplot
     7--->  Fetching archive for gnuplot
     8--->  Attempting to fetch gnuplot-5.4.8_0+aquaterm+luaterm+pangocairo+wxwidgets+x11.darwin_20.arm64.tbz2 from https://packages.macports.org/gnuplot
     9--->  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
     10--->  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
     11--->  Building gnuplot
     12Error: Failed to build gnuplot: command execution failed
     13Error: 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.
     14Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
     15Error: Processing of port gnuplot failed
     16}}}
    1717
    1818Due to the error of the upgrade, several old installations are also affected.
    1919For example, when I operate the "grace", I obtain the following error message:
    20 ---
    21 dyld: Library not loaded: /opt/local/lib/libXm.4.dylib \\
    22   Referenced from: /opt/local/bin/xmgrace  \\
    23   Reason: no suitable image found.  Did find:  \\
    24         /opt/local/lib/libXm.4.dylib: mach-o, but wrong architecture  \\
    25         /opt/local/lib/libXm.4.dylib: mach-o, but wrong architecture  \\
    26 ---
     20
     21{{{
     22dyld: Library not loaded: /opt/local/lib/libXm.4.dylib
     23  Referenced from: /opt/local/bin/xmgrace
     24  Reason: no suitable image found.  Did find:
     25        /opt/local/lib/libXm.4.dylib: mach-o, but wrong architecture
     26        /opt/local/lib/libXm.4.dylib: mach-o, but wrong architecture
     27}}}
    2728
    2829Any good suggestion to fix this bug?