From owner-freebsd-ports@freebsd.org Mon Jun 1 04:05:41 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 76F3F2FB885 for ; Mon, 1 Jun 2020 04:05:41 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic312-25.consmr.mail.gq1.yahoo.com (sonic312-25.consmr.mail.gq1.yahoo.com [98.137.69.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49b1mg6Kp8z4WlK for ; Mon, 1 Jun 2020 04:05:39 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: f3rzAUgVM1lXjKWMY_kCrSBXpYqJ.zpiZx5I9o5U9nH4hHyOXOf4G1vdHxW82tg JEU89dFiU_wyFIBrIBqkTb3ebu29Jx5l_2n938RW8bw3RO_pQrk_cwa9f7JkBQvdm.JfiDZwCi1N cYXjWN8m7fqjwyzjkK7uyXFLZlYd0kzm6uKXcKMzVc_rRrs_BZmn5Bu7cD7wNEzC4TdS6GblJs5u Rv3knbmAG4T.DuuNI0AJAyfjiGTtUmfnHcppxqPdG3Fb19i9Ucwk5V9GXQCmWWxmxQYEsZpKJyUR 7zt_gvHefVq4i2h75p8psiBAutatOpv6zLR5sAL1v37BOuDsjeZd84eTfjQcuZ35vHLV_P7XNDIn Cszl71a.yUNgpJUEiZjbuJ9N_uDoRsLCA31JTsgXKmrDQOYs1FZj9QaqYgR8PwBwsM4s7Yf8DJCD gRFnfl3j1KrG1HNlSUL0uV2WKu_mMSFr5SWO1EEfpHivAugqU_xTUJzwg8rnMyUw3oUvd.1IdNhF mxSutnu.FijWPu5ezjJUx6iZeltUhBsqrykk90tU.R8drZU42zEUhy9TcOgjjw.1pxd9LnPTOdYp 8Sbqor5mPebD7IZFihGDLP7rfqaw4HHR1SRhuNcOs6UF22eAvVKyJBdbWTKH8gRAKIOcLbhKMtHp r76frzayzJzd9koOLM3hgy3gfl6DLz2uQb75fZlJQNMHfvfVlSFYs0vJdrU7MBzE9XfUVVzTMc.u wBenOFPNjeHX3RQBBKAaInLuWlgkKp9ChJmOcmrYCz_uqgDFM1afERHFYfq2MP0H3ZAf1OhCSkMa mDlsWatD7CxQrjF515x6Ed14UKh53unMElsNBeODkXGN0dxlGeiRRxqMsprl4R.krzYnMdzb_FIl pKBCRssqG5jHE1EVW2SNVHGD_ibWTXqt0heOKDp1E6jxaJ35HNDrp82HO1wfGkXsL3WjTcaUKrDI L2i.V5mCFW9Wm6FWaSdpuVlV3AQWwG378pnb_dL_DLj2y.YtqRXesRCp3brS4HaDPM4WtJWXjVAy suIl.w9iY2NSCOyrNy_oYfiQ_RAwozyjC85ele1VN0JP8gTx_L2OzBfHpETkaF6QP3xxnayn9yhf VZMoOaj3zQzcbEAATpxoP2kW3qpu.xSnPePmwO6qLxlYu3nWtCvPNh415RcA5wbXz5SzgiuGEtzS uN96OiM3z5TTWiC.kwJ0oC3m8ecWhgxv04mWY3c1.jqAb7taMAu1pLkKxjE_fz2vRFA0gZks1WyL G37DrzYQNPviRFUDwlOaU7oeBvfW35Kz2nmPRIvflYz2KtOK6SlOnvE0CFuyGdfg7bOsgyY.uWVy BfhJFRhLkix4pcT5AFLsnFz8AQrGjIdUKXr9yW_BLl6KULfSUv7jW2NZK5vpIe9PO8fAUk3R8alm t4TJhSEj5ZHiUAiRWJEjrnrxTmtNa.O0iyi5WktdAyVx_oY7Cx77vLHASjrU- Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.gq1.yahoo.com with HTTP; Mon, 1 Jun 2020 04:05:38 +0000 Received: by smtp420.mail.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 672ed58712971f0ff7234d1d7958cd8d; Mon, 01 Jun 2020 04:05:37 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: 'asm/hwcap.h' file not found building chromium on Pi3 From: Mark Millard In-Reply-To: <20200601022208.GA15761@www.zefox.net> Date: Sun, 31 May 2020 21:05:36 -0700 Cc: freebsd-ports@freebsd.org, freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20200601022208.GA15761@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3608.80.23.2.2) X-Rspamd-Queue-Id: 49b1mg6Kp8z4WlK X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.87 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.69.206:from]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; NEURAL_HAM_LONG(-0.99)[-0.990]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.206:from]; NEURAL_HAM_SHORT(-0.32)[-0.318]; NEURAL_HAM_MEDIUM(-1.06)[-1.063]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/21, country:US]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2020 04:05:41 -0000 On 2020-May-31, at 19:22, bob prohaska wrote: > Made another attempt to compile www/chromium on a Pi3B, this time = using > a mechanical hard disk for all storage (and boot). It stopped with >=20 > ../../third_party/zlib/cpu_features.c:32:10: fatal error: = 'asm/hwcap.h' file not found > #include > ^~~~~~~~~~~~~ > 1 error generated. >=20 > Ports are at Revision: 537041, uname -a reports 12.1-STABLE r361429=20 > GENERIC arm64. All make commands used -DBATCH. Warning: I did not version match to -r537041 so this is only suggestive unless confirmed. But I do not keep referencing that status below. Not that it solves the problem, but some context indicates that it is likely a problem with the port (since chromium of itself does not support FreeBSD) . . . =46rom the cpu_features.c source: #if defined(ARMV8_OS_ANDROID) #include #elif defined(ARMV8_OS_LINUX) #include #include #elif defined(ARMV8_OS_FUCHSIA) #include #include #include #elif defined(ARMV8_OS_WINDOWS) || defined(X86_WINDOWS) #include #elif !defined(_MSC_VER) #include #else #error cpu_features.c CPU feature detection in not defined for your = platform #endif So your build has ARMV8_OS_LINUX defined and also tried to build based in part on: third_party/zlib/cpu_features.c A grep -r shows all the references to ARMV8_OS_LINUX are under third_party/zlib/ . ARMV8_OS_LINUX is from the third_party/zlib/BUILD.gn code: . . . if (use_arm_neon_optimizations) { config("zlib_arm_crc32_config") { # Disabled for iPhone, as described in DDI0487C_a_armv8_arm: # "All implementations of the ARMv8.1 architecture are required to # implement the CRC32* instructions. These are optional in = ARMv8.0." if (!is_ios) { defines =3D [ "CRC32_ARMV8_CRC32" ] if (is_android) { defines +=3D [ "ARMV8_OS_ANDROID" ] } else if (is_linux || is_chromeos) { defines +=3D [ "ARMV8_OS_LINUX" ] } else if (is_fuchsia) { . . . is_linux seems to in turn be from: chromium-*/build/config/BUILDCONFIG.gn and its: is_linux =3D current_os =3D=3D "chromeos" || current_os =3D=3D "linux" = || current_os =3D=3D "freebsd" The freebsd reference here (and elsewhere in that file) are from the port's patching activity. chromium does not seem to support FreeBSD of itself so it seems the problem would be considered to be in the port instead. I've no clue what a proper alternative would be for third_party/zlib/cpu_features.c to use in a FreeBSD context. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)