From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 43BB03944807; Tue, 13 Apr 2021 02:20:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 43BB03944807 From: "unlvsur at live dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/100057] There are no freestanding C++ Date: Tue, 13 Apr 2021 02:20:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 11.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: Message-ID: In-Reply-To: References: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Apr 2021 02:20:37 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100057 --- Comment #9 from cqwrteur --- looking for a compliant stdint.h in stdint.h, checking for uintmax_t... no looking for a compliant stdint.h in inttypes.h, checking for uintmax_t... no looking for a compliant stdint.h in sys/inttypes.h, checking for uintmax_t.= .. no looking for an incomplete stdint.h in stdint.h, checking for uint32_t... no looking for an incomplete stdint.h in inttypes.h, checking for uint32_t... = no looking for an incomplete stdint.h in sys/inttypes.h, checking for uint32_t= ... no looking for u_intXX_t types in sys/types.h, checking for u_int32_t... no looking for u_intXX_t types in inttypes.h, checking for u_int32_t... no looking for u_intXX_t types in sys/inttypes.h, checking for u_int32_t... no checking what to include in include/gstdint.h... stddef.h (using manual detection) checking size of void *... 0 checking size of long... 0 checking size of int... 0 checking size of short... 0 checking size of char... 0 checking for type equivalent to int8_t... configure: error: no 8-bit type, please report a bug make[1]: *** [Makefile:13313: configure-target-libstdc++-v3] Error 1 make[1]: Leaving directory '/home/cqwrteur/myhome/gcc2_elf_build' make: *** [Makefile:965: all] Error 2 The issue is that there is no such header called stdint.h. What we have is stdint-gcc.h which is automatically generated by the compiler. We have two options. 1. just redefine them in cstdint with freestanding. 2. use autotool to include stdint-gcc.h when stdint.h does not exist.=