From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 89200385828E for ; Sun, 10 Jul 2022 18:52:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 89200385828E Received: from [10.0.0.11] (192-222-157-6.qc.cable.ebox.net [192.222.157.6]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 765BE1E21F; Sun, 10 Jul 2022 14:52:48 -0400 (EDT) Message-ID: <9d0e7369-7ead-7ad7-c65c-604fe4ea0a57@simark.ca> Date: Sun, 10 Jul 2022 14:52:48 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH] [PATCH] [gdb] adds `` to list of includes Content-Language: en-US To: Enze Li , Manoj Gupta Cc: Christopher Di Bella , gdb-patches@sourceware.org References: <20220628010427.1856503-1-cjdb@google.com> From: Simon Marchi In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jul 2022 18:52:50 -0000 On 2022-07-09 04:54, Enze Li via Gdb-patches wrote: > Hi Manoj, > > On Fri, 2022-07-08 at 22:57 -0700, Manoj Gupta wrote: >> I work on ChromeOS and can provide answers to this. >> >> does not include provide std::back_inserter as per C++ spec. >> It is provided by [1]. >> The fact that it worked so far is just an accident that libc++ and >> libstdc++ were including this >> header with . >> With libc++, it is no longer true. See commit "[libc++] Removes >> unneeded includes." in libc++ [2]. >> It is therefore not surprising that gdb fails to build. > > Thank you for the detailed explanation. It seems that we need to > manually compile and install the libc++ from upstream before we can > reproduce this issue. This is trivial enough that it's not really necessary to reproduce to get convinced that such a change would be good. The file uses back_inserter -> C++ says that back_inserter is provided by -> make the file include . This has no real change of breaking anything. Simon