Opened 17 months ago

Last modified 13 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


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 ( fixed the build. avr-gcc seems to work fine afterwards.

Change History (2)

comment:1 Changed 17 months ago by NickFabry (Nick Fabry)

Cc: NickFabry added

comment:2 Changed 13 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added
Note: See TracTickets for help on using tickets.