Opened 3 years ago

Closed 22 months ago

#63075 closed defect (invalid)

Failed to destroot font-adobe-utopia-100dpi

Reported by: anitazanella Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: font-adobe-utopia-100dpi mkfontscale freetype

Description (last modified by jmroot (Joshua Root))

Goodmorning. I need to install esopipe-sinfo-all and I am using MacPort to do so.

I have a MacOS Big Sur Version 11.4 with an Apple M1 chip.

I am running the following command from the Terminal: arch -x86_64 sudo port install esopipe-sinfo-all

I get the following error:

--->  Fetching archive for font-adobe-utopia-100dpi
--->  Attempting to fetch font-adobe-utopia-100dpi-1.0.4_1.darwin_20.noarch.tbz2 from https://packages.macports.org/font-adobe-utopia-100dpi
--->  Attempting to fetch font-adobe-utopia-100dpi-1.0.4_1.darwin_20.noarch.tbz2 from http://fco.it.packages.macports.org/font-adobe-utopia-100dpi
--->  Attempting to fetch font-adobe-utopia-100dpi-1.0.4_1.darwin_20.noarch.tbz2 from https://cph.dk.packages.macports.org/font-adobe-utopia-100dpi
--->  Staging font-adobe-utopia-100dpi into destroot
Error: Failed to destroot font-adobe-utopia-100dpi: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_font-adobe-utopia-100dpi/font-adobe-utopia-100dpi/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port esopipe-sinfo-all failed

I attach the full log.

Could you please help me to solve it? Thank you very much,

Anita

Attachments (2)

main.log (255.9 KB) - added by anitazanella 3 years ago.
log file
main2.log (45.5 KB) - added by anitazanella 3 years ago.

Download all attachments as: .zip

Change History (10)

Changed 3 years ago by anitazanella

Attachment: main.log added

log file

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

Description: modified (diff)
Owner: set to jeremyhu
Port: font-adobe-utopia-100dpi mkfontscale freetype added
Status: newassigned
Type: requestdefect
:info:destroot dyld: Library not loaded: /opt/local/lib/libfreetype.6.dylib
:info:destroot   Referenced from: /opt/local/bin/mkfontscale
:info:destroot   Reason: no suitable image found.  Did find:
:info:destroot  /opt/local/lib/libfreetype.6.dylib: mach-o, but wrong architecture
:info:destroot  /opt/local/lib/libfreetype.6.dylib: stat() failed with errno=1
:info:destroot  /opt/local/lib/libfreetype.6.dylib: mach-o, but wrong architecture

Did you migrate this installation from an Intel machine? If so, did you follow wiki:Migration?

comment:2 Changed 3 years ago by anitazanella

Thank you for your answer. No, I did not migrate this installation from an Intel machine. This is a new installation.

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

Please show the output of these commands:

port -v installed mkfontscale freetype
lipo -info /opt/local/bin/mkfontscale /opt/local/lib/libfreetype.6.dylib

comment:4 Changed 3 years ago by anitazanella

This is the output of the commands:

MacBook-Pro ~ % port -v installed mkfontscale freetype
The following ports are currently installed:
  freetype @2.10.4_0 (active) requested_variants='' platform='darwin 20' archs='arm64' date='2021-06-02T18:49:53+0200'
  mkfontscale @1.2.1_0 (active) requested_variants='' platform='darwin 20' archs='x86_64' date='2021-06-11T12:01:22+0200'

MacBook-Pro ~ % lipo -info /opt/local/bin/mkfontscale /opt/local/lib/libfreetype.6.dylib
Non-fat file: /opt/local/bin/mkfontscale is architecture: x86_64
Non-fat file: /opt/local/lib/libfreetype.6.dylib is architecture: arm64
Last edited 3 years ago by jmroot (Joshua Root) (previous) (diff)

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

So apparently you somehow got mkfontscale installed for x86_64, but its dependency freetype is installed for arm64. It's not clear how that would have happened, since even if you specified x86_64 when installing, that should have checked the archs of the dependency and reinstalled it with +universal if necessary. In any case, uninstalling mkfontscale and installing it for the right architecture should fix the problem.

comment:6 Changed 3 years ago by anitazanella

Thank you. I have tried to uninstall mkfontscale and re-install it using the following commands:

arch -x86_64 sudo port uninstall mkfontscale 
arch -x86_64 sudo port install mkfontscale

However I still get an error:

Error: Failed to build libpng: command execution failed  
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libpng/libpng/main.log for details.
Error: Unable to execute port: upgrade freetype failed

I also attach the log file (main2.log). Is there a different command I should use to correctly install mkfontscale?

Thank you.

Last edited 22 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

Changed 3 years ago by anitazanella

Attachment: main2.log added

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

So you're deliberately trying to install everything as x86_64 despite being on an arm64 machine? The best way to accomplish that would be to set build_arch in macports.conf. You would need to uninstall any ports that are already installed as arm64 (check with port -v installed | fgrep arm64).

Last edited 3 years ago by jmroot (Joshua Root) (previous) (diff)

comment:8 Changed 22 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: assignedclosed

Let's close this since it's been a year since the last comment and the problem was caused by user actions and not by a bug in a port.

Note: See TracTickets for help on using tickets.