From owner-svn-ports-head@freebsd.org Sun Dec 1 12:08:40 2019 Return-Path: Delivered-To: svn-ports-head@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 C46821A9687; Sun, 1 Dec 2019 12:08:40 +0000 (UTC) (envelope-from pkubaj@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47Qn8S4nxzz3H6H; Sun, 1 Dec 2019 12:08:40 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 82DC6E7BB; Sun, 1 Dec 2019 12:08:40 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id xB1C8eCO015135; Sun, 1 Dec 2019 12:08:40 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xB1C8dJ6015132; Sun, 1 Dec 2019 12:08:39 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <201912011208.xB1C8dJ6015132@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Sun, 1 Dec 2019 12:08:39 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r518767 - in head/math/cln: . files X-SVN-Group: ports-head X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: in head/math/cln: . files X-SVN-Commit-Revision: 518767 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Dec 2019 12:08:40 -0000 Author: pkubaj Date: Sun Dec 1 12:08:39 2019 New Revision: 518767 URL: https://svnweb.freebsd.org/changeset/ports/518767 Log: math/cln: fix build on powerpc64 elfv2, simplify port powerpc64 elfv2 needs the same patches as arm* and aarch64, but builds without -DNO_ASM. Simplify the port by applying the arm patches everywhere and use CPPFLAGS_${ARCH} instead of .if ${ARCH} block. Build passes on powerpc64 elfv1 fine, so the original issue must have been fixed. PR: 242296 Approved by: wen (maintainer), linimon (mentor) Added: head/math/cln/files/patch-src_base_low_cl__low__div.cc - copied unchanged from r518766, head/math/cln/files/extra-patch-src_base_low_cl__low__div.cc head/math/cln/files/patch-src_base_low_cl__low__mul.cc - copied unchanged from r518766, head/math/cln/files/extra-patch-src_base_low_cl__low__mul.cc Deleted: head/math/cln/files/extra-patch-src_base_low_cl__low__div.cc head/math/cln/files/extra-patch-src_base_low_cl__low__mul.cc Modified: head/math/cln/Makefile Modified: head/math/cln/Makefile ============================================================================== --- head/math/cln/Makefile Sun Dec 1 11:07:13 2019 (r518766) +++ head/math/cln/Makefile Sun Dec 1 12:08:39 2019 (r518767) @@ -22,12 +22,8 @@ USE_LDCONFIG= yes INFO= cln -.include +CPPFLAGS_aarch64= -DNO_ASM +CPPFLAGS_armv6= -DNO_ASM +CPPFLAGS_armv7= -DNO_ASM -.if ${ARCH} == aarch64 || ${ARCH} == armv6 || ${ARCH} == armv7 -CPPFLAGS+= -DNO_ASM -EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-src_base_low_cl__low__div.cc \ - ${PATCHDIR}/extra-patch-src_base_low_cl__low__mul.cc -.endif - -.include +.include Copied: head/math/cln/files/patch-src_base_low_cl__low__div.cc (from r518766, head/math/cln/files/extra-patch-src_base_low_cl__low__div.cc) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/cln/files/patch-src_base_low_cl__low__div.cc Sun Dec 1 12:08:39 2019 (r518767, copy of r518766, head/math/cln/files/extra-patch-src_base_low_cl__low__div.cc) @@ -0,0 +1,11 @@ +--- src/base/low/cl_low_div.cc.orig 2011-04-08 21:07:28 UTC ++++ src/base/low/cl_low_div.cc +@@ -207,7 +207,7 @@ uint32 divu_6432_3232_(uint32 xhi, uint32 xlo, uint32 + #endif + + #ifdef NEED_VAR_divu_64_rest +-uint64 divu_64_rest; ++extern "C" uint64 divu_64_rest = 0; + #endif + + #ifdef NEED_FUNCTION_divu_6464_6464_ Copied: head/math/cln/files/patch-src_base_low_cl__low__mul.cc (from r518766, head/math/cln/files/extra-patch-src_base_low_cl__low__mul.cc) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/cln/files/patch-src_base_low_cl__low__mul.cc Sun Dec 1 12:08:39 2019 (r518767, copy of r518766, head/math/cln/files/extra-patch-src_base_low_cl__low__mul.cc) @@ -0,0 +1,16 @@ +--- src/base/low/cl_low_mul.cc.orig 2011-04-08 21:06:30 UTC ++++ src/base/low/cl_low_mul.cc +@@ -50,11 +50,11 @@ uint64 mulu32_w (uint32 arg1, uint32 arg2) + + + #ifdef NEED_VAR_mulu64_high +-uint64 mulu64_high; ++extern "C" uint64 mulu64_high; + #endif + + #ifdef NEED_FUNCTION_mulu64_ +-uint64 mulu64_high; ++extern "C" uint64 mulu64_high = 0; + namespace cln { + extern "C" uint64 mulu64_ (uint64 x, uint64 y); + uint64 mulu64_ (uint64 x, uint64 y)