Re: git: 981564583497 - main - net/cjdns: fix build on powerpc64*

From: Piotr Kubaj <pkubaj_at_anongoth.pl>
Date: Wed, 27 Oct 2021 18:08:25 UTC
Actually, the problem here is actually justified, IMO.

https://chromium.googlesource.com/v8/v8/+/refs/heads/main/src/base/cpu.cc#778

V8 has code for checking CPU on Linux and AIX for POWER architecture, but FreeBSD is missing here.
It should probably check for sysctl hw.model, but I've been unable to compile V8 port (lang/v8) on FreeBSD/powerpc*, so can't really fix it.

I have some patches for V8 building, but it still fails at the end during linking the tests.
I'm not sure why node itself builds (even though it bundles V8), it may just omit V8 tests.

On 21-10-27 16:38:59, Alexey Dokuchaev wrote:
> On Wed, Oct 27, 2021 at 04:23:40PM +0200, Piotr Kubaj wrote:
> > Not really:
> > > os.cpus()
> > []
> > > Math.floor((os.cpus() == [] ? 1 : cpus.length) * 1.25)
> > Uncaught ReferenceError: cpus is not defined
> > > Math.floor((os.cpus() == 0 ? 1 : cpus.length) * 1.25)
> > 1
> 
> This gets just funnier and funnier.  Like I said, the sooner JS
> dies, the better.
> 
> ./danfe

--