From nobody Wed Feb 19 16:26:45 2025 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YyhcR4VHSz5pZVn for ; Wed, 19 Feb 2025 16:27:03 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic306-20.consmr.mail.gq1.yahoo.com (sonic306-20.consmr.mail.gq1.yahoo.com [98.137.68.83]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4YyhcR3Hvmz3brG for ; Wed, 19 Feb 2025 16:27:03 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1739982417; bh=Fh4KDmovHIQELAX+ZSi+SsCzYj+izVDN1fCFXsnqPzE=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=LFxRZJnK6pQWwtWCZAlpCz6r8s7PNk5cT8djh+99NPpYq8aaGVqepivisLvKw4yxH2Vv/N0Puc98HntVzuTWjQnHSgRmbYeQZZe8ZBpSxUK0/dsVJ1nrES94wLO7d6cDELn4WMSmPqlXBu11JRIXf/+yAanNbYwaAvSiDoTpHPoHGpIGh+qtkzJEVa4cd0+2hG2wEl7LfJsXbSF91NxnTAGuXzoPGDKsSWl5RjtmO9EFuvGhKI6g2HRI2j6GvcUOuoMzLN0g7uFuFi78OVX37E1Nsl6+kE/Fb955BLrbxqeDmo/qJTHnSnhivMvA7eXzXkhZWqGCIUTH5A4YuaUhCA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1739982417; bh=KBml0rhDmpRFDR8JaZ5toBJ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nmkOMeXD6btYXLXRjKATST3UWTnhr4DOY285YCgyQaGqup_ctzZVi.hdlZVc4QsAbhjpTOeybP gwqc9eo7CmdtfaaWao5tGrpL0uVvaGJ0kKV7g3pb9DfywSYPDsJybxe7sMPVDHSiiEw3JgsJQAjJ 8qAWGf2Eh1Uugfj_JDDqDx.gsERpZKMhXZ7zHbVeTMWniEYqaHxFFLSXgBC1d3pVuoxYtyNc0HHr k5PvdXMWa8rZZZf3kDR8E64jzAvaoLlG4ldC9xL2E1KAllWe6XLmjuDhWyZmDZkAz12v8XY_Dzlc uaX4_YYEuabv3OtHwUrhjr4fFQvSUZDjnN.vVNrg0oaD_AUqzO_qVO5ieNCxWemfaKHzV5Y.GDkE aFJ5I.N4P8oDMay.ibAemhg4oXLct.eRfVu3IHsJfYNqh3Gh8PTxmqEMZihkOnMsPS8Tqv9P1.f_ mfaBzqiJAmUoKmVCcYwo6jqhral5cMrmUKa5KsdYcQsvgMxS6dCikyi_tCu643mtrSJT32iQvupb SRUUP3QFmzJVC2q_b_pnh1KAFFZatjB9VXbDq295zU.QJ8VkaniGdwtJJIXjwX9VBL.xoPttF.f4 _DVqcLfFxrwjuNME2ZGzy1w-- X-Sonic-MF: X-Sonic-ID: aa8c6965-b321-49a0-8f3c-fdb86da0df75 Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.gq1.yahoo.com with HTTP; Wed, 19 Feb 2025 16:26:57 +0000 Received: by hermes--production-gq1-5dd4b47f46-dvwsq (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 486ad95630c50f3c204abeba7767edc2; Wed, 19 Feb 2025 16:26:56 +0000 (UTC) Content-Type: text/plain; charset=utf-8 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.400.131.1.6\)) Subject: Re: aarch64 electron build failure: fatal error: 'asm/hwcap.h' file not found; mark as BROKEN_aarch64 until fixed? From: Mark Millard In-Reply-To: <65119a1e-a2ba-489c-82ca-0a262011e99b@FreeBSD.org> Date: Wed, 19 Feb 2025 08:26:45 -0800 Cc: "Jason E. Hale" , FreeBSD Mailing List Content-Transfer-Encoding: quoted-printable Message-Id: 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> <65119a1e-a2ba-489c-82ca-0a262011e99b@FreeBSD.org> To: Hiroki Tagato X-Mailer: Apple Mail (2.3826.400.131.1.6) X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] X-Rspamd-Queue-Id: 4YyhcR3Hvmz3brG X-Spamd-Bar: ---- On Feb 19, 2025, at 06:42, Hiroki Tagato wrote: > On 2025/02/19 18:05, Jason E. Hale wrote: >> On Wed, Feb 19, 2025 at 3:20=E2=80=AFAM Hiroki Tagato = wrote: >>>=20 >>> On 2025/02/18 19:03, Mark Millard wrote: >>>>=20 >>>>=20 >>>> On Feb 17, 2025, at 22:27, Mark Millard wrote: >>>>=20 >>>>> On Feb 17, 2025, at 19:38, Mark Millard 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 >>>>>> | ^~~~~~~~~~~~~ >>>>>> 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 >>>>> | ^~~~~~~~~~~~~ >>>>> 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 >>>>> | ^~~~~~~~~~~~~ >>>>> 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