From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27274 invoked by alias); 24 Oct 2003 10:15:48 -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 27267 invoked from network); 24 Oct 2003 10:15:47 -0000 Received: from unknown (HELO hoemail2.firewall.lucent.com) (192.11.226.163) by sources.redhat.com with SMTP; 24 Oct 2003 10:15:47 -0000 Received: from nbgif1.de.lucent.com (h135-248-192-26.lucent.com [135.248.192.26]) by hoemail2.firewall.lucent.com (Switch-2.2.8/Switch-2.2.0) with ESMTP id h9OAFfh01438; Fri, 24 Oct 2003 05:15:42 -0500 (CDT) Received: from sfsws1.de.lucent.com (sfsws1 [135.248.217.84]) by nbgif1.de.lucent.com (8.8.8/8.8.5) with ESMTP id MAA16293; Fri, 24 Oct 2003 12:15:36 +0200 (MEST) Received: from sfsw51.de.lucent.com (sfsw51 [135.248.216.225]) by sfsws1.de.lucent.com (8.11.7p1+Sun/8.8.5) with ESMTP id h9OAFZk00358; Fri, 24 Oct 2003 12:15:36 +0200 (MEST) Received: (from kzeitler@localhost) by sfsw51.de.lucent.com (8.11.7p1+Sun/8.8.8) id h9OAFZg22189; Fri, 24 Oct 2003 12:15:35 +0200 (MEST) X-Authentication-Warning: sfsw51.de.lucent.com: kzeitler set sender to kzeitler@lucent.com using -f To: Andrew Cagney Cc: gdb@sources.redhat.com Subject: Re: gdb 6.0: build on Solaris 5.8 fails for infrun.c X-Antipastobozoticataclysm: Bariumenemanilow From: Klaus Zeitler Date: Fri, 24 Oct 2003 10:15:00 -0000 In-Reply-To: <3F97FEEA.30209@gnu.org> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-10/txt/msg00272.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: 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 ERROR: gdb: make -- ------------------------------------------ | Klaus Zeitler Lucent Technologies | | Email: kzeitler@lucent.com | ------------------------------------------ --- People who fight may lose. People who do not fight have already lost. -- Bertolt Brecht