Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 792780 - sys-devel/binutils-apple fails to build during prefix bootstrap on M1 (Big Sur 11.4)
Summary: sys-devel/binutils-apple fails to build during prefix bootstrap on M1 (Big Su...
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: ARM64 OS X
: Normal blocker with 2 votes (vote)
Assignee: Gentoo Prefix
Depends on:
Reported: 2021-05-29 08:48 UTC by Steve Gilberd
Modified: 2022-08-03 14:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

Build environment (environment,93.76 KB, text/plain)
2021-05-29 08:49 UTC, Steve Gilberd
Build log (build.log,155.28 KB, text/plain)
2021-05-29 08:50 UTC, Steve Gilberd
Stage3 log (stage3.log,156.59 KB, text/plain)
2021-05-29 08:51 UTC, Steve Gilberd

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Gilberd 2021-05-29 08:48:57 UTC
sys-devel/binutils-apple-8.2.1-r101 fails to build from

System: Macbook Air 2020 (M1)
OS: Mac OS 11.4 Big Sur

There are a number of errors present, and they don't all appear related:
 - ARM64 isn't a defined architecture in one of the cpp files, but probably should be.
 - There are a number of type errors that appear to be related to the inclusion of an i386 header file from the OSX SDK.
 - The variable fRegisters is undeclared in *many* places - perhaps this is an arch-dependent declaration that is missing?

This failure occurs during stage 3 bootstrap, and is the final remaining package that bootstrap-prefix is trying to merge.
Comment 1 Steve Gilberd 2021-05-29 08:49:48 UTC
Created attachment 712161 [details]
Build environment
Comment 2 Steve Gilberd 2021-05-29 08:50:34 UTC
Created attachment 712164 [details]
Build log
Comment 3 Steve Gilberd 2021-05-29 08:51:19 UTC
Created attachment 712167 [details]
Stage3 log
Comment 4 Larry the Git Cow gentoo-dev 2022-08-03 14:59:24 UTC
The bug has been closed via the following commit(s):

commit e2526f187ac6aa04739b49de0f7c202ec9e7d92e
Author:     Fabian Groffen <>
AuthorDate: 2022-08-03 14:56:54 +0000
Commit:     Fabian Groffen <>
CommitDate: 2022-08-03 14:59:21 +0000

    profiles/prefix/darwin/macos/*/arm64/gcc: use nold variant
    binutils-apple doesn't compile currently on arm64 (#792780) and needs
    work, use the host-provided linker for the time being.
    Signed-off-by: Fabian Groffen <>

 profiles/prefix/darwin/macos/11.0/arm64/gcc/parent | 2 +-
 profiles/prefix/darwin/macos/12.0/arm64/gcc/parent | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)