From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26398 invoked by alias); 19 May 2011 10:11:57 -0000 Received: (qmail 26388 invoked by uid 22791); 19 May 2011 10:11:56 -0000 X-SWARE-Spam-Status: No, hits=-2.7 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-px0-f171.google.com (HELO mail-px0-f171.google.com) (209.85.212.171) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 19 May 2011 10:11:42 +0000 Received: by pxi7 with SMTP id 7so1714888pxi.30 for ; Thu, 19 May 2011 03:11:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.117.21 with SMTP id p21mr1662504wfc.286.1305799899996; Thu, 19 May 2011 03:11:39 -0700 (PDT) Received: by 10.142.155.17 with HTTP; Thu, 19 May 2011 03:11:39 -0700 (PDT) In-Reply-To: <4DD4E79A.4080404@rtems.org> References: <4DD45A0F.4040909@redhat.com> <4DD4E79A.4080404@rtems.org> Date: Thu, 19 May 2011 10:11:00 -0000 Message-ID: Subject: Re: Problem building GDB for sparc-rtems From: David Paterson To: Ralf Corsepius Cc: Keith Seitz , gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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/msg00095.txt.bz2 On Thu, May 19, 2011 at 10:49 AM, Ralf Corsepius wrote: > On 05/19/2011 10:53 AM, David Paterson wrote: >> >> On Thu, May 19, 2011 at 12:45 AM, Keith Seitz =A0wrot= e: >>> >>> On 05/16/2011 09:34 AM, David Paterson wrote: > >> =A0 =A0 cd build.gdb-7.2/ >> =A0 =A0 rm -rf * >> >> =A0 =A0 ../../GCCSources/gdb-7.2/configure =A0--target=3Dsparc-rtems4.10= .0 > > FWIW (should not matter, here): The offical target name is > "sparc-rtems4.10". Thanks Ralf - I'll change the scripts (although as you say it shouldn't make a difference). >> --disable-shared --disable-nls \ >> =A0 =A0 --disable-werror --disable-sim --with-gnu-as --with-gnu-ld >> --prefix=3D/usr/local/SParcRtems >> >> =A0 =A0 make all >> =A0 =A0 make install >> >> (run from a script file, rather than command line, but that also gives t= he >> 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 fr= om >>> the 7.2 tarball, so it should work for you, too. > > I am building all *-rtems targets fairly frequently without many problems > (cf. ftp://ftp.rtems.org/pub/rtems/linux/4.11). > > However gdb's dependencies are a royal pain and occasionally cause buildi= ng > gdb produce bizarre errors. Which host OS are you using? I'm using MinGW under Windows 7. If that's likely to be a problem I could set up a VM for Linux. > Did you check the output "running configure" produces? Occasionally, such > build errors have their origin much earilier in the build-process, I've checked through all the "config.log" files in the build directory, and none of them show any errors (apart from the expected ones where configure is trying to figure out what's working / available). All of them end with "ex= it 0" which looks like a non-error result. >> Interesting. =A0I'll try building some other targets as well, and see if >> it's purely a >> Sparc problem. =A0I should have thought to try that... > > I'd guess on one of the usual supects: Do you have '.' in $PATH? Which > CFLAGS are you using? Does your pwd contain white spaces? Ah, "pwd" has no spaces, but $PATH is does start with "." which could be the cause of it. I'll try to find where it's set up, although it's derived= from an Eclipse install, so I'm not sure where to look. Maybe "." should be at = the end instead of the beginning? > Did you check the output "configure produces"? It all looks OK, and the makefiles seem to be sensible, but I'll check thro= ugh it again. I've done a diff between the "sparc-rtems" and "sparc-elf" versi= ons of the build and nothing obvious jumps out. Cheers, David P.