This is an auto-filed bug because media-sound/wav2json calls g++ 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 CXX implementation (like clang++) by setting the CXX variable. So this issue has been reproduced by setting the CXX variable to x86_64-pc-linux-gnu-g++ and by removing the /usr/bin/g++ - /usr/bin/c++ binaries.
Created attachment 641232 [details]
build log and emerge --info
The bug has been closed via the following commit(s):
Author: Jakov Smolic <firstname.lastname@example.org>
AuthorDate: 2021-04-30 16:14:37 +0000
Commit: Sam James <email@example.com>
CommitDate: 2021-05-04 22:17:08 +0000
media-sound/wav2json: Respect CFLAGS/LDFLAGS/CXX
Signed-off-by: Jakov Smolic <firstname.lastname@example.org>
Signed-off-by: Sam James <email@example.com>
.../wav2json/files/wav2json-0.4-Makefile.patch | 35 ++++++++++++++++++++++
media-sound/wav2json/wav2json-0.4.ebuild | 19 +++++++-----
2 files changed, 47 insertions(+), 7 deletions(-)