This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Cross-build issues in gdb/gnulib
- From: <Paul_Koning at Dell dot com>
- To: <eggert at cs dot ucla dot edu>
- Cc: <palves at redhat dot com>, <gdb at sourceware dot org>, <bug-gnulib at gnu dot org>
- Date: Tue, 25 Aug 2015 17:10:16 +0000
- Subject: Re: Cross-build issues in gdb/gnulib
- Authentication-results: sourceware.org; auth=none
- References: <D46D2776-70D7-461B-8B0A-6039058E3BE2 at dell dot com> <55DC3BC4 dot 1000707 at redhat dot com> <1CC14532-8BF3-4C4A-9773-D61B13393DB9 at dell dot com> <55DC702C dot 7030704 at redhat dot com> <55DC9EC3 dot 2080508 at cs dot ucla dot edu>
> On Aug 25, 2015, at 12:58 PM, Paul Eggert <eggert@cs.ucla.edu> wrote:
>
> Pedro Alves wrote:
>> # Test for the AIX locale name.
>>> if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
>>> gt_cv_locale_ja=ja_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 pattern also appears in the two other locale-*.m4 files.
>
> I'm lost. Do you have a specific Gnulib patch in mind?
Perhaps you missed the original problem report, which is that this configure machinery doesn't take into account cross-builds. And that broke badly on a build=X86_64-linux, host=i386-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 the emulation is buggy. So my build got stuck.
I learned about AC_RUN_IFELSE and constructed a fix with that.
paul