Subject: Re: sparc64 error when compiling kernel
To: matthew green <mrg@eterna.com.au>
From: Eduardo Horvath <eeh@NetBSD.org>
List: port-sparc64
Date: 02/17/2005 22:59:48
On Fri, Feb 18, 2005 at 09:17:11AM +1100, matthew green wrote:
> 
>    On Fri, Feb 18, 2005 at 09:02:48AM +1100, matthew green wrote:
>    > there is a hidden (make @ rule) ld -x -r for all library objects...

ISTR that's only for non-debug libraries and I thought it was only
for userland libs.  I wonder if he removed something that forced
the `-g' build flag (that turns off that hidden rule).

>    oh. well hidden.
>    
>    Still, gaspo must be doing something wrong to get the 32bit code in the first
>    place.
> 
> 
> i'd guess using the wrong compiler (32 bit) when building GENERIC
> (instead of GENERIC32) but it's hard to say off hand...  (possibly
> it is the exact reverse..)

It looks like he's using an assembler that's generating 32-bit
object files and a linker that's expecting 64-bit object files.  
Maybe he's overriding one of the flags that forces the assembler
to generate 64-bit binaries.  Who knows.  He needs to tell us
what he's doing.

Eduardo