From: Andrew Cagney <cagney@gnu.org>
To: Klaus Zeitler <kzeitler@lucent.com>
Cc: gdb@sources.redhat.com
Subject: Re: gdb 6.0: build on Solaris 5.8 fails for infrun.c
Date: Thu, 23 Oct 2003 16:16:00 -0000 [thread overview]
Message-ID: <3F97FEEA.30209@gnu.org> (raw)
In-Reply-To: <q5g8yncmkuh.fsf@lucent.com>
> 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
next prev parent reply other threads:[~2003-10-23 16:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-23 8:14 Klaus Zeitler
2003-10-23 16:16 ` Andrew Cagney [this message]
2003-10-24 10:15 ` Klaus Zeitler
2003-10-27 20:30 ` Andrew Cagney
2003-10-29 10:53 ` Klaus Zeitler
2003-12-02 7:25 ` Klaus Zeitler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F97FEEA.30209@gnu.org \
--to=cagney@gnu.org \
--cc=gdb@sources.redhat.com \
--cc=kzeitler@lucent.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox