From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21422 invoked by alias); 25 Aug 2015 17:10:21 -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 21401 invoked by uid 89); 25 Aug 2015 17:10:21 -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: ausxipps310.us.dell.com Received: from AUSXIPPS310.us.dell.com (HELO ausxipps310.us.dell.com) (143.166.148.211) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Tue, 25 Aug 2015 17:10:20 +0000 X-LoopCount0: from 10.175.216.250 From: To: CC: , , Subject: Re: Cross-build issues in gdb/gnulib Date: Tue, 25 Aug 2015 17:10:00 -0000 Message-ID: <35C35F17-7514-4999-8CFE-994F4D99E41B@dell.com> References: <55DC3BC4.1000707@redhat.com> <1CC14532-8BF3-4C4A-9773-D61B13393DB9@dell.com> <55DC702C.7030704@redhat.com> <55DC9EC3.2080508@cs.ucla.edu> In-Reply-To: <55DC9EC3.2080508@cs.ucla.edu> Content-Type: text/plain; charset="us-ascii" Content-ID: <7FFDDD3A3DA5AB42B84980D503E581ED@dell.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes X-SW-Source: 2015-08/txt/msg00049.txt.bz2 > On Aug 25, 2015, at 12:58 PM, Paul Eggert wrote: >=20 > Pedro Alves wrote: >> # Test for the AIX locale name. >>> if (LC_ALL=3Dja_JP LC_TIME=3D LC_CTYPE=3D ./conftest; exit) 2>= /dev/null; then >>> gt_cv_locale_ja=3Dja_JP >>>=20 >>> The comment refers to AIX, but it is in fact executed in the "*" case o= f a case statement, i.e., for everything other than Windows. The same code= pattern also appears in the two other locale-*.m4 files. >=20 > I'm lost. Do you have a specific Gnulib patch in mind? Perhaps you missed the original problem report, which is that this configur= e machinery doesn't take into account cross-builds. And that broke badly o= n a build=3DX86_64-linux, host=3Di386-netbsdelf cross-build, because Linux = attempted to execute the generated conftest image (a NetBSD image). That's= wrong of course, but worse yet, it got into an infinite loop, apparently t= he emulation is buggy. So my build got stuck. I learned about AC_RUN_IFELSE and constructed a fix with that. paul