Opened 2 years ago

Closed 2 years ago

#64614 closed defect (invalid)

groff fails to build on M1 platform / macOS 12.2

Reported by: grantjanssen Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc:
Port: groff texinfo p5.30-io

Description

Could be an issue with the ARM architecture. log indicates "(have 'x86_64', need 'arm64e')"

grant@grants-EFILM-MacBookPro-M1:~[20220205-18:22][#333586]% sudo port clean groff
--->  Cleaning groff
grant@grants-EFILM-MacBookPro-M1:~[20220205-18:27][#334586]% sudo port install groff                                                                                     --->  Computing dependencies for groff
--->  Fetching archive for groff
--->  Attempting to fetch groff-1.22.4_6.darwin_21.arm64.tbz2 from https://packages.macports.org/groff
--->  Attempting to fetch groff-1.22.4_6.darwin_21.arm64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/groff
--->  Attempting to fetch groff-1.22.4_6.darwin_21.arm64.tbz2 from https://kmq.jp.packages.macports.org/groff
--->  Fetching distfiles for groff
--->  Verifying checksums for groff
--->  Extracting groff
--->  Applying patches to groff
--->  Configuring groff
--->  Building groff                                     
Error: Failed to build groff: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_groff/groff/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port groff failed
grant@grants-EFILM-MacBookPro-M1:~[20220205-18:27][#335586]%

HARDWARE / SOFTWARE

grant@grants-EFILM-MacBookPro-M1:~[20220205-18:35][#336586]% system_profiler SPHardwareDataType
Hardware:

    Hardware Overview:

      Model Name: MacBook Pro
      Model Identifier: MacBookPro18,2
      Chip: Apple M1 Max
      Total Number of Cores: 10 (8 performance and 2 efficiency)
      Memory: 64 GB
      System Firmware Version: 7429.81.3
      OS Loader Version: 7429.81.3
      Serial Number (system): GKVF79924N
      Hardware UUID: DD58F9EE-1E49-59A7-BBC8-1FF6ED983675
      Provisioning UDID: 00006001-000861090102801E
      Activation Lock Status: Disabled

grant@grants-EFILM-MacBookPro-M1:~[20220205-18:35][#337586]% system_profiler SPSoftwareDataType
Software:

    System Software Overview:

      System Version: macOS 12.2 (21D49)
      Kernel Version: Darwin 21.3.0
      Boot Volume: Macintosh HD
      Boot Mode: Normal
      Computer Name: grants-EFILM-MacBookPro-M1
      User Name:  (grant)
      Secure Virtual Memory: Enabled
      System Integrity Protection: Disabled
      Time since boot: 4 days 3:24

grant@grants-EFILM-MacBookPro-M1:~[20220205-18:35][#338586]%

LOGFILE from /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_groff/groff/main.log

version:1
:debug:main Starting logging for groff @1.22.4_6
:debug:sysinfo macOS 12.2 (darwin/21.3.0) arch arm
:debug:sysinfo MacPorts 2.7.1
:debug:sysinfo Xcode 13.2.1
:debug:sysinfo SDK 12
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 12.0

-snip-

:info:build Can't load '/opt/local/lib/perl5/vendor_perl/5.30/darwin-thread-multi-2level/auto/IO/IO.bundle' for module IO: dlopen(/opt/local/lib/perl5/vendor_perl/5.30/darwin-thread-multi-2level/auto/IO/IO.bundle, 0x0001): tried: '/opt/local/lib/perl5/vendor_perl/5.30/darwin-thread-multi-2level/auto/IO/IO.bundle' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/IO.bundle' (no such file), '/usr/lib/IO.bundle' (no such file) at /opt/local/lib/perl5/5.30/XSLoader.pm line 96.
:info:build Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.30/darwin-thread-multi-2level/IO/Handle.pm line 268.
:info:build BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.30/darwin-thread-multi-2level/IO/Handle.pm line 268.
:info:build Compilation failed in require at /opt/local/share/texinfo/lib/libintl-perl/lib/Locale/gettext_pp.pm line 68.
:info:build BEGIN failed--compilation aborted at /opt/local/share/texinfo/lib/libintl-perl/lib/Locale/gettext_pp.pm line 68.
:info:build Compilation failed in require at /opt/local/share/texinfo/lib/libintl-perl/lib/Locale/Messages.pm line 57.
:info:build Compilation failed in require at /opt/local/bin/makeinfo line 97.
:info:build BEGIN failed--compilation aborted at /opt/local/bin/makeinfo line 97.
:info:build make: *** [doc/groff.info] Error 2
:info:build make: *** Waiting for unfinished jobs....
:info:build mv t-ref-del.sed ref-del.sed
:info:build if test -n ""; then \
:info:build       for m in ""; do \
:info:build         rm -f ./tmac/$m-wrap; \
:info:build         if test "$m" = an; then \
:info:build           echo .do mso andoc.tmac >>./tmac/$m-wrap; \
:info:build         fi; \
:info:build         echo .cp 1 >>./tmac/$m-wrap; \
:info:build         echo .so $m >>./tmac/$m-wrap; \
:info:build       done; \
:info:build     fi
:info:build mv t-charset.alias charset.alias
:info:build touch tmac/stamp-wrap
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_groff/groff/work/groff-1.22.4'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_groff/groff/work/groff-1.22.4" && /usr/bin/make -j10 -w all 
:info:build Exit code: 2
:error:build Failed to build groff: command execution failed
:debug:build Error code: CHILDSTATUS 18961 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_groff/groff/main.log for details.
grant@grants-EFILM-MacBookPro-M1:~[20220205-18:23][#319585]%

Change History (7)

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

Keywords: ARM architecture removed
Port: texinfo perl5.30 added

Please show the output of these commands:

port provides /opt/local/lib/perl5/vendor_perl/5.30/darwin-thread-multi-2level/auto/IO/IO.bundle
lipo -info /opt/local/lib/perl5/vendor_perl/5.30/darwin-thread-multi-2level/auto/IO/IO.bundle
port -v installed perl5.30

comment:2 Changed 2 years ago by grantjanssen

That reply was so fast.

grant@grants-EFILM-MacBookPro-M1:~[20220205-20:08][#315585]% port provides /opt/local/lib/perl5/vendor_perl/5.30/darwin-thread-multi-2level/auto/IO/IO.bundle
/opt/local/lib/perl5/vendor_perl/5.30/darwin-thread-multi-2level/auto/IO/IO.bundle is provided by: p5.30-io
grant@grants-EFILM-MacBookPro-M1:~[20220205-20:08][#316585]% lipo -info /opt/local/lib/perl5/vendor_perl/5.30/darwin-thread-multi-2level/auto/IO/IO.bundle
Non-fat file: /opt/local/lib/perl5/vendor_perl/5.30/darwin-thread-multi-2level/auto/IO/IO.bundle is architecture: x86_64
grant@grants-EFILM-MacBookPro-M1:~[20220205-20:08][#317585]% port -v installed perl5.30
The following ports are currently installed:
  perl5.30 @5.30.3_3 (active) requested_variants='' platform='darwin 21' archs='arm64' date='2022-02-01T20:50:23-0800'
grant@grants-EFILM-MacBookPro-M1:~[20220205-20:09][#318585]%

please let me know if there's anything you need thank you

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

I guess the IO.bundle from p5.30-io overrides the one shipped with perl5.30? It seems that that port is installed for the wrong architecture in any case (port -v installed p5.30-io to check). Did you perhaps migrate this installation from an x86_64 machine without following the wiki:Migration instructions?

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

Port: p5.30-io added; perl5.30 removed

comment:5 Changed 2 years ago by grantjanssen

I had done an update, but had NOT uninstalled and reinstalled for the new architecture. Most things 'just worked'. I will abide by the reference regarding architecture migration. Thank You. If I have issues, I will refresh this ticket

Last edited 2 years ago by grantjanssen (previous) (diff)

comment:6 Changed 2 years ago by grantjanssen

I'm all up now most useful command:

port echo requested | cut -d ' ' -f 1 | uniq > requested.MacPorts.txt

thanx

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

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