Package: gcc-riscv64-unknown-elf Version: 12.1.0-7+11 Severity: important File: /usr/bin/riscv64-unknown-elf-g++
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. -- System Information: Debian Release: bookworm/sid APT prefers testing APT policy: (900, 'testing'), (300, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386, armhf Kernel: Linux 6.0.0-3-amd64 (SMP w/8 CPU threads; PREEMPT) Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages gcc-riscv64-unknown-elf depends on: ii binutils-riscv64-unknown-elf 2.39-8+4 ii libc6 2.36-5 ii libgcc-s1 12.2.0-9 ii libgmp10 2:6.2.1+dfsg1-1.1 ii libisl23 0.25-1 ii libmpc3 1.2.1-2 ii libmpfr6 4.1.0-3 ii libstdc++6 12.2.0-9 ii zlib1g 1:1.2.11.dfsg-4.1 gcc-riscv64-unknown-elf recommends no packages. gcc-riscv64-unknown-elf suggests no packages. -- no debconf information

