This is an auto-filed bug because sci-mathematics/gsl-shell 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 642080 [details]
build log and emerge --info
The bug has been referenced in the following commit(s):
Author: Andrew Ammerlaan <firstname.lastname@example.org>
AuthorDate: 2022-03-02 10:59:34 +0000
Commit: Andrew Ammerlaan <email@example.com>
CommitDate: 2022-03-02 11:00:06 +0000
sci-mathematics/gsl-shell: add version 2.3.2
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <firstname.lastname@example.org>
sci-mathematics/gsl-shell/Manifest | 1 +
.../gsl-shell-2.3.2-no-compile-in-install.patch | 24 +++++++++
...gsl-shell-2.3.2-sphinx-extmath-to-imgmath.patch | 13 +++++
sci-mathematics/gsl-shell/gsl-shell-2.3.2.ebuild | 62 ++++++++++++++++++++++
4 files changed, 100 insertions(+)
This was fixed in the last commit, but now there's a v2.3.3 upstream that uses meson and may be less horrible to build: