From: Klaus Zeitler <kzeitler@lucent.com>
To: Andrew Cagney <cagney@gnu.org>
Cc: gdb@sources.redhat.com
Subject: Re: gdb 6.0: build on Solaris 5.8 fails for infrun.c
Date: Fri, 24 Oct 2003 10:15:00 -0000 [thread overview]
Message-ID: <q5gvfqfkkl5.fsf@lucent.com> (raw)
In-Reply-To: <3F97FEEA.30209@gnu.org>
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
next prev parent reply other threads:[~2003-10-24 10:15 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
2003-10-24 10:15 ` Klaus Zeitler [this message]
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=q5gvfqfkkl5.fsf@lucent.com \
--to=kzeitler@lucent.com \
--cc=cagney@gnu.org \
--cc=gdb@sources.redhat.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