From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19705 invoked by alias); 22 Jun 2003 18:41:47 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 19338 invoked from network); 22 Jun 2003 18:41:34 -0000 Received: from unknown (HELO rwcrmhc13.attbi.com) (204.127.198.39) by sources.redhat.com with SMTP; 22 Jun 2003 18:41:34 -0000 Received: from kegel.com (c-24-126-73-164.we.client2.attbi.com[24.126.73.164](untrusted sender)) by attbi.com (rwcrmhc13) with SMTP id <2003062218413401500ak280e>; Sun, 22 Jun 2003 18:41:34 +0000 Message-ID: <3EF5FACA.9020400@kegel.com> Date: Sun, 22 Jun 2003 20:15:00 -0000 From: Dan Kegel User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030529 X-Accept-Language: de-de, en MIME-Version: 1.0 To: Zack Weinberg CC: Andrew Pinski , Peter Barada , wilson@tuliptree.org, gcc@gcc.gnu.org Subject: Re: cross-compilation documentation References: <02F74B2F-A4D6-11D7-AD8C-000393A6D2F2@physics.uc.edu> <878yruf1pl.fsf@egil.codesourcery.com> In-Reply-To: <878yruf1pl.fsf@egil.codesourcery.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-06/txt/msg01888.txt.bz2 Zack Weinberg wrote: > Andrew Pinski writes: >>RCS file: /cvs/gcc/gcc/gcc/config/rs6000/linux.h,v >> >>-#ifdef IN_LIBGCC2 >>+#if defined (IN_LIBGCC2) && !defined (inhibit_libc) >> #include >> ... > > For what it's worth, that looks like the right fix to this immediate > problem. We want to decouple libgcc build from compiler build for > other reasons, but that's sufficiently invasive that it's probably a > 3.5 item at this point (the way I wanna do it, it needs bootstrap to > run at top level, and it involves moving a lot of files). If this is the right way to go, then you need to patch not just rs6000, but also just about every other architecture, don't you? I did verify just now that --without-headers fails with gcc-3.3 when building for alpha, for instance. The error message is In file included from tconfig.h:18, from /build/alpha-unknown-linux-gnu/gcc-3.3-glibc-2.3.2/gcc-3.3/gcc/libgcc2.c:36: /build/alpha-unknown-linux-gnu/gcc-3.3-glibc-2.3.2/gcc-3.3/gcc/config/alpha/linux.h:68:20: signal.h: No such file or directory /build/alpha-unknown-linux-gnu/gcc-3.3-glibc-2.3.2/gcc-3.3/gcc/config/alpha/linux.h:69:26: sys/ucontext.h: No such file or directory make[2]: *** [libgcc/./_muldi3.o] Error 1 make[2]: Leaving directory `/home3/dank/crosstool-0.7/build/alpha-unknown-linux-gnu/gcc-3.3-glibc-2.3.2/build-gcc-core/gcc' I'm going to keep on installing bootstrap glibc headers for now, even though it's arcane and undocumented. BTW, there is a PR for --without-headers not working; see http://gcc.gnu.org/PR8180 IMHO this is a regression from gcc-3.2.3, and deserves at least a documented workaround for the very next release, even if we can't do a real fix until 3.5. - Dan -- Dan Kegel http://www.kegel.com http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045