From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 81182 invoked by alias); 24 Aug 2015 21:20:32 -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 81158 invoked by uid 89); 24 Aug 2015 21:20:31 -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: ausxippc110.us.dell.com Received: from AUSXIPPC110.us.dell.com (HELO ausxippc110.us.dell.com) (143.166.85.200) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Mon, 24 Aug 2015 21:20:30 +0000 X-LoopCount0: from 10.175.216.251 From: To: Subject: Cross-build issues in gdb/gnulib Date: Mon, 24 Aug 2015 21:20:00 -0000 Message-ID: Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes X-SW-Source: 2015-08/txt/msg00037.txt.bz2 I'm running into strange problems cross-building with V7.7.1; it looks like= the same configure machinery is present in later versions as well. The problem is that the configure script in gdb/gnulib tries to run a numbe= r of tests, by building and then executing "conftest". It does so uncondit= ionally, there are no checks for whether this is a cross-build, specificall= y build =3D x86_64-linux, host =3D target =3D netbsd. For one of my crossbuilds this "works" because there the host is mips, so a= ttempting to execute conftest fails and the script handles this in a way th= at produces an acceptable outcome. But when target is i386-netbsdelf, when the script attempts to execute the = (NetBSD) binary for conftest, Linux attempts to do so. I guess it has some= flavor of NetBSD emulation. But this is bad for two reasons. First, execu= ting that program on the Linux build system obviously produces an irrelevan= t answer. Second, and this is what breaks my build, the NetBSD emulation i= n Linux is defective -- conftest goes into an infinite loop. So my build n= ever finishes. What can I do about this? paul