git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: chainlint test failing on Linux sparc64

From
John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Date
May 20, 2024, 11:02 UTC
Message-ID
<46caaa2d204844cbe5625428ece5b2fe8656364b.camel@physik.fu-berlin.de>
In-Reply-To
<7acbd5c6c68bd7ba020e2d1cc457a8954fd6edf4.camel@physik.fu-berlin.de>
Hi Eric,
On Mon, 2024-05-20 at 12:02 +0200, John Paul Adrian Glaubitz wrote:
Show 27 quoted lines
> > which probably explains the behavior you're experiencing. To fix it,
> > we'll need to see the output you get from:
> > 
> >     cat /proc/cpuinfo
> 
> Here you go:
> 
> glaubitz@stadler:~$ cat /proc/cpuinfo 
> cpu             : UltraSparc T4 (Niagara4)
> fpu             : UltraSparc T4 integrated FPU
> pmu             : niagara4
> prom            : OBP 4.38.16 2018/11/28 07:24
> type            : sun4v
> ncpus probed    : 48
> ncpus active    : 48
> D$ parity tl1   : 0
> I$ parity tl1   : 0
> cpucaps         :
> flush,stbar,swap,muldiv,v9,blkinit,n2,mul32,div32,v8plus,popc,vis,vis2,ASIBlkInit,fmaf,vis3,hpc,ima,pause,cbcond,aes,des,kasumi,camellia,md5,sha1,sha256,sha512,mpmul,montmul,montsqr,crc32c
> Cpu0ClkTck      : 00000000a9beeee4
> Cpu1ClkTck      : 00000000a9beeee4
> (...)
> State:
> CPU0:           online
> CPU1:           online
> CPU2:           online
> CPU3:           online
In order to verify this theory, I made the following temporary change:
diff --git a/t/chainlint.pl b/t/chainlint.pl
index 556ee91a15..63cac942ac 100755
--- a/t/chainlint.pl
+++ b/t/chainlint.pl
@@ -718,7 +718,7 @@ sub ncores {
        # Windows
        return $ENV{NUMBER_OF_PROCESSORS} if exists($ENV{NUMBER_OF_PROCESSORS});
        # Linux / MSYS2 / Cygwin / WSL
-       do { local @ARGV='/proc/cpuinfo'; return scalar(grep(/^processor[\s\d]*:/, <>)); } if -r '/proc/cpuinfo';
+       do { local @ARGV='/proc/cpuinfo'; return scalar(grep(/^processor[\s\d]*:||^CPU[\d]*:/, <>)); } if -r '/proc/cpuinfo';
        # macOS & BSD
        return qx/sysctl -n hw.ncpu/ if $^O =~ /(?:^darwin$|bsd)/;
        return 1;

and I confirm that this fixes the problem.

Let me whip up a patch and post it here.

Adrian
-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
Previous: John Paul Adrian GlaubitzNext: Junio C Hamano
Message 9 of 11 in “chainlint test failing on Linux sparc64”
  1. John Paul Adrian GlaubitzMay 20, 2024
  2. Eric SunshineMay 20, 2024
  3. John Paul Adrian GlaubitzMay 20, 2024
  4. John Paul Adrian GlaubitzMay 20, 2024
  5. Eric SunshineMay 20, 2024
  6. John Paul Adrian GlaubitzMay 20, 2024
  7. Eric SunshineMay 20, 2024
  8. John Paul Adrian GlaubitzMay 20, 2024
  9. John Paul Adrian GlaubitzMay 20, 2024
  10. Junio C HamanoMay 20, 2024
  11. John Paul Adrian GlaubitzMay 20, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.