This is an auto-filed bug because sys-boot/tboot calls cc directly.
The issue was originally discovered on amd64, but it may be reproducible on other arches as well.
If you think that a different summary clarifies the issue better, feel free to change it.
Attached build log and emerge --info.
If you think it doesn't make sense fix these type of issues, I'd like to point out that won't be possible use a different CC implementation (like clang) by setting the CC variable. So this issue has been reproduced by setting the CC variable to x86_64-pc-linux-gnu-gcc and by removing the /usr/bin/cc - /usr/bin/gcc binaries.
Created attachment 642150 [details]
build log and emerge --info
The bug has been closed via the following commit(s):
Author: Christopher Byrne <email@example.com>
AuthorDate: 2021-12-19 22:44:08 +0000
Commit: John Helmert III <firstname.lastname@example.org>
CommitDate: 2021-12-20 00:54:14 +0000
sys-boot/tboot: Bump to 1.10.3
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Christopher Byrne <email@example.com>
Signed-off-by: John Helmert III <firstname.lastname@example.org>
sys-boot/tboot/Manifest | 1 +
.../tboot/files/tboot-1.10.3-disable-Werror.patch | 12 ++++
.../tboot/files/tboot-1.10.3-disable-strip.patch | 14 +++++
sys-boot/tboot/tboot-1.10.3.ebuild | 65 ++++++++++++++++++++++
4 files changed, 92 insertions(+)