Subject: Re: recent commits to gcc
To: Tom Yu <tlyu@MIT.EDU>
From: Erik Bertelsen <erik@sockdev.uni-c.dk>
List: port-pmax
Date: 11/29/1996 08:13:59
On Thu, 28 Nov 1996, Tom Yu wrote:

I'm playing with exactly the problems mentioned below to try to
get to install a locally compiled gcc / binutils 2.7.

The specific problem mentioned below (related to _gp_disp) can be
avoided by allways calling "cc" as "cc -mno-abicalls", but then
you may have ended up disabling some of the new stuff that's needed
for shared libraries.

Jonathan: Can we get through along this path? Something along
  1 installing (g)cc from the source tree; hereafter cc must be called
    with -mno-abicalls
  2 installing binutils 2.7 (with replaced elf32-mips.c). Do we need
    special ./configure directives? Must we only install parts of
    binutils?
  3 updating libraries
  4 repeating all (or parts) of above ?

- Erik Bertelsen

.. source> jonathan
.. source> Sun Nov 17 11:36:52 PST 1996
.. source> Update of /cvsroot/src/gnu/usr.bin/gcc/arch/mips
.. source> In directory netbsd1:/var/slash-tmp/cvs-serv14613
.. 
.. source> Modified Files:
.. source> netbsd.h 
.. 
.. This change appears to have broken my compiler.  I ran into the
.. "missing crtn.o" problem and fixed via creating a crtn.o from a null
.. source file.  There are still errors after attempting compilation with
.. the newly intalled compiler, e.g.
.. 
.. ===> usr.bin/ftp
.. cc -O -Dunix  -Werror  -c /usr/src/usr.bin/ftp/cmds.c
.. cc -O -Dunix  -Werror  -c /usr/src/usr.bin/ftp/cmdtab.c
.. cc -O -Dunix  -Werror  -c /usr/src/usr.bin/ftp/ftp.c
.. cc -O -Dunix  -Werror  -c /usr/src/usr.bin/ftp/main.c
.. cc -O -Dunix  -Werror  -c /usr/src/usr.bin/ftp/ruserpass.c
.. cc -O -Dunix  -Werror  -c /usr/src/usr.bin/ftp/domacro.c
.. cc   -o ftp cmds.o cmdtab.o ftp.o main.o ruserpass.o domacro.o 
.. cmds.o: In function `another':
.. /usr/src/usr.bin/ftp/cmds.c(.text+0x0): undefined reference to `_gp_disp'
.. /usr/src/usr.bin/ftp/cmds.c(.text+0x4): undefined reference to `_gp_disp'
.. /usr/src/usr.bin/ftp/cmds.c(.text+0x38): relocation truncated to fit: R_MIPS_GOT16 line
.. /usr/src/usr.bin/ftp/cmds.c(..text+0x3c): relocation truncated to fit: R_MIPS_CAL
.. 
.. [rest deleted]
.. 
.. Might this be an interaction between the new gcc and the old
.. (binutils-2.6) ld?  Should I give up and try installing the new pmax
.. shared-library snapshots?
.. 
.. ---Tom
.. 
..