This is an auto-filed bug because sys-libs/libstdc++-v3 calls ar 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 AR implementation (like llvm-ar) by setting the AR variable. So this issue has been reproduced by setting the AR variable to x86_64-pc-linux-gnu-ar and by removing the /usr/bin/ar binary.
Created attachment 641102 [details]
build log and emerge --info
*** Bug 784917 has been marked as a duplicate of this bug. ***
The bug has been closed via the following commit(s):
Author: Sergei Trofimovich <firstname.lastname@example.org>
AuthorDate: 2021-07-24 09:21:45 +0000
Commit: Sergei Trofimovich <email@example.com>
CommitDate: 2021-07-24 09:21:59 +0000
sys-libs/libstdc++-v3: use user's AR and NM
Reported-by: Agostino Sarubbo
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Sergei Trofimovich <firstname.lastname@example.org>
sys-libs/libstdc++-v3/libstdc++-v3-3.3.6-r3.ebuild | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)