Re: Cross-build issues in gdb/gnulib

2015-08-26 Thread Paul_Koning
The gnulib configure machinery doesn't take into account cross-builds. I ran into this while doing a cross-build of GDB. It 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

Re: Cross-build issues in gdb/gnulib

2015-08-25 Thread Paul_Koning
On Aug 25, 2015, at 12:58 PM, Paul Eggert egg...@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

Re: Cross-build issues in gdb/gnulib

2015-08-25 Thread Paul_Koning
On Aug 25, 2015, at 12:58 PM, Paul Eggert egg...@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

Re: Cross-build issues in gdb/gnulib

2015-08-25 Thread Pedro Alves
On 08/25/2015 06:06 PM, paul_kon...@dell.com wrote: On Aug 25, 2015, at 12:58 PM, Paul Eggert egg...@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

Re: Cross-build issues in gdb/gnulib

2015-08-25 Thread Paul Eggert
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

Re: Cross-build issues in gdb/gnulib

2015-08-25 Thread Pedro Alves
Adding gnulib@ Original thread here: https://sourceware.org/ml/gdb/2015-08/msg00037.html Thanks, Pedro Alves On 08/25/2015 02:12 PM, paul_kon...@dell.com wrote: On Aug 25, 2015, at 5:56 AM, Pedro Alves pal...@redhat.com wrote: On 08/24/2015 10:20 PM, paul_kon...@dell.com wrote: I'm