[MacPorts] #68870: arm-none-eabi-gdb wants to build for x86_64 on Apple Silicon

MacPorts noreply at macports.org
Tue Dec 12 17:45:36 UTC 2023


#68870: arm-none-eabi-gdb wants to build for x86_64 on Apple Silicon
--------------------------------+--------------------------
  Reporter:  jmalcaide          |      Owner:  judaew
      Type:  defect             |     Status:  assigned
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:  2.8.1
Resolution:                     |   Keywords:  sonoma arm64
      Port:  arm-none-eabi-gdb  |
--------------------------------+--------------------------

Comment (by jmalcaide):

 I think that the error message is very misleading. Firts, it says that
 arm-none-eabi-gdb was being installed for X86-64 (I never intended that).
 Secondly, it states that the reason for failing is that the dependency
 arm-none-eabi-gcc has been installed for arm64; however, the real reason
 is that arm-none-eabi-gdb does not support building for arm64, because it
 is not listed as a supported architecture by the crossdb portgroup.

 Anyway, I don't understand why arm-none-eabi-gdb cannot be built for
 arm64. In my case, I intend to use this port for cross-debugging programs
 running on a BBC micro:bit microcontroller board connected to my Mac via
 USB, and using PyOCD for communication with the onboard debugger. These
 programs are being cross-compiled, cross-assembled and cross-linked using
 arm-none-eabi-gcc and arm-none-eabi-binutils. The executbale so generated
 is converted using objdump from ELF to bin formats. The architecture of
 the host computer (the Mac) is completely irrelevant for all this to work.
 In fact, I installed the complete toolchain (including arm-none-eabi-gdb)
 using Homebrew and it works perfectly.

-- 
Ticket URL: <https://trac.macports.org/ticket/68870#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list