From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24093 invoked by alias); 20 Oct 2010 14:26:39 -0000 Received: (qmail 24078 invoked by uid 22791); 20 Oct 2010 14:26:38 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 20 Oct 2010 14:26:28 +0000 Received: (qmail 9656 invoked from network); 20 Oct 2010 14:26:26 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 20 Oct 2010 14:26:26 -0000 From: Pedro Alves To: gdb@sourceware.org Subject: Re: gdb darwin target on Linux host? Date: Wed, 20 Oct 2010 14:26:00 -0000 User-Agent: KMail/1.13.2 (Linux/2.6.33-29-realtime; KDE/4.4.2; x86_64; ; ) Cc: Tristan Gingold , Peter Steiner References: <20101020135306.9C60531366@nx.neverkill.us> <455D00D6-4418-4B70-808B-37A9810F4F43@adacore.com> In-Reply-To: <455D00D6-4418-4B70-808B-37A9810F4F43@adacore.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201010201526.23403.pedro@codesourcery.com> 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: 2010-10/txt/msg00076.txt.bz2 On Wednesday 20 October 2010 15:20:49, Tristan Gingold wrote: > > On Oct 20, 2010, at 3:52 PM, Peter Steiner wrote: > > > Hi > > > > I try to compile a darwin-target gdb running on a Linux host: > > > > ./configure --prefix=/usr/local/gdb --target=x86_64-darwin > > > > this works up to the end of configure & make however does NOT generate a > > gdb binary! After make install the bin directory is empty and NO gdb > > binary has been linked at all. > > > > if I do: > > > > ./configure --prefix=/usr/local/gdb --target=i386-darwin > > > > this creates a gdb binary however it cannot read 64bit binaries from > > darwin. Any idea what is wrong? > > Could you post the log messages ? I suppose that if no binary is built, then an error has occurred. > > Not sure why you try to build such a tool, as it would be basically useless to debug. > > Apparently, the top-level configure is finicky about darwin versions: i[[3456789]]86-*-darwin*) noconfigdirs="$noconfigdirs ld gprof" noconfigdirs="$noconfigdirs sim target-rda" ;; x86_64-*-darwin[[912]]*) noconfigdirs="$noconfigdirs ld gas gprof" noconfigdirs="$noconfigdirs sim target-rda" ;; *-*-darwin*) noconfigdirs="$noconfigdirs ld gas gdb gprof" ^^^ noconfigdirs="$noconfigdirs sim target-rda" noconfigdirs="$noconfigdirs ${libgcj}" ;; Something like "--target=x86_64-darwin10" instead works, and I suppose "--target=i386-darwin --enable-64-bit-bfd" would solve the OPs second attempt. -- Pedro Alves