Opened 3 years ago
Last modified 2 months ago
#64399 assigned defect
avr-gcc @11.2.0_1: Build failure on Apple Silicon (needs patch-arm64.diff)
Reported by: | VinDuv | Owned by: | g5pw (Aljaž Srebrnič) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.1 |
Keywords: | arm64 | Cc: | NickFabry (Nick Fabry), cooljeanius (Eric Gallager) |
Port: | avr-gcc |
Description
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.
Change History (3)
comment:1 Changed 3 years ago by NickFabry (Nick Fabry)
Cc: | NickFabry added |
---|
comment:2 Changed 2 years ago by cooljeanius (Eric Gallager)
Cc: | cooljeanius added |
---|
comment:3 Changed 2 months ago by ryandesign (Ryan Carsten Schmidt)
Note: See
TracTickets for help on using
tickets.
Please check if the problem remains with 14.2.0.