From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10876 invoked by alias); 5 Jun 2013 08:19:10 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Received: (qmail 10862 invoked by uid 89); 5 Jun 2013 08:19:09 -0000 X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,FREEMAIL_REPLY,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.1 Received: from mail-pa0-f54.google.com (HELO mail-pa0-f54.google.com) (209.85.220.54) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 05 Jun 2013 08:19:08 +0000 Received: by mail-pa0-f54.google.com with SMTP id kx1so834104pab.27 for ; Wed, 05 Jun 2013 01:19:07 -0700 (PDT) X-Received: by 10.68.241.135 with SMTP id wi7mr21321499pbc.88.1370420347360; Wed, 05 Jun 2013 01:19:07 -0700 (PDT) Received: from [192.168.0.109] (174-21-207-240.tukw.qwest.net. [174.21.207.240]) by mx.google.com with ESMTPSA id vz8sm71513645pac.20.2013.06.05.01.19.03 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 05 Jun 2013 01:19:06 -0700 (PDT) User-Agent: Microsoft-MacOutlook/14.3.4.130416 Date: Wed, 05 Jun 2013 08:19:00 -0000 Subject: Re: Problems with recent expat/gdb changes From: Bryan Hundven To: Daniel Price CC: Message-ID: In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-SW-Source: 2013-06/txt/msg00003.txt.bz2 Daniel, On 6/4/13 10:28 PM, "Daniel Price" wrote: >Hi all, > >I've had some trouble with the recent trunk commits that change the >way expat is handled. A bare-metal mips toolchain I used to be able >to build using crosstool-ng 0.17 now won't compile after moving to >trunk crosstool-ng: > >[INFO ] ================================================================= >[INFO ] Installing cross-gdb >[EXTRA] Configuring cross-gdb >[EXTRA] Building cross-gdb >[ERROR] configure: error: expat is missing or unusable >[ERROR] make[2]: *** [configure-gdb] Error 1 >[ERROR] make[1]: *** [all] Error 2 >[ERROR] >[ERROR] >> >[ERROR] >> Build failed in step 'Installing cross-gdb' >[ERROR] >> called in step '(top-level)' >[ERROR] >> >[ERROR] >> Error happened in: CT_DoExecLog[scripts/functions@257] >[ERROR] >> called from: >do_debug_gdb_build[scripts/build/debug/300-gdb.sh@170] >[ERROR] >> called from: do_debug[scripts/build/debug.sh@35] >[ERROR] >> called from: main[scripts/crosstool-NG.sh@632] >[ERROR] >> >[ERROR] >> For more info on this error, look at the file: 'build.log' >[ERROR] >> There is a list of known issues, some with workarounds, in: >[ERROR] >> >'/tmp/x86_64-fc15-tools/crosstool-ng/share/doc/crosstool-ng/ct-ng.hg+unkno >wn-20130604.175703/B >- Known issues.txt' >[ERROR] > >I have placed the config here: >https://gist.github.com/danielbprice/5711220 > >This is on a system where libexpat-dev / -devel isn't installed. > >It seems to me that there's an issue where, despite requesting static >cross-gdb, crosstool-ng s/crosstool-ng/gdb/ > is expecting libexpat to be on the host >system... but I think in this case (as in some other cases handled by >the gdb script), expat should probably be downloaded and linked in by >crosstool-ng, to avoid a dependency on the host system. Thanks for >any input you can provide. There is definitely some funkyness with expat being needed to be built here. I feel that libexpat should be broken out of 300-gdb.sh and into it's own script and depended on by specific component versions (say gdb >= 7.3) in Kconfig, so the user can also say if they want expat (which is needed by python support) or if the version requires it. I don't think you'll want expat on static cross_gdb, so a short term solution could be to comment out lines 126 and 127 from scripts/build/debug/300-gdb.sh. Then rebuild and reinstall ct-ng. > > -dp > >-- >Daniel.Price@gmail.com; Twitter: @danielbprice > >-- >For unsubscribe information see http://sourceware.org/lists.html#faq -- For unsubscribe information see http://sourceware.org/lists.html#faq