From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sonic311-30.consmr.mail.ir2.yahoo.com (sonic311-30.consmr.mail.ir2.yahoo.com [77.238.176.162]) by sourceware.org (Postfix) with ESMTPS id CDCB23851C27 for ; Wed, 3 Jun 2020 14:57:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org CDCB23851C27 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=eggen.co.uk Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=bre08@eggen.co.uk DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1591196275; bh=/lha/VXcBUaXMPwVEpY4cMylnJT4baIJzn9QeZUMdDM=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject; b=l0YIPVFTvnjqB0WUAYQ9LsTGGUtZl7XusN0gnk0KUm1NAukBp+Vezmr2Tnf/DzzThPDXIzMDP/AmzYRPDeMFjvoWN7hW8R1q9jievlwm6Cilgrbb3nljBKAv28cuD78U3/10B4GByaEFQ82Yi4v5gh7OVQgp1keTPRwCU5G/Hjqk6CWtIizJKfALfsj+wezYnJVkoMiDuu1YLijolcAOwmX9Ms8AAxGk43rstGBj+JwramUSH+aLRi+oZHxg5A99wUyL2AHul4hJHJB6hEA5lhvZqgwO5nzo9YX0Ki2icMik87Vpxqfs/CBI8fTkPIVl+LsnDY8j+3jhd38BDGvftQ== X-YMail-OSG: z2UtQdEVM1k0z1CvmtMEs_msIJXiylx.8PUVSCyGwAo.3zjnxzu_6JbAjuyQTZ9 7phu2S_ZqYuYzwITAorzo1waBWJgxJx67IIuICdHeLfJqdFpaIn9xIKEGjXAQA3oBpr24kboHbb6 YbLDhTkzkhhnxCcKt0PT0A6HkGRSAOXWzMRToabl7Q_zJ74n.FlR2nwI18lvWM_KMhY9cFFEuucR YuHB.sJ_ij0OsRoG4eVkJbC60AP6eYlImjaGtvS_.uMT3L5rCiO7y2LZbHKr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hJSmjrzMItlov.WuqO4p.2GWb qjtKmCyGV0S50zkhdXOcO2RNmjhA. Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ir2.yahoo.com with HTTP; Wed, 3 Jun 2020 14:57:55 +0000 Date: Wed, 3 Jun 2020 14:57:34 +0000 (UTC) From: Bernd Eggen Reply-To: Bernd Eggen To: "cygwin@cygwin.com" Cc: "cygwin@tlinx.org" , Bernd Eggen Message-ID: <1677958530.3739782.1591196254179@mail.yahoo.com> In-Reply-To: References: <1576254042.16317.ezmlm@cygwin.com> <1136894358.3608181.1576920479449@mail.yahoo.com> Subject: QUERY: Coreutil "factor.exe" in Cygwin still stuck on an old & incorrect version (8.26) - was: Cygwin Digest 13 Dec 2019 16:20:42 -0000 Issue 11673 // Bug in "factor" (coreutils: GNU core utilities (8.26-2), 64bit... MIME-Version: 1.0 X-Mailer: WebService/1.1.16037 YMailNorrin Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0 X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, HTML_MESSAGE, KAM_COUK, KAM_LOTSOFHASH, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, TXREP, T_SPF_PERMERROR autolearn=no autolearn_force=no version=3.4.2 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jun 2020 14:57:59 -0000 All, In Dec 2019 I reported that the coreutil factor in Cygwin does not work cor= rectly for some composite numbers (more details further below, try eg: echo '3401347*3861211*12099721' | bc | factor which will not stop). While I had a prompt reply about how to build my own version (kindly suppli= ed by Linda Walsh, which I had already done after the developers provided a= fix a couple of years ago), I am confused why an updated version of factor= has not been incorporated in recent releases of Cygwin. Moreover, I've compiled it with 16-Byte integer support only, so 2^127-1 (~= 1.7e+38) is the limit in my version (based on 8.29 & higher) -> echo '2^127-2' | bc | factor 170141183460469231731687303715884105726: 2 3 3 3 7 7 19 43 73 127 337 5419 = 92737 649657 77158673929 -> echo '2^127-1' | bc | factor170141183460469231731687303715884105727: 170= 141183460469231731687303715884105727 -> echo '2^127' | bc | factorfactor: =E2=80=9817014118346046923173168730371= 5884105728=E2=80=99 is too large -> echo '2^127+1' | bc | factorfactor: =E2=80=98170141183460469231731687303= 715884105729=E2=80=99 is too large The faulty version (8.26) has been built with some multi-precision integer = arithmetic package (GNU MP ?) and goes to much larger values. ( echo '10^999' | bc | tr -d '\\' | tr -d '\012' ; echo '' ) | & factor_826= .exe2^999 5^999 [I've used "x^n" as abbreviation - factor prints "x" n time= s, separated by spaces] Best wishes, Bernd ---------- Original message ---------From: Bernd Eggen Date: Sat, 21 Dec 2019 at 09:28 Subject: Re: cygwin Digest 13 Dec 2019 16:20:42 -0000 Issue 11673 // Bug in= "factor" (coreutils: GNU core utilities (8.26-2), 64bit edition) To: Linda Walsh Dear Linda, Many thanks for your thoughts re "Bug in "factor" (coreutils: GNU core util= ities (8.26-2), 64bit edition)". I did get the fix directly via developers / from GNU site (URL https://ftp.= gnu.org/gnu/coreutils/coreutils-8.31.tar.xz ). However, what "bugged" me was to see that this has not been taken through t= o the Cygwin distribution -after almost 2 years ! The error is not obvious, as "factor" can in certain cases take minutes to = complete for large numbers. Best wishes & for the holidays, Bernd ---------- Original message ---------From: Date: Fri, 13 Dec 2019 at 16:21 Subject: cygwin Digest 13 Dec 2019 16:20:42 -0000 Issue 11673 To: cygwin Digest 13 Dec 2019 16:20:42 -0000 Issue 11673 Topics (messages 218573 through 218581): Re: Bug in "factor" (coreutils: GNU core utilities (8.26-2), 64bit edition) =C2=A0 =C2=A0 =C2=A0 =C2=A0 218573 by: L A Walsh Re: non-persistant storage? =C2=A0 =C2=A0 =C2=A0 =C2=A0 218574 by: Brian Inglis =C2=A0 =C2=A0 =C2=A0 =C2=A0 218576 by: L A Walsh =C2=A0 =C2=A0 =C2=A0 =C2=A0 218578 by: Ulli Horlacher Re: non-persistent storage? =C2=A0 =C2=A0 =C2=A0 =C2=A0 218575 by: J=C3=BCrgen Wagner =C2=A0 =C2=A0 =C2=A0 =C2=A0 218577 by: Ulli Horlacher =C2=A0 =C2=A0 =C2=A0 =C2=A0 218579 by: Ulli Horlacher =C2=A0 =C2=A0 =C2=A0 =C2=A0 218580 by: Marco Atzeri =C2=A0 =C2=A0 =C2=A0 =C2=A0 218581 by: Buchbinder, Barry (NIH/NIAID) [E] Administrivia: To subscribe to the digest, e-mail: =C2=A0 =C2=A0 =C2=A0 =C2=A0 cygwin-digest-subscribe@cygwin.com To unsubscribe from the digest, e-mail: =C2=A0 =C2=A0 =C2=A0 =C2=A0 cygwin-digest-unsubscribe@cygwin.com To post to the list, e-mail: =C2=A0 =C2=A0 =C2=A0 =C2=A0 cygwin@cygwin.com ---------------------------------------------------------------------- ---------- Forwarded message ---------- From:=C2=A0L A Walsh To:=C2=A0cygwin@cygwin.com Date:=C2=A0Thu, 12 Dec 2019 17:33:25 -0800 Subject:=C2=A0Re: Bug in "factor" (coreutils: GNU core utilities (8.26-2), = 64bit edition) On 2019/12/11 23:36, Bernd Eggen wrote: > Hello, > Some time ago I found that the Cygwin-64 "factor" command did not seem to= terminate with certain numbers, eg try: >=C2=A0 =C2=A0-> echo '3401347*3861211*12099721' | bc | factor > > The developers provided a fix (in GNU coreutils 8.29), however, after som= e two years I still find the faulty factor command in the current Cygwin di= stribution. > When are you planning to upgrade ? > Cheers, Bernd > PS I think this only affects 64bit version >=C2=A0 =C2=A0 Wow...=C2=A0 The source for factor should be easy to build .. like grab fro= m gnu's website...(goog) tells me this link should work: https://ftp.gnu.org/gnu/coreutils/coreutils-8.31.tar.xz untar it and run configure in the dir where it was extracted, then run "make" in the same dir. You'll find factor in "src/factor". Or you could also get the cygwin source package (in setup checkmark the src package) and substitute in the new coreutils package, and adjust any needed paths in the cygwin make package, then you'd have an installable cygwin package rather than just a binary of factor... Just thinking out-loud, mostly, if I really needed it that is... But dunnow how complicated their packaging is... -linda [...] =20