public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* GCC 3.2 on Playstation 2 mips
@ 2002-10-30 10:00 J. Scott Edwards
  2002-10-30 16:29 ` Ricardo Anguiano
  0 siblings, 1 reply; 5+ messages in thread
From: J. Scott Edwards @ 2002-10-30 10:00 UTC (permalink / raw)
  To: gcc-help


Hello,

I'm trying to upgrade the compiler on Linux Playstation 2 from 2.95.2 to
3.2.  I've tried the ./configure; make bootstrap with some minor
variations and it always seems to fail when it gets to compiling libgcc2.c
-> _divdi3.o with ./xgcc with complaining that  BFD_RELOC_32_PCREL won't
fit in the object file format.

I ran it with -S to get an assembly file and tried to assemble it with the
old assembler, but it failed in the same way.  So I concluded that the
problem must lie in the generated assembly code.

I looked at the code it was complaining about and I thought it was perhaps
the:

  .byte4 LABELXX-LABELYY

that was causing the problem.

However if I compile it to assembly with the 2.95 compiler the assembly
code has that same code in it.

So now I'm not sure exactly what the problem is?

Next I installed the sources and patches for the 2.95 compiler to see what
it looked like and the patch file is pretty large.

So now I'm wondering what the best approach would be to get GCC 3.2
running?  Would it be better to keep messing around with GCC 3.2 and try
to get it to work or would it be better to study the old 2.95 changes and
try to do the same things to 3.2?

Thanks for any advice
  -Scott

P.S. If I can get this to work is it possible to submit the files back
into GCC so that 3.3 won't be as much work to build on PS2?




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

* Re: GCC 3.2 on Playstation 2 mips
  2002-10-30 10:00 GCC 3.2 on Playstation 2 mips J. Scott Edwards
@ 2002-10-30 16:29 ` Ricardo Anguiano
  2002-10-30 20:17   ` J. Scott Edwards
  0 siblings, 1 reply; 5+ messages in thread
From: Ricardo Anguiano @ 2002-10-30 16:29 UTC (permalink / raw)
  To: J. Scott Edwards; +Cc: gcc-help

"J. Scott Edwards" <sedwards@xmission.com> writes:

> Hello,
> 
> I'm trying to upgrade the compiler on Linux Playstation 2 from
> 2.95.2 to 3.2.  I've tried the ./configure; make bootstrap with some
> minor variations and it always seems to fail when it gets to
> compiling libgcc2.c -> _divdi3.o with ./xgcc with complaining that
> BFD_RELOC_32_PCREL won't fit in the object file format.

From your statements above, it looks like your build directory is the
same as your source directory, which is not supported.

If this is the case, see the install pages:

        http://gcc.gnu.org/install/index.html

Specifically see the section on configuring:

        http://gcc.gnu.org/install/configure.html

HTH,
-- 
Ricardo Anguiano
CodeSourcery, LLC

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

* Re: GCC 3.2 on Playstation 2 mips
  2002-10-30 16:29 ` Ricardo Anguiano
@ 2002-10-30 20:17   ` J. Scott Edwards
  2002-10-30 20:54     ` gcc-help@gcc.gnu.org vetcha prasad kumar
  2002-10-30 21:00     ` GCC 3.2 on Playstation 2 mips Ricardo Anguiano
  0 siblings, 2 replies; 5+ messages in thread
From: J. Scott Edwards @ 2002-10-30 20:17 UTC (permalink / raw)
  To: Ricardo Anguiano; +Cc: gcc-help



On 30 Oct 2002, Ricardo Anguiano wrote:

> "J. Scott Edwards" <sedwards@xmission.com> writes:
>
> > Hello,
> >
> > I'm trying to upgrade the compiler on Linux Playstation 2 from
> > 2.95.2 to 3.2.  I've tried the ./configure; make bootstrap with some
> > minor variations and it always seems to fail when it gets to
> > compiling libgcc2.c -> _divdi3.o with ./xgcc with complaining that
> > BFD_RELOC_32_PCREL won't fit in the object file format.
>
> >From your statements above, it looks like your build directory is the
> same as your source directory, which is not supported.
>
> If this is the case, see the install pages:
>
>         http://gcc.gnu.org/install/index.html
>
> Specifically see the section on configuring:
>
>         http://gcc.gnu.org/install/configure.html
>

No, I'm building in a separate directory.  I'm trying to follow the
installation instructions as closely as possible.  This is the end of the
make:

./xgcc -B./ -B/usr/local/mipsel-pc-linux-gnu/bin/ -isystem /usr/local/mipsel-pc-linux-gnu/include -isystem /usr/local/mipsel-pc-linux-gnu/sys-include -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../gcc-3.2/gcc -I../../gcc-3.2/gcc/. -I../../gcc-3.2/gcc/config -I../../gcc-3.2/gcc/../include  -DL_negvdi2 -c ../../gcc-3.2/gcc/libgcc2.c -o libgcc/./_negvdi2.o
./xgcc -B./ -B/usr/local/mipsel-pc-linux-gnu/bin/ -isystem /usr/local/mipsel-pc-linux-gnu/include -isystem /usr/local/mipsel-pc-linux-gnu/sys-include -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../gcc-3.2/gcc -I../../gcc-3.2/gcc/. -I../../gcc-3.2/gcc/config -I../../gcc-3.2/gcc/../include  -DL_ctors -c ../../gcc-3.2/gcc/libgcc2.c -o libgcc/./_ctors.o
./xgcc -B./ -B/usr/local/mipsel-pc-linux-gnu/bin/ -isystem /usr/local/mipsel-pc-linux-gnu/include -isystem /usr/local/mipsel-pc-linux-gnu/sys-include -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../gcc-3.2/gcc -I../../gcc-3.2/gcc/. -I../../gcc-3.2/gcc/config -I../../gcc-3.2/gcc/../include  -DL_divdi3 -c ../../gcc-3.2/gcc/libgcc2.c -fexceptions -fnon-call-exceptions -o libgcc/./_divdi3.o
/tmp/cc0GVsc4.s: Assembler messages:
/tmp/cc0GVsc4.s:1175: Error: Can not represent BFD_RELOC_32_PCREL relocation in this object file format
/tmp/cc0GVsc4.s:1205: Error: Can not represent BFD_RELOC_32_PCREL relocation in this object file format
make[3]: *** [libgcc/./_divdi3.o] Error 1
make[3]: Leaving directory `/usr.orig/src/gcc3/gcc'
make[2]: *** [libgcc.a] Error 2
make[2]: Leaving directory `/usr.orig/src/gcc3/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/usr.orig/src/gcc3/gcc'
make: *** [bootstrap] Error 2

Thanks
  -Scott



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

* gcc-help@gcc.gnu.org
  2002-10-30 20:17   ` J. Scott Edwards
@ 2002-10-30 20:54     ` vetcha prasad kumar
  2002-10-30 21:00     ` GCC 3.2 on Playstation 2 mips Ricardo Anguiano
  1 sibling, 0 replies; 5+ messages in thread
From: vetcha prasad kumar @ 2002-10-30 20:54 UTC (permalink / raw)
  To: gcc-help

Hi All,

I want to develop a ARM core for the academic project.
So I am not using all the features and full
instruction set of the ARM architecture.

I had a problem with porting the source code to it. I
have downloaded a gcc3.2 version compiler. How can i
customize the gcc compiler for this. So please tell me
the procedure and documents, if any available. Please
mention the links, if any available.

Thanks in advance

Regards,

Prasad

________________________________________________________________________
Missed your favourite TV serial last night? Try the new, Yahoo! TV.
       visit http://in.tv.yahoo.com

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

* Re: GCC 3.2 on Playstation 2 mips
  2002-10-30 20:17   ` J. Scott Edwards
  2002-10-30 20:54     ` gcc-help@gcc.gnu.org vetcha prasad kumar
@ 2002-10-30 21:00     ` Ricardo Anguiano
  1 sibling, 0 replies; 5+ messages in thread
From: Ricardo Anguiano @ 2002-10-30 21:00 UTC (permalink / raw)
  To: J. Scott Edwards; +Cc: gcc-help

"J. Scott Edwards" <sedwards@xmission.com> writes:

> On 30 Oct 2002, Ricardo Anguiano wrote:
> > "J. Scott Edwards" <sedwards@xmission.com> writes:
> > > I'm trying to upgrade the compiler on Linux Playstation 2 from
> > > 2.95.2 to 3.2.  I've tried the ./configure; make bootstrap with some
[...]
> >
> > >From your statements above, it looks like your build directory is the
> > same as your source directory, which is not supported.
[...]
>
> No, I'm building in a separate directory.  I'm trying to follow the
> installation instructions as closely as possible.  This is the end of the
> make:
>
[...]
> ./xgcc -B./ -B/usr/local/mipsel-pc-linux-gnu/bin/ -isystem /usr/local/mipsel-pc-linux-gnu/include -isystem /usr/local/mipsel-pc-linux-gnu/sys-include -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../gcc-3.2/gcc -I../../gcc-3.2/gcc/. -I../../gcc-3.2/gcc/config -I../../gcc-3.2/gcc/../include  -DL_divdi3 -c ../../gcc-3.2/gcc/libgcc2.c -fexceptions -fnon-call-exceptions -o libgcc/./_divdi3.o
> /tmp/cc0GVsc4.s: Assembler messages:
> /tmp/cc0GVsc4.s:1175: Error: Can not represent BFD_RELOC_32_PCREL relocation in this object file format
> /tmp/cc0GVsc4.s:1205: Error: Can not represent BFD_RELOC_32_PCREL relocation in this object file format
> make[3]: *** [libgcc/./_divdi3.o] Error 1
> make[3]: Leaving directory `/usr.orig/src/gcc3/gcc'
> make[2]: *** [libgcc.a] Error 2
> make[2]: Leaving directory `/usr.orig/src/gcc3/gcc'
> make[1]: *** [stage1_build] Error 2
> make[1]: Leaving directory `/usr.orig/src/gcc3/gcc'
> make: *** [bootstrap] Error 2

This is good, but over my head.  I suggest reposting this information
on the main gcc list (gcc@gnu.org) with your configure line, the
source you are using (looks like 3.2 release), and the compiler you
are using to build, along with the platform information (uname -a or
similar), and importantly the error message above.

I don't know the answer, but if I had to guess, I would say this is a
problem with an out of date assembler (.s -> .o) and thus a stale
binutils.  The assembler doesn't know how to handle the
BFD_RELOC_32_PCREL relocation in a.out/elf or whatever object format
you are using.  If you don't get any responses, try a newer version of
binutils.  The newer assembler might know how to handle that
relocation.

HTH,
--
Ricardo Anguiano
CodeSourcery, LLC

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

end of thread, other threads:[~2002-10-31  5:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-30 10:00 GCC 3.2 on Playstation 2 mips J. Scott Edwards
2002-10-30 16:29 ` Ricardo Anguiano
2002-10-30 20:17   ` J. Scott Edwards
2002-10-30 20:54     ` gcc-help@gcc.gnu.org vetcha prasad kumar
2002-10-30 21:00     ` GCC 3.2 on Playstation 2 mips Ricardo Anguiano

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).