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

Bug 831951

Summary: sys-devel/gcc: fails to cross-compile for arm64 musl (bits/c++config.h:736:25: error: missing binary operator before token "(")
Product: Gentoo Linux Reporter: Necktwi Ozfguah <necktwi>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED INVALID    
Severity: normal CC: cross
Priority: Normal    
Version: unspecified   
Hardware: ARM64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: gcc-build-logs

Description Necktwi Ozfguah 2022-01-24 06:00:26 UTC
Created attachment 763449 [details]
gcc-build-logs

cross build of gcc-11.2.1_p20211127 has failed with following build log:
```
# wgetpaste -s sprunge /usr/aarch64-unknown-linux-musl/tmp/portage/sys-devel/gcc-11.2.1_p20211127/temp/build.log
Your paste can be seen here: http://sprunge.us/stedwj
```

Before this I tried cross merging `gcc-11.2.0`, `gcc-10.3.0-r2` and `gcc-9.4.0` which all failed.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-24 16:17:52 UTC
Please attach in future as external paste sites may expire.

I'm wondering how you can hit this and I can't :(

Could you give some steps from a clean stage3 with crossdev, perhaps?
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-24 21:24:24 UTC
You're building with gcc 8.5 which lacks __has_builtin. Please try a newer GCC on the host?
Comment 3 Necktwi Ozfguah 2022-01-25 17:07:05 UTC
yes, able to merge aarch64-gcc-10 with cross-aarch64-gcc-11.