From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6264 invoked by alias); 13 Sep 2007 18:37:35 -0000 Received: (qmail 6217 invoked by uid 22791); 13 Sep 2007 18:37:35 -0000 X-Spam-Check-By: sourceware.org Received: from exprod8og51.obsmtp.com (HELO exprod8og51.obsmtp.com) (64.18.3.84) by sourceware.org (qpsmtpd/0.31) with SMTP; Thu, 13 Sep 2007 18:37:29 +0000 Received: from source ([12.110.134.31]) by exprod8ob51.obsmtp.com ([64.18.7.12]) with SMTP; Thu, 13 Sep 2007 11:37:07 PDT Received: from pkoning-laptop.equallogic.com.equallogic.com ([172.25.202.120]) by M31.equallogic.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 13 Sep 2007 14:36:05 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18153.33553.274913.193263@pkoning-laptop.equallogic.com> Date: Thu, 13 Sep 2007 18:41:00 -0000 From: Paul Koning To: brobecker@adacore.com Cc: gdb@sourceware.org Subject: Re: cross-compile GDB ? References: <20070913182842.GA3813@adacore.com> X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid X-IsSubscribed: yes 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 X-SW-Source: 2007-09/txt/msg00125.txt.bz2 >>>>> "Joel" == Joel Brobecker writes: Joel> Hello, I was wondering if anyone had tried cross-compiling Joel> GDB. My goal is to build gdbserver for LynxOS 3 from a Joel> sparc-solaris machine. Adding native support for LynxOS could Joel> take a while, but I think that adding LynxOS support to the Joel> gdbserver would allow me to use my version of GDB server. The Joel> one that they distribute with LynxOS 3 is too old and doesn't Joel> work well with newer versions of GDB (I think). Joel> Is that possible at all? Right now, libiberty complains because Joel> it is trying to test the compiler on the host by trying to run Joel> a small test executable. It suggests to use the --host switch, Joel> but doing that didn't help. It works for me; we routinely build gdb (including gdbserver) for a mips target on an i386 host. The switches are --host= --target= --build=. And of course you need a toolchain (compiler etc) for the target. I may have had to pass CC= as well, I'm not sure if that's needed. paul