Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 831951 - sys-devel/gcc: fails to cross-compile for arm64 musl (bits/c++config.h:736:25: error: missing binary operator before token "(")
Summary: sys-devel/gcc: fails to cross-compile for arm64 musl (bits/c++config.h:736:25...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-24 06:00 UTC by Necktwi Ozfguah
Modified: 2022-01-25 17:07 UTC (History)
1 user (show)

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


Attachments
gcc-build-logs (gcc-build-logs.tar.bz2,242.19 KB, application/x-bzip)
2022-01-24 06:00 UTC, Necktwi Ozfguah
Details

Note You need to log in before you can comment on or make changes to this bug.
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.