Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Jun 2020 17:15:39 +0200
From:      Christoph Moench-Tegeder <cmt@burggraben.net>
To:        freebsd-ports@freebsd.org
Subject:   Re: 'asm/hwcap.h' file not found building chromium on Pi3
Message-ID:  <20200604151539.GA53594@elch.exwg.net>
In-Reply-To: <20200604144539.GB26450@www.zefox.net>
References:  <20200601022208.GA15761@www.zefox.net> <F7504ADF-C2B3-4C59-BB59-17A72CEE4722@yahoo.com> <20200604144539.GB26450@www.zefox.net>

next in thread | previous in thread | raw e-mail | index | archive | help
## bob prohaska (fbsd@www.zefox.net):

> The ports were updated to 537591, which seems to have updated
> www/chromium to chromium-83.0.4103.61, but the error persists.

asm/hwcap.h does not exist on FreeBSD. That somewhat modified
zlib code tries to include asm/hwcap.h as it believes it's building
on/for Linux on ARM (that #include is guarded by #ifdef ARMV8_OS_LINUX).
Even on Linux, asm/hwcap.h only exists on arm, riscv and some other
platforms, but notably not on anything x86-related.
As to "modified": the whole cpu_features.c is not part of the original
zlib distribution. So, I guess you're in for a deep dive...

Anyhow, ARMV8_OS_LINUX is passed in via BUILD.gn as part of some
optimization flags ("use_arm_neon_optimizations") - perhaps it's
possible to just skip that? But in the end, someone with ARM
knowledge should have a look at this; I'd guess that FreeBSD has some
other way of doing CPU feature detection for ARM. While there:
the whole cpu_features.c file is full of OS and CPU specific
code (well, that's the raison d'ĂȘtre for that file) and will need
a good going-over before it will work on FreeBSD/arm.

Regards,
Christoph

-- 
Spare Space



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200604151539.GA53594>