[MacPorts] #64399: avr-gcc @11.2.0_1: Build failure on Apple Silicon (needs patch-arm64.diff)

MacPorts noreply at macports.org
Sun Jan 9 10:33:35 UTC 2022


#64399: avr-gcc @11.2.0_1: Build failure on Apple Silicon (needs patch-arm64.diff)
--------------------+----------------------
 Reporter:  VinDuv  |      Owner:  g5pw
     Type:  defect  |     Status:  assigned
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:  2.7.1
 Keywords:  arm64   |       Port:  avr-gcc
--------------------+----------------------
 The avr-gcc build fails with the following error:

 {{{
 :info:build Undefined symbols for architecture arm64:
 :info:build   "_host_hooks", referenced from:
 :info:build       gt_pch_save(__sFILE*) in libbackend.a(ggc-common.o)
 :info:build       gt_pch_restore(__sFILE*) in libbackend.a(ggc-common.o)
 :info:build       toplev::main(int, char**) in libbackend.a(toplev.o)
 :info:build ld: symbol(s) not found for architecture arm64
 }}}

 I found that other gcc cross compiler ports, such as
 x86_64-w64-mingw32-gcc, had a `patch-arm64.diff` patch. Adding that patch
 to avr-gcc (https://github.com/macports/macports-
 ports/blame/master/cross/x86_64-w64-mingw32-gcc/Portfile#L30) fixed the
 build. avr-gcc seems to work fine afterwards.

-- 
Ticket URL: <https://trac.macports.org/ticket/64399>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list