From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 919 invoked by alias); 27 Oct 2003 20:30:42 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 841 invoked from network); 27 Oct 2003 20:30:37 -0000 Received: from unknown (HELO localhost.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 27 Oct 2003 20:30:37 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 23DE62B89; Mon, 27 Oct 2003 15:30:32 -0500 (EST) Message-ID: <3F9D8068.6010205@gnu.org> Date: Mon, 27 Oct 2003 20:30:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Klaus Zeitler Cc: gdb@sources.redhat.com Subject: Re: gdb 6.0: build on Solaris 5.8 fails for infrun.c References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-10/txt/msg00296.txt.bz2 > Andrew> > Andrew> Looks very like a GCC bug. I see you're using Sun's assembler > Andrew> (usr/ccs/bin/as) which rules out GAS ;-). As a workaround, try > Andrew> > Andrew> CFLAGS='-g -O' ...path.to.configure/configure > Andrew> > Andrew> or building the file with: > Andrew> > Andrew> make CFLAGS='-g -O' infrun.o > Andrew> > Andrew> or updating your GCC. > > thanks, that helped. We still have 2.95.3 installed as our "official" gcc. > But with gcc 3.0.4 this file compiled fine and I could produce a gdb image. > > Though there's still a problem in utils. Make stops now with: Fortunatly these utils don't need to be built before you can use GDB. Anyway, this is again weird - .LL177 is a gcc symbol - so I'm again wondering about GCC? Andrew > cd spu && make "CC=gcc" "CFLAGS=-g -O2" "AR=ar" "AR_FLAGS=rc" "AS=as" "CROSS_CFLAGS=" "TARGET_CFLAGS=" "INCLUDES=" all > make[2]: Entering directory `/vol/freeware/SunOS-5.8/build/gdb-6.0/utils/spu' > gcc -c -I. -I/vol/freeware/source/gdb-6.0/utils/spu -I/vol/freeware/source/gdb-6.0/utils/spu/config -I/vol/freeware/source/gdb-6.0/utils/spu/../../include -g -O2 /vol/freeware/source/gdb-6.0/utils/spu/spu.c > gcc -g -O2 -o spu spu.o > Undefined first referenced > symbol in file > .LL177 spu.o > ld: fatal: Symbol referencing errors. No output written to spu > collect2: ld returned 1 exit status > make[2]: *** [spu] Error 1 > make[2]: Leaving directory `/vol/freeware/SunOS-5.8/build/gdb-6.0/utils/spu' > make[1]: *** [all-spu] Error 2 > make[1]: Leaving directory `/vol/freeware/SunOS-5.8/build/gdb-6.0/utils' > make: *** [all-utils] Error 2