From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 15620 invoked from network); 17 Sep 1998 12:58:08 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 17 Sep 1998 12:58:08 -0000 Received: from cygnus.com (runyon.cygnus.com [205.180.230.5]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id IAA30219 for ; Thu, 17 Sep 1998 08:58:37 -0400 Received: from dot.cygnus.com (dot.cygnus.com [205.180.230.224]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id FAA07791; Thu, 17 Sep 1998 05:57:55 -0700 (PDT) Received: (rth@localhost) by dot.cygnus.com (8.8.7/8.6.4) id FAA00574; Thu, 17 Sep 1998 05:57:54 -0700 Message-ID: <19980917055754.B523@dot.cygnus.com> Date: Thu, 17 Sep 1998 05:57:54 -0700 From: Richard Henderson To: Eric@KPN.COM, axp-list@redhat.com Subject: Re: Error compiling kernel 2.1.121 Reply-To: Richard Henderson References: <199809171216.OAA17545@hdxl29.kpn.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1 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~