This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC 3.2 on Playstation 2 mips


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]