A Pi3B attempting to compile www/chromium stopped with ../../third_party/zlib/cpu_features.c:34:10: fatal error: 'asm/hwcap.h' file not found #include <asm/hwcap.h> ^~~~~~~~~~~~~ 1 error generated. The ports revision is 537591, putting www/chromium at chromium-83.0.4103.61. uname -a reports FreeBSD nemesis.zefox.com 12.1-STABLE FreeBSD 12.1-STABLE r361685 GENERIC arm64 thanks for reading, bob prohaska
Created attachment 215287 [details] patch The build is not finished yet, maybe some other patches are needed.
(In reply to Mikael Urankar from comment #1) no other patch needed
(In reply to Mikael Urankar from comment #2) I'm doing something wrong; still seeing the error. A few days after the fix was announced ports were updated and www/chromium was rebuilt after running make clean, as the port had been updated. That build stopped last night with the same error. Ports were updated again (no changes to www/chromium but www/node was updated) and the error repeated with ports now at 538395. I'll next try updating www/node to see if that helps. Thanks for reading, bob prohaska
A commit references this bug: Author: mikael Date: Wed Jun 10 18:23:25 UTC 2020 New revision: 538423 URL: https://svnweb.freebsd.org/changeset/ports/538423 Log: www/chromium: fix build on aarch64 PR: 246982 Approved by: portmgr (tier-2 blanket) Changes: head/www/chromium/files/patch-third__party_zlib_BUILD.gn head/www/chromium/files/patch-third_party_zlib_cpu__features.c
bah, forgot reported by: sorry Update your ports tree, it should be ok now
A simple svnlite up /usr/ports and restart of make without cleaning didn't work, same error surfaced promptly. www/chromium was removed and then restored by a fresh svnlite up /usr/ports. It's building now, the results will take a couple days to emerge. Thanks very much! bob prohaska
(In reply to Bob Prohaska from comment #6) The bug is back with the latest version of chromium, chromium-84.0.4147.135.
Looks as if the patch didn't make it to chromium-85.0.4183.121
A commit references this bug: Author: mikael Date: Mon Nov 9 18:32:44 UTC 2020 New revision: 554786 URL: https://svnweb.freebsd.org/changeset/ports/554786 Log: www/chromium: attempt to fix build on aarch64 PR: 246982 Reported by: Bob Prohaska Approved by: portmgr (tier-2 blanket) Changes: head/www/chromium/files/patch-third__party_zlib_BUILD.gn
I met It today. FreeBSD 13.0-CURRENT #0 b9403d7aae8-c254071(main): Thu Oct 29 10:38:29 UTC 2020
(In reply to ykla from comment #11) Same here. chromium-87.0.4280.141, on current-14. FreeBSD www.zefox.org 14.0-CURRENT FreeBSD 14.0-CURRENT #12 c256201-gf9a66922c9ec: Sun Jan 24 13:11:47 PST 2021 bob@www.zefox.org:/usr/obj/usr/freebsd-src/arm64.aarch64/sys/GENERIC-MMCCAM arm64 For some reason the fix isn't persistent. Thanks for reading, bob prohaska
FWIW, Mikael's old patch doesn't seem to work anymore. Guess something has changed, or I made a mistake applying it.
Not fixed as of February 2, 2021. Make still stops with ../../third_party/zlib/cpu_features.c:50:10: fatal error: 'asm/hwcap.h' file not found #include <asm/hwcap.h> ^~~~~~~~~~~~~ 1 error generated. ninja: build stopped: subcommand failed. *** Error code 1 Stop. make: stopped in /usr/ports/www/chromium uname -a reports root@www:/usr/ports/www/chromium # uname -a FreeBSD www.zefox.org 14.0-CURRENT FreeBSD 14.0-CURRENT #13 main-n244502-0f919ed4ae4d: Sat Jan 30 20:02:18 PST 2021 bob@www.zefox.org:/usr/obj/usr/freebsd-src/arm64.aarch64/sys/GENERIC-MMCCAM arm64 svnlite info /usr/ports reports Path: /usr/ports Working Copy Root Path: /usr/ports URL: svn://svn.freebsd.org/ports/head Relative URL: ^/head Repository Root: svn://svn.freebsd.org/ports Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5 Revision: 563437 Node Kind: directory Schedule: normal Last Changed Author: olgeni Last Changed Rev: 563437 Last Changed Date: 2021-01-30 13:52:18 -0800 (Sat, 30 Jan 2021)
A commit references this bug: Author: mikael Date: Sun Feb 7 08:28:31 UTC 2021 New revision: 564607 URL: https://svnweb.freebsd.org/changeset/ports/564607 Log: www/chromium: Fix build on aarch64 PR: 246982 Approved by: portmgr (tier-2 blanket) Changes: head/www/chromium/files/patch-third__party_zlib_BUILD.gn head/www/chromium/files/patch-third__party_zlib_cpu__features.c
The bug is back as of April 21, 2021. Last pull was on the 20th, reporting in part: From https://git.freebsd.org/ports 0ff5fa157d9d..9e38c2ab2d91 main -> origin/main d149560bb859..d7bd94998c03 2021Q2 -> origin/2021Q2 Updating 0ff5fa157d9d..9e38c2ab2d91 Nothing special done on this end, if it's my mistake please indicate what I did. The /usr/ports directory contains no mention of origin/main, nor origin/2021Q2. The intent was to track the most recent version. Thanks for reading, bob prohaska
The bug is back as of April 21, 2021. Last pull was on the 20th, reporting in part: From https://git.freebsd.org/ports 0ff5fa157d9d..9e38c2ab2d91 main -> origin/main d149560bb859..d7bd94998c03 2021Q2 -> origin/2021Q2 Updating 0ff5fa157d9d..9e38c2ab2d91 Nothing special done on this end, if it's my mistake please indicate what I did. The /usr/ports directory contains no mention of origin/main, nor origin/2021Q2. The intent was to track the most recent version. This happens to be on a Pi4 if it matters. Thanks for reading, bob prohaska
(In reply to Bob Prohaska from comment #17) www/chromium/files/patch-third__party_zlib_BUILD.gn was deleted over to chromium@
Added the patches to the v90 WIP.
Build of chromium-90.0.4430.85 still stops with: ../../third_party/zlib/cpu_features.c:50:10: fatal error: 'asm/hwcap.h' file not found #include <asm/hwcap.h>
Can you remove files/patch-tools_gn_src_util_sys__info.cc and try again?
(In reply to Matthias Wolf from comment #21) files/patch-third__party_zlib_BUILD.gn was deleted in a previous commit and it's still missing.
Re-added that one to our v90 github repository as well.
At what point should I pull and try again? Is there any point in removing files/patch-tools_gn_src_util_sys__info.cc ? Thanks for the quick reply! bob prohaska
(In reply to Bob Prohaska from comment #24) just update your ports tree.