NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/48630: sun4v support causes sparc/sparc64 build failure on netbsd-5/i386 host



The following reply was made to PR toolchain/48630; it has been noted by GNATS.

From: Palle Lyckegaard <palle%lyckegaard.dk@localhost>
To: Martin Husemann <martin%duskware.de@localhost>
Cc: gnats-bugs%NetBSD.org@localhost, palle%NetBSD.org@localhost
Subject: Re: toolchain/48630: sun4v support causes sparc/sparc64 build failure
 on netbsd-5/i386 host
Date: Sun, 9 Mar 2014 14:47:18 +0000 (UTC)

 On Sun, 2 Mar 2014, Martin Husemann wrote:
 
 > This is a nice one. The problem is not netbsd-6 as build host vs. netbsd-5,
 > but a 64bit build host vs. a 32bit one.
 >
 > Gennassym creates the constant in question as:
 >
 > assym.h:#define A_SUN4V_TLB_TSB_LOCK 1152921504606846976
 >
 > while the original definition is:
 >
 > pte.h:#define SUN4V_TLB_TSB_LOCK        0x1000000000000000UL
 >
 >
 > I don't remember right now wether there was some special asm syntax to make
 > gas on 32bit hosts understand 64bit constants (this all sounds like a
 > gas bug to me).
 >
 > Martin
 >
 
 Since the SUN4V support is still incomplete a workaround could be to 
 disable the SUN4V support in the GENERIC_SUN4U config file:
 
 Index: sys/arch/sparc/conf/GENERIC_SUN4U
 ===================================================================
 RCS file: /cvsroot/src/sys/arch/sparc/conf/GENERIC_SUN4U,v
 retrieving revision 1.1
 diff -u -r1.1 GENERIC_SUN4U
 --- sys/arch/sparc/conf/GENERIC_SUN4U   4 Mar 2001 10:12:56 -0000 
 1.1
 +++ sys/arch/sparc/conf/GENERIC_SUN4U   9 Mar 2014 14:18:34 -0000
 @@ -3,3 +3,4 @@
   # Build a 32-bit `sparc64' kernel, that is compatible with our userland.
 
   include "arch/sparc64/conf/GENERIC32"
 +no options SUN4V
 
 
 /Palle
 


Home | Main Index | Thread Index | Old Index