Subject: Re: Build Environment for Sparc64
To: Henry Pierce <hmp32@hotmail.com>
From: Eduardo Horvath <eeh@turbolinux.com>
List: port-sparc64
Date: 04/18/2000 13:37:30
On Tue, 18 Apr 2000, Henry Pierce wrote:

> >On Wed, 12 Apr 2000, Henry Pierce wrote:
> >
> >The kernel build is self-contained.  It does not use anything in
> >/usr/include.
> >
> >What you need to do is build a 64-bit toolchain:
> >
> >	binutils-2.9.1 with the bugfix or the in-tree version configured
> >		with --enable-64-bit-bfd
> >
> >	egcs or post-egcs gcc configured with target=sparc64-*-elf
> >
> 
> Apparently the NetBSD patch to the binutils in-tree was done in
> 
> opcodes/sparc-opc.c
> 
> Is this correct?  From what I have read, I can copy NetBSD in-tree
> version to binutils-2.9.1/opcodes/sparc-opc.c and have a functional
> binutils-2.9.1.  However, I have diff'd the sparc-opc.c from
> binutils-2.9.1 and the in-tree version from NetBSD and don't see
> a difference between the two file (I have checked out the HEAD of
> the NetBSD tree).
> 
> So, what/where is the NetBSD changes that I need to apply to binutils-2.9.1? 
>   I am trying to build a functional cross-compiler
> platform.

You're right.  The did not seem to have made it into the NetBSD tree.  I
have just checked in the fix.  

If you want to fix it yourself here's how:

There's and extra space in the quoted string on line 1320 of
sparc-opc.c.  Delete it.

Here's a patch:
Index: gnu/dist/opcodes/sparc-opc.c
===================================================================
RCS file: /cvsroot/gnusrc/gnu/dist/opcodes/sparc-opc.c,v
retrieving revision 1.1.1.2
retrieving revision 1.2
diff -r1.1.1.2 -r1.2
1320c1320
<  { opcode, FBFCC(3)|(mask)|ANNUL, BPRED|FBFCC(~3)|(lose), ",a,N  9,G", flags|F_DELAYED|F_FBR, v9 }
---
>  { opcode, FBFCC(3)|(mask)|ANNUL, BPRED|FBFCC(~3)|(lose), ",a,N 9,G", flags|F_DELAYED|F_FBR, v9 }


Eduardo Horvath