From owner-freebsd-ports@freebsd.org Thu Jun 4 15:15:43 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 1DD412F6ADE for ; Thu, 4 Jun 2020 15:15:43 +0000 (UTC) (envelope-from cmt@burggraben.net) Received: from smtp.burggraben.net (smtp.burggraben.net [88.198.69.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.burggraben.net", Issuer "Christoph Moench-Tegeder" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 49d8VQ0d3qz43hk for ; Thu, 4 Jun 2020 15:15:41 +0000 (UTC) (envelope-from cmt@burggraben.net) Received: from elch.exwg.net (elch.exwg.net [IPv6:2001:470:7120:1:127b:44ff:fe4f:148d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "elch.exwg.net", Issuer "Christoph Moench-Tegeder" (not verified)) by smtp.burggraben.net (Postfix) with ESMTPS id 0B866C00309 for ; Thu, 4 Jun 2020 17:15:40 +0200 (CEST) Received: by elch.exwg.net (Postfix, from userid 1000) id B2A4813983D; Thu, 4 Jun 2020 17:15:39 +0200 (CEST) Date: Thu, 4 Jun 2020 17:15:39 +0200 From: Christoph Moench-Tegeder To: freebsd-ports@freebsd.org Subject: Re: 'asm/hwcap.h' file not found building chromium on Pi3 Message-ID: <20200604151539.GA53594@elch.exwg.net> References: <20200601022208.GA15761@www.zefox.net> <20200604144539.GB26450@www.zefox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200604144539.GB26450@www.zefox.net> User-Agent: Mutt/1.14.2 (2020-05-25) X-Rspamd-Queue-Id: 49d8VQ0d3qz43hk X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of cmt@burggraben.net designates 88.198.69.140 as permitted sender) smtp.mailfrom=cmt@burggraben.net X-Spamd-Result: default: False [-2.04 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.97)[-0.969]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:88.198.69.140]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.93)[-0.934]; DMARC_NA(0.00)[burggraben.net]; NEURAL_SPAM_SHORT(0.16)[0.160]; RCVD_IN_DNSWL_NONE(0.00)[88.198.69.140:from]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:88.198.0.0/16, country:DE]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] 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: Thu, 04 Jun 2020 15:15:43 -0000 ## bob prohaska (fbsd@www.zefox.net): > The ports were updated to 537591, which seems to have updated > www/chromium to chromium-83.0.4103.61, but the error persists. asm/hwcap.h does not exist on FreeBSD. That somewhat modified zlib code tries to include asm/hwcap.h as it believes it's building on/for Linux on ARM (that #include is guarded by #ifdef ARMV8_OS_LINUX). Even on Linux, asm/hwcap.h only exists on arm, riscv and some other platforms, but notably not on anything x86-related. As to "modified": the whole cpu_features.c is not part of the original zlib distribution. So, I guess you're in for a deep dive... Anyhow, ARMV8_OS_LINUX is passed in via BUILD.gn as part of some optimization flags ("use_arm_neon_optimizations") - perhaps it's possible to just skip that? But in the end, someone with ARM knowledge should have a look at this; I'd guess that FreeBSD has some other way of doing CPU feature detection for ARM. While there: the whole cpu_features.c file is full of OS and CPU specific code (well, that's the raison d'ĂȘtre for that file) and will need a good going-over before it will work on FreeBSD/arm. Regards, Christoph -- Spare Space