From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29901 invoked by alias); 16 Jan 2007 16:51:55 -0000 Received: (qmail 29891 invoked by uid 22791); 16 Jan 2007 16:51:54 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Tue, 16 Jan 2007 16:51:49 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1H6rXH-0008Cb-3c; Tue, 16 Jan 2007 11:51:47 -0500 Date: Tue, 16 Jan 2007 16:51:00 -0000 From: Daniel Jacobowitz To: Itzhak Ben-Akiva Cc: gdb@sourceware.org Subject: Re: Cross-compiling GDB/GDBSERVER Message-ID: <20070116165146.GA30629@nevyn.them.org> Mail-Followup-To: Itzhak Ben-Akiva , gdb@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) 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-01/txt/msg00261.txt.bz2 On Tue, Jan 16, 2007 at 10:15:27AM +0200, Itzhak Ben-Akiva wrote: > However, when I try to connect to the gdbserver, I get the message I > post below. gdb is trying to find the libraries in the wrong places > instead of the right one, i.e., the toolchain build directory. What am > I missing in the compilation? Should I set CFLAGS and LD_FLAGS to the > path of the toolchain build directory? You need to either use --with-sysroot when building gdb, set solib-absolute-prefix, or "set sysroot" if you're using GDB HEAD. I added a section about this common pitfall to the manual a few weeks ago. -- Daniel Jacobowitz CodeSourcery