Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 792780

Summary: sys-devel/binutils-apple fails to build during prefix bootstrap on M1 (Big Sur 11.4)
Product: Gentoo/Alt Reporter: Steve Gilberd <steve>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED FIXED    
Severity: blocker CC: steve
Priority: Normal    
Version: unspecified   
Hardware: ARM64   
OS: OS X   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=778014
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build environment
Build log
Stage3 log

Description Steve Gilberd 2021-05-29 08:48:57 UTC
sys-devel/binutils-apple-8.2.1-r101 fails to build from bootstrap-prefix.sh.

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):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2526f187ac6aa04739b49de0f7c202ec9e7d92e

commit e2526f187ac6aa04739b49de0f7c202ec9e7d92e
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2022-08-03 14:56:54 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
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.
    
    Closes: https://bugs.gentoo.org/792780
    Bug: https://bugs.gentoo.org/778014
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 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(-)