From nobody Tue Apr 19 16:42:47 2022 X-Original-To: dev-commits-ports-main@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 D519B11FD473; Tue, 19 Apr 2022 16:42:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KjV3C5872z3kWK; Tue, 19 Apr 2022 16:42:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650386567; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZDmMYYyzVO1vJuhYnLKfv2DJPAOPPf5Co7dhZ6uqkPY=; b=GvXjLtvYGD8rbOFIlPJsPkPVW4IyO85iMPmFmlHLK8nMBcEljuZMzO8AkVH7vuDtEJwbFB AL2TO61BsB9hXO0dzq9nydULHTiIzK3RMTudFKUr9DI20DPFftAp7vDzS/hlB3ysKuEuq0 8IzA/+5qdI3ZWjLALQUiHkOuUejkdYZsepc43az2rwjFzPhtASYfdOXiHEIj95G7tr9nGO lNoXknyLiljwY+JGIwOHw9H4stN5sjNf3WkFC5KkKOOcOusp6kcmbhAXUVbtR2wQZf8MhM sPRohn57F5fqnftETq4UWj+VUf/9qJp2WBSE/AFv1V6hJKgxnveJItACNNbJ+w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 87C852AEA4; Tue, 19 Apr 2022 16:42:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23JGglOw056904; Tue, 19 Apr 2022 16:42:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23JGgl1k056903; Tue, 19 Apr 2022 16:42:47 GMT (envelope-from git) Date: Tue, 19 Apr 2022 16:42:47 GMT Message-Id: <202204191642.23JGgl1k056903@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Mikael Urankar Subject: git: 1a35a43cfc1e - main - www/node14: Fix build on armv7 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mikael X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1a35a43cfc1e77557381b50fff7b528ba9f9835a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650386567; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZDmMYYyzVO1vJuhYnLKfv2DJPAOPPf5Co7dhZ6uqkPY=; b=tr8r2mk8ba4CbUGyHozGnalWHrMD0uEj0CrQ5zjAXXE177iGCeFQLrMDulfBu0hGuVrwMP YeBLMmIro15uRtCvcVtp79pKZVkYLMXrqZT0AUTntP6ypc8pUsruxHX9ZD6GeITPs0bpIk OvwoHwcbos1TV0tBlnYBSfKnOKiljmsYU25IqDrYrCg1lBTRZSnXmM1mQoN1/k0jkYVKTY trRr81OP13xc2mTf2gLZfGvzX3hTZp6VvvS9UD1ZKU6HzvW34LRPm3KAUgXmEjOnTCpP7m 0z0tqwEBl00NbfyQ0yXqKfhYJ1jaBot/bzm8WW9p81+oBT86Khg91wAO1ugPAA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650386567; a=rsa-sha256; cv=none; b=xpLu09AE9Ym0GFZMGeX8CNHJjziMzZYX/NGCdp6uV/XuZTL0XX/ZnV6Y84373+WYY3npJH L0VR0MBB9IpUt9Cgob/w0XL7DVSDYwIzS4c5uHyYkT9RLAwbJJVdFu2Q/sUQbpVORFkpNq Cl5YUuO7pUR/BgLsje8BB/2wuFf+cWqWLHZ6paLUbvJFl5VCVFIQl7yK0aVOxVLucmRB0f gTeRr77VhBlB60OOgrDCDy8aBTTgvUdjxj3qmMVOW0hSO8WEHwU2h7CZ6ic0/i1vRLw647 fbNGe+Krq4HQvcGgTIyDoe+cWtwhpV6PmrOP+iJLkv8xdpDliWhX6Bl/gofz4w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mikael: URL: https://cgit.FreeBSD.org/ports/commit/?id=1a35a43cfc1e77557381b50fff7b528ba9f9835a commit 1a35a43cfc1e77557381b50fff7b528ba9f9835a Author: Mikael Urankar AuthorDate: 2022-04-19 16:29:29 +0000 Commit: Mikael Urankar CommitDate: 2022-04-19 16:42:43 +0000 www/node14: Fix build on armv7 PR: 260651 Approved by: portmgr (build fix blanket) --- ...h-deps_v8_src_base_platform_platform-freebsd.cc | 49 ---------------------- .../files/patch-deps_v8_src_codegen_arm_cpu-arm.cc | 18 ++++++++ 2 files changed, 18 insertions(+), 49 deletions(-) diff --git a/www/node14/files/patch-deps_v8_src_base_platform_platform-freebsd.cc b/www/node14/files/patch-deps_v8_src_base_platform_platform-freebsd.cc index c504d7134dd4..3e173b2811f3 100644 --- a/www/node14/files/patch-deps_v8_src_base_platform_platform-freebsd.cc +++ b/www/node14/files/patch-deps_v8_src_base_platform_platform-freebsd.cc @@ -11,52 +11,3 @@ } start += ssize; -@@ -94,6 +94,48 @@ std::vector OS::GetSharedLib - } - - void OS::SignalCodeMovingGC() {} -+ -+#ifdef __arm__ -+ -+bool OS::ArmUsingHardFloat() { -+// GCC versions 4.6 and above define __ARM_PCS or __ARM_PCS_VFP to specify -+// the Floating Point ABI used (PCS stands for Procedure Call Standard). -+// We use these as well as a couple of other defines to statically determine -+// what FP ABI used. -+// GCC versions 4.4 and below don't support hard-fp. -+// GCC versions 4.5 may support hard-fp without defining __ARM_PCS or -+// __ARM_PCS_VFP. -+ -+#define GCC_VERSION \ -+ (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) -+#if GCC_VERSION >= 40600 && !defined(__clang__) -+#if defined(__ARM_PCS_VFP) -+ return true; -+#else -+ return false; -+#endif -+ -+#elif GCC_VERSION < 40500 && !defined(__clang__) -+ return false; -+ -+#else -+#if defined(__ARM_PCS_VFP) -+ return true; -+#elif defined(__ARM_PCS) || defined(__SOFTFP__) || defined(__SOFTFP) || \ -+ !defined(__VFP_FP__) -+ return false; -+#else -+#error \ -+ "Your version of compiler does not report the FP ABI compiled for." \ -+ "Please report it on this issue" \ -+ "http://code.google.com/p/v8/issues/detail?id=2140" -+ -+#endif -+#endif -+#undef GCC_VERSION -+} -+ -+#endif // def __arm__ - - void OS::AdjustSchedulingParams() {} - diff --git a/www/node14/files/patch-deps_v8_src_codegen_arm_cpu-arm.cc b/www/node14/files/patch-deps_v8_src_codegen_arm_cpu-arm.cc new file mode 100644 index 000000000000..734437bee510 --- /dev/null +++ b/www/node14/files/patch-deps_v8_src_codegen_arm_cpu-arm.cc @@ -0,0 +1,18 @@ +--- deps/v8/src/codegen/arm/cpu-arm.cc.orig 2021-10-12 06:13:34 UTC ++++ deps/v8/src/codegen/arm/cpu-arm.cc +@@ -2,12 +2,15 @@ + // Use of this source code is governed by a BSD-style license that can be + // found in the LICENSE file. + ++#include "include/v8config.h" ++ + // CPU specific code for arm independent of OS goes here. + #ifdef __arm__ + #ifdef __QNXNTO__ + #include // for cache flushing. + #undef MAP_TYPE // NOLINT + #elif V8_OS_FREEBSD ++#include + #include // for cache flushing + #include + #else