From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30365 invoked by alias); 19 May 2011 08:54:12 -0000 Received: (qmail 30356 invoked by uid 22791); 19 May 2011 08:54:11 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST X-Spam-Check-By: sourceware.org Received: from mail-pv0-f169.google.com (HELO mail-pv0-f169.google.com) (74.125.83.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 19 May 2011 08:53:57 +0000 Received: by pvc12 with SMTP id 12so1514482pvc.0 for ; Thu, 19 May 2011 01:53:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.143.21.27 with SMTP id y27mr1666834wfi.115.1305795236580; Thu, 19 May 2011 01:53:56 -0700 (PDT) Received: by 10.142.155.17 with HTTP; Thu, 19 May 2011 01:53:56 -0700 (PDT) In-Reply-To: <4DD45A0F.4040909@redhat.com> References: <4DD45A0F.4040909@redhat.com> Date: Thu, 19 May 2011 08:54:00 -0000 Message-ID: Subject: Re: Problem building GDB for sparc-rtems From: David Paterson To: Keith Seitz Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 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: 2011-05/txt/msg00093.txt.bz2 On Thu, May 19, 2011 at 12:45 AM, Keith Seitz wrote: > On 05/16/2011 09:34 AM, David Paterson wrote: > >> This may be more appropriate for the RTEMS, or even Binutils, >> mailing lists - if so, please let me know and I'll move it over. > > It might be, but let's have some fun and see if we can figure it out. Thanks Keith. I'm not sure "fun" is the word to use though... :-) >> I'm trying to build a cross-toolchain for a Sparc (Leon2) system, >> and while the basic version, configured for "sparc-elf" is no >> problem, when I try to rebuild for RTEMS I'm getting an error during >> the GDB build :- > > How did you do this? Can you share your build commands? I presume you did > this in a clean build directory? I've tried a few different configure options, but the last ones I tried, which are still giving the same error, are :- cd build.gdb-7.2/ rm -rf * ../../GCCSources/gdb-7.2/configure --target=sparc-rtems4.10.0 --disable-shared --disable-nls \ --disable-werror --disable-sim --with-gnu-as --with-gnu-ld --prefix=/usr/local/SParcRtems make all make install (run from a script file, rather than command line, but that also gives the same result, as I tried it in case there was some script environment problem). For reference, I'm also using gmp-5.0.1, mpfr-3.0.1, mpc-0.9, binutils-2.21, gcc-4.5.2 and newlib-1.19.0 (of course not all of those are used for GDB). > FWIW, I just built sparc-rtems on linux (Fedora 13) without incident from > the 7.2 tarball, so it should work for you, too. Interesting. I'll try building some other targets as well, and see if it's purely a Sparc problem. I should have thought to try that... Cheers, David P.