Date: Wed, 19 Feb 2025 08:26:45 -0800 From: Mark Millard <marklmi@yahoo.com> To: Hiroki Tagato <tagattie@FreeBSD.org> Cc: "Jason E. Hale" <jhale@freebsd.org>, FreeBSD Mailing List <freebsd-ports@freebsd.org> Subject: Re: aarch64 electron build failure: fatal error: 'asm/hwcap.h' file not found; mark as BROKEN_aarch64 until fixed? Message-ID: <B8C7156C-5C5C-4544-A206-92DFD9DB0A59@yahoo.com> In-Reply-To: <65119a1e-a2ba-489c-82ca-0a262011e99b@FreeBSD.org> References: <9607B5F6-ED3C-498B-ACE2-2571324D57FD@yahoo.com> <6AFD97D9-7B71-4146-BB51-11C301C2F478@yahoo.com> <1F735DDF-5841-4879-AD1F-F54907D0D2FB@yahoo.com> <20f87f7a-8b06-4be4-9589-d74cfe3383ae@FreeBSD.org> <CAJE75NFQfCxZW32wgRFbDoknDmKVvNoCWJ%2ByuejTC8Gat_GkJw@mail.gmail.com> <65119a1e-a2ba-489c-82ca-0a262011e99b@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Feb 19, 2025, at 06:42, Hiroki Tagato <tagattie@FreeBSD.org> wrote: > On 2025/02/19 18:05, Jason E. Hale wrote: >> On Wed, Feb 19, 2025 at 3:20=E2=80=AFAM Hiroki Tagato = <tagattie@freebsd.org> wrote: >>>=20 >>> On 2025/02/18 19:03, Mark Millard wrote: >>>>=20 >>>>=20 >>>> On Feb 17, 2025, at 22:27, Mark Millard <marklmi@yahoo.com> wrote: >>>>=20 >>>>> On Feb 17, 2025, at 19:38, Mark Millard <marklmi@yahoo.com> wrote: >>>>>=20 >>>>>> I was doing a poudriere(-devel) "bulk -ca" test on an aarch64 >>>>>> system and ran into electron33 failing for multiple examples >>>>>> of: >>>>>>=20 >>>>>> In file included from ../../third_party/unrar/src/crypt.cpp:1: >>>>>> In file included from ../../third_party/unrar/src/rar.hpp:6: >>>>>> ../../third_party/unrar/src/os.hpp:167:10: fatal error: = 'asm/hwcap.h' >>>>>> file not found >>>>>> 167 | #include <asm/hwcap.h> >>>>>> | ^~~~~~~~~~~~~ >>>>>> 1 error generated. >>>>>>=20 >>>>>> (Note: electron31 and electron32 are still building.) >>>>>>=20 >>>>>> It would seem appropriate to avoid wasting time on bad >>>>>> build attempts as long as this is the case: while it is >>>>>> not yet fixed, it likely should be marked as BROKEN_aarch64 >>>>>> in the Makefile involved. >>>>>=20 >>>>>=20 >>>>> electron32 got the same sort of failures: >>>>>=20 >>>>> 2.3.0/pulseaudio-16.1/src -DPA_MAJOR=3D16 -c = ../../third_party/unrar/ >>>>> google/unrar_wrapper.cc -o = obj/third_party/unrar/unrar/unrar_wrapper.o >>>>> In file included from = ../../third_party/unrar/google/unrar_wrapper.cc:13: >>>>> In file included from ../../third_party/unrar/src/rar.hpp:6: >>>>> ../../third_party/unrar/src/os.hpp:167:10: fatal error: = 'asm/hwcap.h' >>>>> file not found >>>>> 167 | #include <asm/hwcap.h> >>>>> | ^~~~~~~~~~~~~ >>>>> 1 error generated. >>>>>=20 >>>>>=20 >>>>> Note: electron31 is still building. >>>>>=20 >>>>>=20 >>>>> I'll also note that chromium got the same sort of error: >>>>>=20 >>>>> In file included from = ../../third_party/unrar/google/unrar_wrapper.cc:13: >>>>> In file included from ../../third_party/unrar/src/rar.hpp:6: >>>>> ../../third_party/unrar/src/os.hpp:167:10: fatal error: = 'asm/hwcap.h' >>>>> file not found >>>>> 167 | #include <asm/hwcap.h> >>>>> | ^~~~~~~~~~~~~ >>>>> 1 error generated. >>>>>=20 >>>>>=20 >>>>> Note: ungoogled-chromium is still building, as is >>>>> iridium-browser . >>>>=20 >>>> By contrast: >>>>=20 >>>> electron31 and iridium-browser built just fine. >>>>=20 >>>> Note: ungoogled-chromium is still building. >>>=20 >>> Thanks for the report. I agree that electron{32,33} should be marked = as >>> BROKEN_aarch64 until a patch for fixing the issue is provided. >>>=20 >>> Unrar version 7 used by electron 32 and onward tries to include the >>> header in question. Older version (v6) of unrar, which is in turn = used >>> by electron 31, does not. >>>=20 >>> Best regards, >>> Hiroki >>>=20 >>>=20 >> Hi all, >> I maintain archivers/libunrar and after seeing this, I just committed >> a patch [1] to my port to fix this problem. The libunrar patches have >> some additional guff to add openssl support that should not be >> included for chromium-based projects, but the concept is basically = the >> same. Should be pretty easy to adapt. >> [1] = https://cgit.freebsd.org/ports/commit/?id=3D96e53c0c65faa691e18c0a5558d8f4= 45e6010a70 >=20 > Hi Jason, >=20 > Thanks a lot for letting me know the commit. I will shortly prepare a = patch for electron ports based on that. FYI: I'll note that, while chromium did not build to completion, ungoogled-chromium-132.0.6834.159.pkg built just fine in the same "bulk -a" run. In my original reporting, it had not yet completed but I forgot to report the completion at the time I noticed it. =3D=3D=3D Mark Millard marklmi at yahoo.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B8C7156C-5C5C-4544-A206-92DFD9DB0A59>