From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3862 invoked by alias); 23 Oct 2003 16:16:43 -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 3847 invoked from network); 23 Oct 2003 16:16:42 -0000 Received: from unknown (HELO localhost.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 23 Oct 2003 16:16:42 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id E51B22B89; Thu, 23 Oct 2003 12:16:42 -0400 (EDT) Message-ID: <3F97FEEA.30209@gnu.org> Date: Thu, 23 Oct 2003 16:16: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/msg00259.txt.bz2 > I'm trying to build gdb 6.0 uner Solaris 5.8, but compilation of infrun.c > fails. > > gcc -c -g -O2 -I/usr/include/v9 -I. -I/vol/freeware/source/gdb-6.0/gdb -I/vol/freeware/source/gdb-6.0/gdb/config -DLOCALEDIR="\"/vol/freeware/SunOS-5.8/gdb/6.0/share/locale\"" -DHAVE_CONFIG_H -I/vol/freeware/source/gdb-6.0/gdb/../include/opcode -I/vol/freeware/source/gdb-6.0/gdb/../readline/.. -I../bfd -I/vol/freeware/source/gdb-6.0/gdb/../bfd -I/vol/freeware/source/gdb-6.0/gdb/../include -I../intl -I/vol/freeware/source/gdb-6.0/gdb/../intl -DMI_OUT=1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized /vol/freeware/source/gdb-6.0/gdb/infrun.c > /usr/ccs/bin/as: "/var/tmp/ccM45XPr.s", line 3929: error: constant value must > be between -4096 and 4095 > > The .s file around line 3929 contains: > .LLM446: > call registers_changed, 0 > add %o7, (.LL108-.-4), %o7 > .stabn 68,0,1658,.LLM447-handle_inferior_event > > (line 3929 is the line with the "add" instruction) > > uname -a for my workstation gives: > SunOS sfsws4 5.8 Generic_108528-23 sun4u sparc SUNW,Sun-Fire-280R > > > Does anybody have an idea what the problem is? Looks very like a GCC bug. I see you're using Sun's assembler (usr/ccs/bin/as) which rules out GAS ;-). As a workaround, try CFLAGS='-g -O' ...path.to.configure/configure or building the file with: make CFLAGS='-g -O' infrun.o or updating your GCC. Andrew