public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* gdb 6.0: build on Solaris 5.8 fails for infrun.c
@ 2003-10-23  8:14 Klaus Zeitler
  2003-10-23 16:16 ` Andrew Cagney
  0 siblings, 1 reply; 6+ messages in thread
From: Klaus Zeitler @ 2003-10-23  8:14 UTC (permalink / raw)
  To: gdb


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?

Thanks,
Klaus


-- 
 ------------------------------------------
|  Klaus Zeitler      Lucent Technologies  |
|  Email:             kzeitler@lucent.com  |
 ------------------------------------------
---
There's no trick to being a humorist when you have the
whole government working for you.      -- Will Rodgers

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: gdb 6.0: build on Solaris 5.8 fails for infrun.c
  2003-10-23  8:14 gdb 6.0: build on Solaris 5.8 fails for infrun.c Klaus Zeitler
@ 2003-10-23 16:16 ` Andrew Cagney
  2003-10-24 10:15   ` Klaus Zeitler
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Cagney @ 2003-10-23 16:16 UTC (permalink / raw)
  To: Klaus Zeitler; +Cc: gdb

> 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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: gdb 6.0: build on Solaris 5.8 fails for infrun.c
  2003-10-23 16:16 ` Andrew Cagney
@ 2003-10-24 10:15   ` Klaus Zeitler
  2003-10-27 20:30     ` Andrew Cagney
  0 siblings, 1 reply; 6+ messages in thread
From: Klaus Zeitler @ 2003-10-24 10:15 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: gdb

    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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: gdb 6.0: build on Solaris 5.8 fails for infrun.c
  2003-10-24 10:15   ` Klaus Zeitler
@ 2003-10-27 20:30     ` Andrew Cagney
  2003-10-29 10:53       ` Klaus Zeitler
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Cagney @ 2003-10-27 20:30 UTC (permalink / raw)
  To: Klaus Zeitler; +Cc: gdb

>     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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: gdb 6.0: build on Solaris 5.8 fails for infrun.c
  2003-10-27 20:30     ` Andrew Cagney
@ 2003-10-29 10:53       ` Klaus Zeitler
  2003-12-02  7:25         ` Klaus Zeitler
  0 siblings, 1 reply; 6+ messages in thread
From: Klaus Zeitler @ 2003-10-29 10:53 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: gdb

>>>>> "Andrew" == Andrew Cagney <cagney@gnu.org> writes:
    Andrew> 
    >> 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:
    Andrew> 
    Andrew> Fortunatly these utils don't need to be built before you can use
    Andrew> GDB.  Anyway, this is again weird - .LL177 is a gcc symbol - so
    Andrew> I'm again wondering about GCC?

oddly enough I can compile/link this file now with the old 2.95.3 again.
I guess it's time to get a recent gcc version and see how far I'll get
then.

Klaus

-- 
 ------------------------------------------
|  Klaus Zeitler      Lucent Technologies  |
|  Email:             kzeitler@lucent.com  |
 ------------------------------------------
---
It's kind of fun to do the impossible. -- Walt Disney

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: gdb 6.0: build on Solaris 5.8 fails for infrun.c
  2003-10-29 10:53       ` Klaus Zeitler
@ 2003-12-02  7:25         ` Klaus Zeitler
  0 siblings, 0 replies; 6+ messages in thread
From: Klaus Zeitler @ 2003-12-02  7:25 UTC (permalink / raw)
  To: gdb

>>>>> "Klaus" == Klaus Zeitler <kzeitler@lucent.com> writes:
    Klaus> 
>>>>> "Andrew" == Andrew Cagney <cagney@gnu.org> writes:
    Andrew> 
    >>> 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:
    Andrew> 
    Andrew> Fortunatly these utils don't need to be built before you can use
    Andrew> GDB.  Anyway, this is again weird - .LL177 is a gcc symbol - so
    Andrew> I'm again wondering about GCC?
    Klaus> 
    Klaus> oddly enough I can compile/link this file now with the old 2.95.3
    Klaus> again.  I guess it's time to get a recent gcc version and see how
    Klaus> far I'll get then.

I finally managed to get and build gcc 3.3.2. With this gcc version gdb 6.0
builds without any problems now under Solaris 5.8.

Thanks

Klaus

-- 
 ------------------------------------------
|  Klaus Zeitler      Lucent Technologies  |
|  Email:             kzeitler@lucent.com  |
 ------------------------------------------
---
/\___/\
                   \_@ @_/
  ---------------oOO-(_)-OOo---------------
 | A day for firm decisions!!!!! Or is it? |
  ----------------ôôô---ôôô----------------
                  \O/   \O/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-12-02  7:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-23  8:14 gdb 6.0: build on Solaris 5.8 fails for infrun.c Klaus Zeitler
2003-10-23 16:16 ` Andrew Cagney
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).