Opened 3 weeks ago

Last modified 3 weeks ago

#62259 assigned defect

ninja @1.10.2_0+universal build issues on Big Sur Intel

Reported by: kencu (Ken) Owned by: ryandesign (Ryan Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: ninja

Description

There are two issues when building ninja universal, using the muniversal PortGroup as it does now.

  1. configure.py: error: option --host: invalid choice: 'aarch64-apple-darwin20.3.0'

This option is set by the muniveral PG but to value the script does not accept.

  1. :info:build sh: ./ninja: Bad CPU type in executable

The portfile has been written to bootstrap ninja and then rebuild ninja with itself. This is not possible if the arch is not runnable on the given os.

Change History (3)

comment:1 Changed 3 weeks ago by kencu (Ken)

I am having one of those sessions where trac will not allow me to attach files to the ticket.

For now, here is a snippet around the first error:

:debug:configure SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk'
:info:configure Executing:  cd "/opt/buildX11/var/macports/build/_opt_buildX11_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ninja/ninja/work/ninja-1.10.2-arm64" && /usr/bin/python configure.py --with-python=/usr/bin/python --host=aarch64-apple-darwin20.3.0 --bootstrap --verbose 
:debug:configure system:  cd "/opt/buildX11/var/macports/build/_opt_buildX11_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ninja/ninja/work/ninja-1.10.2-arm64" && /usr/bin/python configure.py --with-python=/usr/bin/python --host=aarch64-apple-darwin20.3.0 --bootstrap --verbose 
:info:configure Usage: configure.py [options]
:info:configure configure.py: error: option --host: invalid choice: 'aarch64-apple-darwin20.3.0' (choose from 'linux', 'darwin', 'freebsd', 'openbsd', 'solaris', 'sunos5', 'mingw', 'msvc', 'gnukfreebsd', 'bitrig', 'netbsd', 'aix', 'dragonfly')
:info:configure Command failed:  cd "/opt/buildX11/var/macports/build/_opt_buildX11_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ninja/ninja/work/ninja-1.10.2-arm64" && /usr/bin/python configure.py --with-python=/usr/bin/python --host=aarch64-apple-darwin20.3.0 --bootstrap --verbose 
:info:configure Exit code: 2
:error:configure Failed to configure ninja: configure failure: command execution failed
:debug:configure Error code: NONE

and here is a snippet around the second error:

:debug:build SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk'
:info:build Executing:  cd "/opt/buildX11/var/macports/build/_opt_buildX11_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ninja/ninja/work/ninja-1.10.2-arm64" && ./ninja -j16 -v 
:debug:build system:  cd "/opt/buildX11/var/macports/build/_opt_buildX11_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ninja/ninja/work/ninja-1.10.2-arm64" && ./ninja -j16 -v 
:info:build sh: ./ninja: Bad CPU type in executable
:info:build Command failed:  cd "/opt/buildX11/var/macports/build/_opt_buildX11_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ninja/ninja/work/ninja-1.10.2-arm64" && ./ninja -j16 -v 
:info:build Exit code: 126
:error:build Failed to build ninja: command execution failed
:debug:build Error code: NONE

comment:3 Changed 3 weeks ago by kencu (Ken)

% sudo /opt/buildX11/bin/port -v installed ninja                                                                                                            
Password:
The following ports are currently installed:
  ninja @1.10.2_0+universal (active) platform='darwin 20' archs='arm64 x86_64' date='2021-02-10T23:09:53-0800'
Note: See TracTickets for help on using tickets.