Re: Cross-build issues in gdb/gnulib

<[email protected]>
Newsgroups gmane.comp.gdb.devel,gmane.comp.lib.gnulib.bugs
Message-ID <[email protected]>
> On Aug 25, 2015, at 12:58 PM, Paul Eggert <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.