From owner-svn-ports-head@freebsd.org Fri Jun 29 07:36:15 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CBA261033CF9; Fri, 29 Jun 2018 07:36:15 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 78419801BF; Fri, 29 Jun 2018 07:36:15 +0000 (UTC) (envelope-from linimon@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 4E35F1DE88; Fri, 29 Jun 2018 07:36:15 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w5T7aFgK077405; Fri, 29 Jun 2018 07:36:15 GMT (envelope-from linimon@FreeBSD.org) Received: (from linimon@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w5T7aEDq077399; Fri, 29 Jun 2018 07:36:14 GMT (envelope-from linimon@FreeBSD.org) Message-Id: <201806290736.w5T7aEDq077399@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: linimon set sender to linimon@FreeBSD.org using -f From: Mark Linimon Date: Fri, 29 Jun 2018 07:36:14 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r473530 - in head/math/cln: . files X-SVN-Group: ports-head X-SVN-Commit-Author: linimon X-SVN-Commit-Paths: in head/math/cln: . files X-SVN-Commit-Revision: 473530 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.26 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: Fri, 29 Jun 2018 07:36:16 -0000 Author: linimon Date: Fri Jun 29 07:36:14 2018 New Revision: 473530 URL: https://svnweb.freebsd.org/changeset/ports/473530 Log: Fix build on aarch64. Tested for no-harm on amd64. PR: 229262 Submitted by: greg at unrelenting.technology Approved by: portmgr (tier-2 blanket) Added: head/math/cln/files/patch-src_base_low_cl__low__div.cc (contents, props changed) head/math/cln/files/patch-src_base_low_cl__low__mul.cc (contents, props changed) Modified: head/math/cln/Makefile Modified: head/math/cln/Makefile ============================================================================== --- head/math/cln/Makefile Fri Jun 29 07:31:24 2018 (r473529) +++ head/math/cln/Makefile Fri Jun 29 07:36:14 2018 (r473530) @@ -21,8 +21,6 @@ USE_LDCONFIG= yes INFO= cln -BROKEN_aarch64= Fails to compile: error: declaration of divu_64_rest in global scope conflicts with declaration with C language linkage - .include .if ${ARCH} == aarch64 || ${ARCH} == armv6 || ${ARCH} == armv7 Added: head/math/cln/files/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 Fri Jun 29 07:36:14 2018 (r473530) @@ -0,0 +1,11 @@ +--- src/base/low/cl_low_div.cc.orig 2018-06-23 21:13:46 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; + #endif + + #ifdef NEED_FUNCTION_divu_6464_6464_ Added: head/math/cln/files/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 Fri Jun 29 07:36:14 2018 (r473530) @@ -0,0 +1,16 @@ +--- src/base/low/cl_low_mul.cc.orig 2018-06-23 21:15:19 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; + namespace cln { + extern "C" uint64 mulu64_ (uint64 x, uint64 y); + uint64 mulu64_ (uint64 x, uint64 y)