From unknown Thu Jun 19 14:04:57 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#13353 <13353@debbugs.gnu.org> To: bug#13353 <13353@debbugs.gnu.org> Subject: Status: Coreutils-8.20 mips build broken Reply-To: bug#13353 <13353@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:04:57 +0000 retitle 13353 Coreutils-8.20 mips build broken reassign 13353 coreutils submitter 13353 Marko Lindqvist severity 13353 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 04 00:46:20 2013 Received: (at submit) by debbugs.gnu.org; 4 Jan 2013 05:46:21 +0000 Received: from localhost ([127.0.0.1]:42502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tr06l-0000YD-T1 for submit@debbugs.gnu.org; Fri, 04 Jan 2013 00:46:20 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53325) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tr06V-0000Xi-Pt for submit@debbugs.gnu.org; Fri, 04 Jan 2013 00:46:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tr06Q-0000FB-37 for submit@debbugs.gnu.org; Fri, 04 Jan 2013 00:45:58 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-102.3 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, USER_IN_WHITELIST autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:49107) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tr06Q-0000F7-08 for submit@debbugs.gnu.org; Fri, 04 Jan 2013 00:45:58 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36454) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tr06N-0000HT-CD for bug-coreutils@gnu.org; Fri, 04 Jan 2013 00:45:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tr06M-0000Et-J9 for bug-coreutils@gnu.org; Fri, 04 Jan 2013 00:45:55 -0500 Received: from mail-vb0-f44.google.com ([209.85.212.44]:35108) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tr06M-0000Eo-EJ for bug-coreutils@gnu.org; Fri, 04 Jan 2013 00:45:54 -0500 Received: by mail-vb0-f44.google.com with SMTP id fc26so16163381vbb.31 for ; Thu, 03 Jan 2013 21:45:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=wHAe1l6Id5sA5hR2FZl80glKM8CB6/UkZRP/L3LkGSc=; b=KJ0tRAenLpS0eaTPW8FKVf1+jpAeyu/r7DhP99gbsWDG4CSHtOaoO3t09C1YilSe7/ rKllY70UvP5O9HLJ+84hqe6RR7GrJveuaMTDjZD/LRbQlboOmCJzb6na6BAy401pghzl osWK/fGYC4w8jahvrf8jPpSGjG1yZULftftZojIkICJr2zTKhKhzuvWHS/YfZjehspLN 19wlGnErhCl74kEqyqOBlHiq3VyxIsOBKE4AlcKf7SOz1/sFN78/2NuhX4Ur6fTg1uRr GQoC3ZmzQD8xnU+DnRh6gwEPiAqkEhuarbl2IPf2QL6CdqWn3S4OTQMYQ/bzEVnB1c1P h54w== MIME-Version: 1.0 Received: by 10.58.49.130 with SMTP id u2mr78819117ven.0.1357278352863; Thu, 03 Jan 2013 21:45:52 -0800 (PST) Received: by 10.58.80.2 with HTTP; Thu, 3 Jan 2013 21:45:52 -0800 (PST) Date: Fri, 4 Jan 2013 07:45:52 +0200 Message-ID: Subject: Coreutils-8.20 mips build broken From: Marko Lindqvist To: bug-coreutils@gnu.org Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -3.2 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.2 (---) I've tried to update coreutils version used in OpenEmbedded. I've been building for x86, arm, and mips architectures. Coreutils-8.19 builds fine for all three, but 8.20 fails on mips with lots of "unable to emulate 'TI'" errors and "right whift count >= width of type" warnings from src/factor.c. First error comes from line 766. - ML From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 04 03:51:25 2013 Received: (at 13353) by debbugs.gnu.org; 4 Jan 2013 08:51:25 +0000 Received: from localhost ([127.0.0.1]:42617 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tr2zs-0006yw-Kt for submit@debbugs.gnu.org; Fri, 04 Jan 2013 03:51:25 -0500 Received: from smtp.cs.ucla.edu ([131.179.128.62]:49392) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tr2zp-0006yo-WA for 13353@debbugs.gnu.org; Fri, 04 Jan 2013 03:51:23 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 6D66FA60006; Fri, 4 Jan 2013 00:51:15 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OFiElc8l1AuB; Fri, 4 Jan 2013 00:51:15 -0800 (PST) Received: from [192.168.1.9] (pool-71-189-154-249.lsanca.fios.verizon.net [71.189.154.249]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 0E143A60005; Fri, 4 Jan 2013 00:51:15 -0800 (PST) Message-ID: <50E69802.40008@cs.ucla.edu> Date: Fri, 04 Jan 2013 00:51:14 -0800 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Marko Lindqvist Subject: Re: bug#13353: Coreutils-8.20 mips build broken References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -1.5 (-) X-Debbugs-Envelope-To: 13353 Cc: 13353@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.5 (-) On 01/03/2013 09:45 PM, Marko Lindqvist wrote: > 8.20 fails on mips with lots of "unable to > emulate 'TI'" errors That sounds like a compiler problem of some sort. > "right whift count >= width of type" warnings > from src/factor.c. First error comes from line 766. What's the output of 'cc -E' for that file, using the same flags as is used for 'cc -c'? This will help us track down what's shifting what. From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 04 06:40:30 2013 Received: (at 13353) by debbugs.gnu.org; 4 Jan 2013 11:40:30 +0000 Received: from localhost ([127.0.0.1]:42727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tr5dV-00043b-EE for submit@debbugs.gnu.org; Fri, 04 Jan 2013 06:40:30 -0500 Received: from mail-vc0-f174.google.com ([209.85.220.174]:49438) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tr5dK-00043I-IP for 13353@debbugs.gnu.org; Fri, 04 Jan 2013 06:40:20 -0500 Received: by mail-vc0-f174.google.com with SMTP id d16so16135931vcd.19 for <13353@debbugs.gnu.org>; Fri, 04 Jan 2013 03:40:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=vJ85mWPSq7tPzVL1b8MGSi6xTLGyVopWSXyHPCxIeFs=; b=Y+eqnqCfQzY6oKlIUsPI/GBh0MKnrU5o0xwBUoYpgN38qxeTKgTuUqxMdyrfdIAtf4 VEQhHLXLnLFSWIlxp3PDC7S5zWWqeRkT9HYa+KYy1/WKRQhing7hyxm266xLkTsKE2Rf MjXR4LJRWxv8k+bxpRcBZEmQ/GmNqfopuxxN0rse8oYeFwUCm3rIhg+cWKox6cVjSeqS 2sC4NgeDQoaH3e9fShjMp38zOp+/9ywL0UH25IRKtpNvn45sBa0Lh06w+eCAELUhxXxq P+xDvVs+YhtySMZQjvTovQbHb2axKTmnpCRJ5jf/DBTc2KwgjW2TmkU/3m2v7PfRMc9p JDhA== MIME-Version: 1.0 Received: by 10.220.218.197 with SMTP id hr5mr74918078vcb.8.1357299611499; Fri, 04 Jan 2013 03:40:11 -0800 (PST) Received: by 10.58.80.2 with HTTP; Fri, 4 Jan 2013 03:40:11 -0800 (PST) In-Reply-To: <50E69802.40008@cs.ucla.edu> References: <50E69802.40008@cs.ucla.edu> Date: Fri, 4 Jan 2013 13:40:11 +0200 Message-ID: Subject: Re: bug#13353: Coreutils-8.20 mips build broken From: Marko Lindqvist To: Paul Eggert Content-Type: text/plain; charset=UTF-8 X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: 13353 Cc: 13353@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.4 (/) On 4 January 2013 10:51, Paul Eggert wrote: > On 01/03/2013 09:45 PM, Marko Lindqvist wrote: >> 8.20 fails on mips with lots of "unable to >> emulate 'TI'" errors > > That sounds like a compiler problem of some sort. I've tried to find proper gcc documentation clearly stating which architectures TImode is available, but found none. There's old emails discussing the possibility of implementing TImode to MIPS, but it's not clear to me what's the current status is even supposed to be. >> "right whift count >= width of type" warnings >> from src/factor.c. First error comes from line 766. This warning is likely to follow from the error above, and not to be separate issue. - ML From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 04 07:12:59 2013 Received: (at 13353) by debbugs.gnu.org; 4 Jan 2013 12:12:59 +0000 Received: from localhost ([127.0.0.1]:42754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tr68u-0004sb-9W for submit@debbugs.gnu.org; Fri, 04 Jan 2013 07:12:58 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56085) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tr68m-0004sM-JV for 13353@debbugs.gnu.org; Fri, 04 Jan 2013 07:12:50 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r04CCfqf018926 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 4 Jan 2013 07:12:41 -0500 Received: from [10.36.116.81] (ovpn-116-81.ams2.redhat.com [10.36.116.81]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r04CCbEf025025 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Fri, 4 Jan 2013 07:12:39 -0500 Message-ID: <50E6C735.3020300@draigBrady.com> Date: Fri, 04 Jan 2013 12:12:37 +0000 From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: Marko Lindqvist Subject: Re: bug#13353: Coreutils-8.20 mips build broken References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mx1.redhat.com id r04CCfqf018926 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 13353 Cc: 13353@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) On 01/04/2013 05:45 AM, Marko Lindqvist wrote: > I've tried to update coreutils version used in OpenEmbedded. I've been > building for x86, arm, and mips architectures. Coreutils-8.19 builds > fine for all three, but 8.20 fails on mips with lots of "unable to > emulate 'TI'" errors and "right whift count >=3D width of type" warning= s > from src/factor.c. First error comes from line 766. That's umul_ppmm() which is coming from longlong.h #if (defined (__mips) && __mips >=3D 3) && W_TYPE_SIZE =3D=3D 64 #if __GMP_GNUC_PREREQ (4,4) #define umul_ppmm(w1, w0, u, v) \ do { = \ typedef unsigned int __ll_UTItype __attribute__((mode(TI))); = \ __ll_UTItype __ll =3D (__ll_UTItype)(u) * (v); = \ w1 =3D __ll >> 64; = \ w0 =3D __ll; = \ } while (0) #endif I've only gcc (RAYS 4.3.0-4.rays0) 4.3.1 20080501 (prerelease) on an ICT Loongson-2 V0.3 FPU V0.1 but that allows me to check various macros to key on.... $ for abi in 32 o64 n32 64; do for cpu in mips1 mips2 mips3 mips4 mips32 mips32r2 mips64; do echo "--------- $cpu/$abi --------" cpp -mabi=3D$abi -march=3D$cpu -dM /dev/null | grep -Ei "__mips |LP|_MPIS_SZ" done done --------- mips1/32 -------- #define __mips 1 --------- mips2/32 -------- #define __mips 2 --------- mips3/32 -------- #define __mips 3 --------- mips4/32 -------- #define __mips 4 --------- mips32/32 -------- #define __mips 32 --------- mips32r2/32 -------- #define __mips 32 --------- mips64/32 -------- #define __mips 64 --------- mips1/o64 -------- cc1: error: '-march=3Dmips1' is not compatible with the selected ABI --------- mips2/o64 -------- cc1: error: '-march=3Dmips2' is not compatible with the selected ABI --------- mips3/o64 -------- #define __mips 3 --------- mips4/o64 -------- #define __mips 4 --------- mips32/o64 -------- cc1: error: '-march=3Dmips32' is not compatible with the selected ABI --------- mips32r2/o64 -------- cc1: error: '-march=3Dmips32r2' is not compatible with the selected ABI --------- mips64/o64 -------- #define __mips 64 --------- mips1/n32 -------- cc1: error: '-march=3Dmips1' is not compatible with the selected ABI --------- mips2/n32 -------- cc1: error: '-march=3Dmips2' is not compatible with the selected ABI --------- mips3/n32 -------- #define __mips 3 --------- mips4/n32 -------- #define __mips 4 --------- mips32/n32 -------- cc1: error: '-march=3Dmips32' is not compatible with the selected ABI --------- mips32r2/n32 -------- cc1: error: '-march=3Dmips32r2' is not compatible with the selected ABI --------- mips64/n32 -------- #define __mips 64 --------- mips1/64 -------- cc1: error: '-march=3Dmips1' is not compatible with the selected ABI --------- mips2/64 -------- cc1: error: '-march=3Dmips2' is not compatible with the selected ABI --------- mips3/64 -------- #define __LP64__ 1 #define _LP64 1 #define __mips 3 --------- mips4/64 -------- #define __LP64__ 1 #define _LP64 1 #define __mips 4 --------- mips32/64 -------- cc1: error: '-march=3Dmips32' is not compatible with the selected ABI --------- mips32r2/64 -------- cc1: error: '-march=3Dmips32r2' is not compatible with the selected ABI --------- mips64/64 -------- #define __LP64__ 1 #define _LP64 1 #define __mips 64 Notice that the macro in longlong.h checks __mips > 3 but note that that can be 32 or 64 dependent on --march. In any case it looks like we also need to key on _LP64. So could you try the following patch. With your compiler options it will probably avoid the code in longlong.h, or you may also like to try -mabi=3D64 --march=3Dfrom-abi if appropriate. diff src/longlong.h.orig src/longlong.h 1240c1240 < #if (defined (__mips) && __mips >=3D 3) && W_TYPE_SIZE =3D=3D 64 --- > #if (defined (__mips) && __mips >=3D 3) && W_TYPE_SIZE =3D=3D 64 && de= fined (_LP64) thanks, P=C3=A1draig. From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 04 11:23:14 2013 Received: (at 13353) by debbugs.gnu.org; 4 Jan 2013 16:23:14 +0000 Received: from localhost ([127.0.0.1]:43738 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TrA37-0004Jr-QW for submit@debbugs.gnu.org; Fri, 04 Jan 2013 11:23:14 -0500 Received: from mail-vc0-f179.google.com ([209.85.220.179]:46252) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TrA34-0004Jj-I4 for 13353@debbugs.gnu.org; Fri, 04 Jan 2013 11:23:11 -0500 Received: by mail-vc0-f179.google.com with SMTP id p1so16512333vcq.38 for <13353@debbugs.gnu.org>; Fri, 04 Jan 2013 08:23:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=y8Si76cCex+HZfdtGIl1y1a+TXNoZ7XbHL9Z+5cxHFE=; b=JUZv4OijrGVxMa+ynJ8IDUZuhmwSRr/kJ/580ehQQfGhzpoQUpnKDXjNETrUSDQGJL Nlq5gZqSHVIl6je5KfCSOrMiDK1SG7ePSanXoWzPURGouYOdne/OUJF1djExboiOnEpF FGFEbb3Rl4FVVktT8ArXWHFSJO9sStOj4hqzBpkSE2ERNC63RvM+GICCHsGIVMRN5GH6 VqSw+fTR9QBiZqYmq/yg1pUVidfMGQai4hvhYF2aIkm7MzCfBFsigrDhOfXs6QKtGGyn VHoTlPs8rniEGAzL67EyZwY3G+mhzwE8YW5ytAQiWDfPad7SRN/nITAgeMDgUg+toovy MHSA== MIME-Version: 1.0 Received: by 10.52.98.134 with SMTP id ei6mr66912786vdb.114.1357316582616; Fri, 04 Jan 2013 08:23:02 -0800 (PST) Received: by 10.58.80.2 with HTTP; Fri, 4 Jan 2013 08:23:02 -0800 (PST) In-Reply-To: <50E6C735.3020300@draigBrady.com> References: <50E6C735.3020300@draigBrady.com> Date: Fri, 4 Jan 2013 18:23:02 +0200 Message-ID: Subject: Re: bug#13353: Coreutils-8.20 mips build broken From: Marko Lindqvist To: =?UTF-8?Q?P=C3=A1draig_Brady?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: 13353 Cc: 13353@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.4 (/) On 4 January 2013 14:12, P=C3=A1draig Brady wrote: > > So could you try the following patch. > diff src/longlong.h.orig src/longlong.h > 1240c1240 > < #if (defined (__mips) && __mips >=3D 3) && W_TYPE_SIZE =3D=3D 64 > --- >> #if (defined (__mips) && __mips >=3D 3) && W_TYPE_SIZE =3D=3D 64 && defi= ned >> (_LP64) > > thanks, > P=C3=A1draig. Yes, that works. Thank you. - ML From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 04 12:02:29 2013 Received: (at 13353-done) by debbugs.gnu.org; 4 Jan 2013 17:02:29 +0000 Received: from localhost ([127.0.0.1]:43768 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TrAf7-0004lp-1v for submit@debbugs.gnu.org; Fri, 04 Jan 2013 12:02:29 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50285) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TrAf4-0004li-5T for 13353-done@debbugs.gnu.org; Fri, 04 Jan 2013 12:02:27 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r04H2Hri004143 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 4 Jan 2013 12:02:17 -0500 Received: from [10.36.116.81] (ovpn-116-81.ams2.redhat.com [10.36.116.81]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r04H2Fka006650 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Fri, 4 Jan 2013 12:02:16 -0500 Message-ID: <50E70B16.7070304@draigBrady.com> Date: Fri, 04 Jan 2013 17:02:14 +0000 From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: Marko Lindqvist Subject: Re: bug#13353: Coreutils-8.20 mips build broken References: <50E6C735.3020300@draigBrady.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mx1.redhat.com id r04H2Hri004143 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 13353-done Cc: 13353-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) On 01/04/2013 04:23 PM, Marko Lindqvist wrote: > On 4 January 2013 14:12, P=C3=A1draig Brady wrote: >> >> So could you try the following patch. > >> diff src/longlong.h.orig src/longlong.h >> 1240c1240 >> < #if (defined (__mips) && __mips >=3D 3) && W_TYPE_SIZE =3D=3D 64 >> --- >>> #if (defined (__mips) && __mips >=3D 3) && W_TYPE_SIZE =3D=3D 64 && d= efined >>> (_LP64) >> >> thanks, >> P=C3=A1draig. > > Yes, that works. Thank you. OK cool. I think I'll use this more general patch instead. thanks, P=C3=A1draig. diff --git a/src/factor.c b/src/factor.c index 473eee7..95451a5 100644 --- a/src/factor.c +++ b/src/factor.c @@ -118,7 +118,14 @@ #endif #ifndef USE_LONGLONG_H -# define USE_LONGLONG_H 1 +/* With the way we use longlong.h, it's only safe to use + when UWtype =3D UHWtype, as there were various cases + (as can be seen in the history for longlong.h) where + for example, _LP64 was required to enable W_TYPE_SIZE=3D=3D64 code, + to avoid compile time or run time issues. */ +# if LONG_MAX =3D=3D INTMAX_MAX +# define USE_LONGLONG_H 1 +# endif #endif #if USE_LONGLONG_H From unknown Thu Jun 19 14:04:57 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 02 Feb 2013 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator