From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 96442 invoked by alias); 25 Aug 2015 13:12:56 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 96430 invoked by uid 89); 25 Aug 2015 13:12:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: ausxippc101.us.dell.com Received: from ausxippc101.us.dell.com (HELO ausxippc101.us.dell.com) (143.166.85.207) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Tue, 25 Aug 2015 13:12:53 +0000 X-LoopCount0: from 10.175.216.251 From: To: CC: Subject: Re: Cross-build issues in gdb/gnulib Date: Tue, 25 Aug 2015 13:12:00 -0000 Message-ID: <1CC14532-8BF3-4C4A-9773-D61B13393DB9@dell.com> References: <55DC3BC4.1000707@redhat.com> In-Reply-To: <55DC3BC4.1000707@redhat.com> Content-Type: text/plain; charset="Windows-1252" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes X-SW-Source: 2015-08/txt/msg00042.txt.bz2 > On Aug 25, 2015, at 5:56 AM, Pedro Alves wrote: >=20 > On 08/24/2015 10:20 PM, Paul_Koning@Dell.com wrote: >> I'm running into strange problems cross-building with V7.7.1; it looks l= ike the same configure machinery is present in later versions as well. >>=20 >> The problem is that the configure script in gdb/gnulib tries to run a nu= mber of tests, by building and then executing "conftest". It does so uncon= ditionally, there are no checks for whether this is a cross-build, specific= ally build =3D x86_64-linux, host =3D target =3D netbsd. >=20 > I have no idea why configure is trying to run the test in your case, but = I just yesterday > updated master's gnulib copy to current upstream gnulib master. Previous= ly we had > a 2012 copy. I don't see any AC_TRY_RUN in current master, for instance, > though I didn't check older versions. In any case, try seeing if current= master makes > a difference. I tracked down the spot in the configure sources where the problem originat= es. There is no AC_TRY_RUN involved. Instead, the issue is this bit of co= de in gnulib/import/m4/locale-ja.m4: # Test for the AIX locale name. if (LC_ALL=3Dja_JP LC_TIME=3D LC_CTYPE=3D ./conftest; exit) 2>/de= v/null; then gt_cv_locale_ja=3Dja_JP The comment refers to AIX, but it is in fact executed in the "*" case of a = case statement, i.e., for everything other than Windows. The same code pat= tern also appears in the two other locale-*.m4 files. So it looks like that code needs some sort of guard checking for cross-buil= d, and some sort of default action if so. I'm not particularly fluent in c= onfigure unfortunately. A quick look at the latest master shows that these files are unchanged by y= esterday's update (other than copyright year). paul