Subject: Re: sparc64 error when compiling kernel
To: None <port-sparc64@netbsd.org>
From: gaspo <gaspolo@gmail.com>
List: port-sparc64
Date: 02/18/2005 00:34:04
i try to compiling normal kernel GENERIC withous change nothing... i
add only my rtk card an add Gateway option.
and have same error..
i try to compiling GENERIC32 and have same error...
i try with adjustKernel (for find exact configuration for my dmesg)
but same error... what i must modify?



On Thu, 17 Feb 2005 22:59:48 +0000, Eduardo Horvath <eeh@netbsd.org> wrote:
> 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
>