From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24649 invoked by alias); 12 Dec 2007 23:48:06 -0000 Received: (qmail 24640 invoked by uid 22791); 12 Dec 2007 23:48:06 -0000 X-Spam-Check-By: sourceware.org Received: from dessent.net (HELO dessent.net) (69.60.119.225) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 12 Dec 2007 23:47:59 +0000 Received: from localhost ([127.0.0.1] helo=dessent.net) by dessent.net with esmtp (Exim 4.50) id 1J2bIz-0002Zm-7S; Wed, 12 Dec 2007 23:47:57 +0000 Message-ID: <4760732B.B0D23D86@dessent.net> Date: Wed, 12 Dec 2007 23:48:00 -0000 From: Brian Dessent Reply-To: gcc-help@gcc.gnu.org X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) MIME-Version: 1.0 To: Rick Mann CC: gcc-help@gcc.gnu.org, Tim Prince Subject: Re: Should I be able to build cross gcc 4.x on Cygwin? References: <710C780E-6CF3-4950-9A39-8CFC26B08C2D@latencyzero.com> <475F3CA6.5090508@computer.org> <476068DF.6FBFBE0F@dessent.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-12/txt/msg00250.txt.bz2 Rick Mann wrote: > Well, after much pain to get an authoritative answer, the best I was > able to do was a minor variant on this: > > http://gcc.gnu.org/ml/gcc-help/2007-06/msg00230.html > > The relevant part: > > $ mkdir combined > $ cd combined > $ ln -s ../gcc-4.2.2/* . > $ ln -s ../binutils-2.17/* . > [several complaints from ln about existing links] > $ ln -s ../newlib-1.15.0/* . > [several complaints from ln about existing links] > $ cd ../.. > $ mkdir testbuild > $ cd testbuild > $ ../src/combined/configure --target=xscale-elf --disable-nls --with- > newlib --prefix=/usr/local/xscale-elf-gcc --disable-newlib-supplied- > syscalls I don't like that method at all, because it does not actually combine anything, it simply takes the include/ dir from whatever tree you last linked it to. In this case it looks like the include from newlib wins, but it's not recent enough. You want to actually combine the contents of all the include dirs in each package, not just select one. Try the method here instead: . This uses cpio to create hard links in the combined tree, which really does create a union of the trees, rather than simply picking one version of each directory to use. Brian