From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 122288 invoked by alias); 4 Nov 2016 13:31:36 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 122251 invoked by uid 89); 4 Nov 2016 13:31:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS,URIBL_RED autolearn=ham version=3.3.2 spammy=Dan, crossgcc, H*c:HHHH X-HELO: relay1.mentorg.com Date: Fri, 04 Nov 2016 13:31:00 -0000 From: Joseph Myers To: =?ISO-8859-15?Q?Dan_Hor=E1k?= CC: Subject: Re: Bootstrapping cross-toolchain for ia64 In-Reply-To: <20161104141647.231bb720b4679f7fe57bd81a@danny.cz> Message-ID: References: <64a4cff9-b1d3-4645-7baf-29ec50ebbb94@linaro.org> <20161104141647.231bb720b4679f7fe57bd81a@danny.cz> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="-1152306461-1272944784-1478266274=:1065" X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-SW-Source: 2016-11/txt/msg00157.txt.bz2 ---1152306461-1272944784-1478266274=:1065 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: 8BIT Content-length: 1321 On Fri, 4 Nov 2016, Dan HorĂ¡k wrote: > On Fri, 4 Nov 2016 13:06:05 +0000 > Joseph Myers wrote: > > > On Fri, 4 Nov 2016, Adhemerval Zanella wrote: > > > > > I faced the same issue and the solution I found was to configure > > > gcc with '--disable-shared'. It is not an optimal approach for a > > > complete toolchain, but it is at least suffice to correctly build > > > glibc. > > > > The first GCC (whose build fails) *is* configured with > > --disable-shared (and --without-headers --with-newlib to get > > inhibit_libc defined). It still tries to build unwind code that > > includes libc headers unconditionally. > > we used to have the following patch in the Fedora cross-gcc > http://pkgs.fedoraproject.org/cgit/rpms/cross-gcc.git/log/cross-gcc-with-libgcc.patch Thanks. I see that stdlib.h include was removed by r231697 | edlinger | 2015-12-16 15:24:52 +0000 (Wed, 16 Dec 2015) | 5 lines 2015-12-16 Bernd Edlinger * unwind-generic.h (_Unwind_GetTextRelBase): Call __builtin_abort instead of abort to avoid dependency on stdlib.h. so I'll see if the problem goes away with newer GCC (I'm initially trying to clean up results with GCC 5 branch before going on to GCC 6 and mainline). -- Joseph S. Myers joseph@codesourcery.com ---1152306461-1272944784-1478266274=:1065--