#1025211 /usr/bin/riscv64-unknown-elf-g++: Missing C++ headers for riscv64-unknown-elf-g++

Package:
gcc-riscv64-unknown-elf
Source:
gcc-riscv64-unknown-elf
Description:
GCC compiler for embedded RISC-V chips
Submitter:
Joel Stanley
Date:
2022-11-30 23:39:04 UTC
Severity:
important
#1025211#5
Date:
2022-11-30 23:36:52 UTC
From:
To:
Hello Keith,

I am using the riscv elf toolchain to build a C++ program. It
tries to look for headers here:

$ echo | riscv64-unknown-elf-g++ -E -Wp,-v -
ignoring nonexistent directory "/usr/lib/gcc/riscv64-unknown-elf/12.1.0/../../../riscv64-unknown-elf/sys-include"
ignoring nonexistent directory "/usr/lib/gcc/riscv64-unknown-elf/12.1.0/../../../riscv64-unknown-elf/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/riscv64-unknown-elf/12.1.0/include
 /usr/lib/gcc/riscv64-unknown-elf/12.1.0/include-fixed
End of search list.

There's no C++ headers in this location. How should users get C++
headers with the elf toolchain?

Or is this unsupported, and we should instead use the linux toolchain
for C++ programs?

I'm not usually a C++ developer so please clarify if I've made some bad
assumptions here.