Bug 246982 - www/chromium: fatal error: 'asm/hwcap.h' file not found
Summary: www/chromium: fatal error: 'asm/hwcap.h' file not found
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Mikael Urankar
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-04 15:22 UTC by Bob Prohaska
Modified: 2020-11-12 18:07 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (chromium)


Attachments
patch (4.17 KB, patch)
2020-06-06 07:39 UTC, Mikael Urankar
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Prohaska 2020-06-04 15:22:28 UTC
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
Comment 1 Mikael Urankar freebsd_committer 2020-06-06 07:39:14 UTC
Created attachment 215287 [details]
patch

The build is not finished yet, maybe some other patches are needed.
Comment 2 Mikael Urankar freebsd_committer 2020-06-06 18:22:26 UTC
(In reply to Mikael Urankar from comment #1)
no other patch needed
Comment 3 Bob Prohaska 2020-06-10 14:28:01 UTC
(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
Comment 4 commit-hook freebsd_committer 2020-06-10 18:23:45 UTC
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
Comment 5 Mikael Urankar freebsd_committer 2020-06-10 18:25:12 UTC
bah, forgot reported by:
sorry

Update your ports tree, it should be ok now
Comment 6 Bob Prohaska 2020-06-10 20:38:34 UTC
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
Comment 7 Bob Prohaska 2020-10-22 15:51:59 UTC
(In reply to Bob Prohaska from comment #6)

The bug is back with the latest version of chromium, chromium-84.0.4147.135.
Comment 8 Bob Prohaska 2020-10-22 15:52:43 UTC
(In reply to Bob Prohaska from comment #6)

The bug is back with the latest version of chromium, chromium-84.0.4147.135.
Comment 9 Bob Prohaska 2020-10-31 03:27:28 UTC
Looks as if the patch didn't make it to chromium-85.0.4183.121
Comment 10 commit-hook freebsd_committer 2020-11-09 18:33:41 UTC
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
Comment 11 ykla 2020-11-10 03:18:54 UTC
I met It today.
FreeBSD 13.0-CURRENT #0 b9403d7aae8-c254071(main): Thu Oct 29 10:38:29 UTC 2020