[Bug c++/107134] fatal error: stdint.h: No such file or directory for freestanding C++ toolchain

2022-10-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107134 --- Comment #6 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:7cdab65f3d770345903023f357b6ca96bc85a002 commit r13-3059-g7cdab65f3d770345903023f357b6ca96bc85a002 Author: Jonathan Wakely

[Bug c++/107134] fatal error: stdint.h: No such file or directory for freestanding C++ toolchain

2022-10-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107134 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/107134] fatal error: stdint.h: No such file or directory for freestanding C++ toolchain

2022-10-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107134 --- Comment #4 from Jonathan Wakely --- Oh it's not libstdc++'s one, it's GCC's one.

[Bug c++/107134] fatal error: stdint.h: No such file or directory for freestanding C++ toolchain

2022-10-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107134 --- Comment #3 from Jonathan Wakely --- (In reply to cqwrteur from comment #0) > x86_64-elf-g++ -c b.cc -std=c++23 > In file included from > /home/cqwrteur/toolchains/native/x86_64-elf/x86_64-elf/include/c++/13.0.0/ > cstdint:41, >

[Bug c++/107134] fatal error: stdint.h: No such file or directory for freestanding C++ toolchain

2022-10-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107134 --- Comment #2 from Jonathan Wakely --- Although we could do: #if ! _GLIBCXX_HOSTED #include #else #include_next #endif to make it work.

[Bug c++/107134] fatal error: stdint.h: No such file or directory for freestanding C++ toolchain

2022-10-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107134 --- Comment #1 from Jonathan Wakely --- With current trunk, you need to use -ffreestanding if you are compiling for freestanding. --without-headers --disable-hosted-libstdcxx says to build a freestanding library, that doesn't tell the