Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Richard Henderson <rth@cygnus.com>
To: Eric@KPN.COM, axp-list@redhat.com
Subject: Re: Error compiling kernel 2.1.121
Date: Thu, 17 Sep 1998 05:57:54 -0700	[thread overview]
Message-ID: <19980917055754.B523@dot.cygnus.com> (raw)
In-Reply-To: <199809171216.OAA17545@hdxl29.kpn.com>; from Eric@KPN.COM on Thu, Sep 17, 1998 at 02:16:04PM +0200

On Thu, Sep 17, 1998 at 02:16:04PM +0200, Eric@KPN.COM wrote:
> 	Crosscompiling on SMP PPro

This is your problem.

It is an unfortunate fact that the c preprocessor does not do
arithmetic at the same width as the cross-compiler it was built for. 
It is an even more unfortunate fact that this is allowed by ISO C,
making it difficult to convince folks that it needs fixing.

So you'll have to change all of the bits that do this

#if ((~0UL) == 0xffffffff)

and just have the code assume 64-bit data types.  

Even beyond this, be warned that cross-compiling from a 32-bit host
will produce _significantly_ worse code that compiling native.


r~


  reply	other threads:[~1998-09-17 12:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-09-17 12:16 Error compiling kernel 2.1.121 Eric
1998-09-17 12:57 ` Richard Henderson [this message]
1998-09-17 13:13   ` Stefan Schroepfer
1998-09-17 13:22   ` Matti Aarnio
1998-09-17 13:39     ` Richard Henderson
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox