From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A20C5393C03B; Tue, 13 Apr 2021 10:01:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A20C5393C03B 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 10:01:05 +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: RESOLVED X-Bugzilla-Resolution: INVALID 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 10:01:05 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100057 --- Comment #26 from cqwrteur --- yes. i tried that first and Then report a bug here. whats wrong with it? wa= sn't bugzilla designed for the stuff here? you asked me not to put you in the CC list and i did. Whats the complain here? 1. i do build things with newlib and i know It works. However It was actual= ly you who said newlib is not standard compliant etc. That is why i would like= to have a try to see whether It works or not because i tried That before and It didn't. i wasn't claiming something wrong. 2. i am not the first person who tried that. i believe a lot of people tried that before and they failed. That is why newlib is very popular. However It still does not change the fact using C++ to write OS kernel stuffs are fruastrating. 3. newlib is a panacea to the issue. because There are still a lot of places WHERE you cannot use newlib. like writing UEFI barebones or windows kernel which require the Binary to be PE format Instead of elf format. 4. When people build stuffs with newlib they usually do not disable libstdc= xx verbose which leads to at least 60kb of Binary bloat of binutils (c++filt)+= the dependency of stdio which make exception handling much hard to use 5. Yes. I love to try All options because i want to solve problems. i want = to ensure My library works without operating system and on various platforms, = not just Linux or windows. i want to kill stdio. That is why i keep building All sorts of cross toolchains or Even hosted cross toolchains in the first plac= e. People who do not use cross compilers are actually problem creators since t= hey do not know What is Going to happen with their own mess 6. Sure GCC`s implementation is not the only option. However We only have 3 options currently. libstdc++. libc++. msvc STL. msvc STL is windows only. e= very other option is dead out. including famous STLPort. 7. The fruastation of using C++ is exactly why OSdevs like linus hate the language because We do create issues for ourselves. Get Outlook for Android ________________________________ From: redi at gcc dot gnu.org Sent: Tuesday, April 13, 2021 5:24:53 AM To: unlvsur@live.com Subject: [Bug libstdc++/100057] There are no freestanding C++ https://na01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fgcc.gnu.= org%2Fbugzilla%2Fshow_bug.cgi%3Fid%3D100057&data=3D04%7C01%7C%7C6b91e3e= f37c449fdc96408d8fe5dff7b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C6375= 39026953147227%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIi= LCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=3DLdwLt6enWUifwfT4Y05iDygnv= euN8Y35bxAS0iAwO%2B0%3D&reserved=3D0 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #23 from Jonathan Wakely --- (In reply to cqwrteur from comment #0) > There are no freestanding C++ :) You are confused. The fact that libstdc++ has a freestanding mode which sti= ll has certain requirements doesn't mean "there are no freestanding C++". GCC is just one implementation, you can't make such a generalization about = "no freestanding C++" from one implementation. > I am perfectly correct. No, you are confused. (In reply to cqwrteur from comment #10) > I guess nobody ever tries to build freestanding before. It just does not > work tbh. Have you tried building the compiler first, without building libstdc++ at a= ll, then using that compiler to build the freestanding libstdc++? Lots of people build with newlib, every day. Instead of assuming nobody ever does it and it's broken until you come along, maybe assume you're doing it wrong. (In reply to cqwrteur from comment #19) >That is why people are not using C++ for writing operating system. There's a chicken and egg situation. Nobody is doing it, so the configurati= on to do it is not widely used and not as smooth as the default hosted configuration. If you want it to work, try being constructive instead of an irratating pri= ck. (In reply to cqwrteur from comment #12) > Then it is libquadmath's issue. no errno.h So --disable-libquadmath (In reply to cqwrteur from comment #20) > The freestanding C++ is an absolute joke. Not just because of the reason = of > exception handling. The GCC team did a horrible job in the past. I've told you before that your attitude makes people ignore you and dismiss= you as an irritating person that nobody wants to work with or help. If you think GCC is so bad, create your own compiler and stop bothering us = and insulting people. Your ability to communicate politely and reasonably is an absolute joke and every time I see you've reported a new "bug" I die a little bit inside. Instead of reporting a bug and then spamming it with new comments every ti= me you try something different, spend some time trying things FIRST and then report a focused, detailed bug about specific issues. Nobody wants to read your stream of consciousness rants. I'm closing this as invalid. Report a separate bug for concrete issues like "please add a new option for= a freestanding build that implies --disable-hosted-libstdcxx --disable-libquadmath and all other relevant options" (which will probably = be closed as INVALID or WONTFIX). -- You are receiving this mail because: You reported the bug. You are on the CC list for the bug.=