From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C5A053858D38; Mon, 3 Oct 2022 17:31:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C5A053858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664818306; bh=OWLTgRaEX34Fs65fHZjwOIMHHN43KyNW0dII0FeBIX4=; h=From:To:Subject:Date:From; b=mXzkF4bC6CWW4G6vOb3Mu5NmhIwNwjxI/a0tpolSQ6WUG61tLZQt6/pIyICJtVoLR 3MKznGdscvt/KcGwBCW4FbMFbuLlOKEAgRFopezrtLfOTLeFqQ6FczfJ1Wm9skb2sK DQnY/+jbvnJzIVjd7zb8JtTsx3XV8C/hitJYspKw= From: "unlvsur at live dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107134] New: fatal error: stdint.h: No such file or directory for freestanding C++ toolchain Date: Mon, 03 Oct 2022 17:31:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: unlvsur at live dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107134 Bug ID: 107134 Summary: fatal error: stdint.h: No such file or directory for freestanding C++ toolchain Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: unlvsur at live dot com Target Milestone: --- x86_64-elf-g++ -v Using built-in specs. COLLECT_GCC=3Dx86_64-elf-g++ COLLECT_LTO_WRAPPER=3D/home/cqwrteur/toolchains/native/x86_64-elf/libexec/g= cc/x86_64-elf/13.0.0/lto-wrapper Target: x86_64-elf Configured with: ../../../../gcc/configure --disable-nls --disable-werror --target=3Dx86_64-elf --prefix=3D/home/cqwrteur/toolchains/native/x86_64-elf --without-headers --disable-hosted-libstdcxx --disable-libstdcxx-verbose --enable-languages=3Dc,c++ --enable-multilib Thread model: single Supported LTO compression algorithms: zlib gcc version 13.0.0 20221003 (experimental) (GCC)=20 x86_64-elf-g++ -c b.cc -std=3Dc++23 In file included from /home/cqwrteur/toolchains/native/x86_64-elf/x86_64-elf/include/c++/13.0.0/c= stdint:41, from b.cc:1: /home/cqwrteur/toolchains/native/x86_64-elf/lib/gcc/x86_64-elf/13.0.0/inclu= de/stdint.h:9:16: fatal error: stdint.h: No such file or directory 9 | # include_next | ^~~~~~~~~~ compilation terminated. stdint.h requires -ffreestanding flag to include the right header. However --without-headers --disable-hosted-libstdcxx already implies it is freestanding. it needs a fix the stdint.h=