From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4FA793858417; Mon, 23 Aug 2021 10:19:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4FA793858417 From: "unlvsur at live dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/100057] There are no freestanding C++ Date: Mon, 23 Aug 2021 10:19:41 +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: build X-Bugzilla-Severity: normal X-Bugzilla-Who: unlvsur at live dot com X-Bugzilla-Status: WAITING 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: Mon, 23 Aug 2021 10:19:41 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100057 --- Comment #32 from cqwrteur --- (In reply to cqwrteur from comment #31) > (In reply to Jonathan Wakely from comment #30) > > (In reply to cqwrteur from comment #29) > > > I really want a fix to the script. Thank you !!! > >=20 > > This is too vague to do anything about. > >=20 > > Be precise. >=20 > compile gcc things like with --target=3Dx86_64-elf. then use > --disable-hosted-libstdcxx build those headers without any libc, not even > newlib since newlib might implement some things which are not appropriate. >=20 > Better addon x86_64-elf -mno-red-zone multilibs too. This not only allows C++ to run in baremetal, but also allows libcs themsel= ves to be implemented with C++. Today the cross compiler build process is like this: binutils-gdb -> gcc without headers but only build libgcc -> libgcc -> libc= -> rebuild gcc -> libgcc -> libstdc++ -> other libs. In the future, it should be binutils-gdb -> gcc without headers but only build libgcc + disable-hosted libstdc++ -> libgcc -> libc -> rebuild gcc -> libgcc -> libstdc++ -> other libs. This will solve the boostrapping problems for libcs like mlibc which is wri= tten in C++20.=