From owner-svn-ports-all@freebsd.org Sun Sep 2 16:40:17 2018 Return-Path: Delivered-To: svn-ports-all@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 843BEFF3D25; Sun, 2 Sep 2018 16:40:17 +0000 (UTC) (envelope-from yuri@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 3A7CA7F7DC; Sun, 2 Sep 2018 16:40:17 +0000 (UTC) (envelope-from yuri@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 1B9C11BCDC; Sun, 2 Sep 2018 16:40:17 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w82GeGW5091737; Sun, 2 Sep 2018 16:40:16 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w82GeG2m091736; Sun, 2 Sep 2018 16:40:16 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201809021640.w82GeG2m091736@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Sun, 2 Sep 2018 16:40:16 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r478808 - head/graphics/py-open3d-python/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: head/graphics/py-open3d-python/files X-SVN-Commit-Revision: 478808 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Sep 2018 16:40:17 -0000 Author: yuri Date: Sun Sep 2 16:40:16 2018 New Revision: 478808 URL: https://svnweb.freebsd.org/changeset/ports/478808 Log: graphics/py-open3d-python: Fix build failure on 12 12 has the failure: /usr/local/bin/ld: /usr/bin/../lib/LLVMgold.so: error loading plugin: Cannot open "/usr/bin/../lib/LLVMgold.so" c++: error: linker command failed with exit code 1 (use -v to see invocation) that is triggered by the -flto argument. It isn't supplied on 11. Add patch that eliminates -flto altogether. Added: head/graphics/py-open3d-python/files/patch-External_pybind11_tools_pybind11Tools.cmake (contents, props changed) Added: head/graphics/py-open3d-python/files/patch-External_pybind11_tools_pybind11Tools.cmake ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/py-open3d-python/files/patch-External_pybind11_tools_pybind11Tools.cmake Sun Sep 2 16:40:16 2018 (r478808) @@ -0,0 +1,32 @@ +--- External/pybind11/tools/pybind11Tools.cmake.orig 2018-09-02 16:32:40 UTC ++++ External/pybind11/tools/pybind11Tools.cmake +@@ -69,17 +69,19 @@ function(_pybind11_add_lto_flags target_ + set(cxx_append ";-fno-fat-lto-objects") + endif() + +- if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND prefer_thin_lto) +- _pybind11_return_if_cxx_and_linker_flags_work(HAS_FLTO_THIN +- "-flto=thin${cxx_append}" "-flto=thin${linker_append}" +- PYBIND11_LTO_CXX_FLAGS PYBIND11_LTO_LINKER_FLAGS) +- endif() ++ # Disable -flto because it fails on 12: /usr/local/bin/ld: /usr/bin/../lib/LLVMgold.so: error loading plugin: Cannot open "/usr/bin/../lib/LLVMgold.so" ++ # It is only activated on 12, not 11, for some reason. ++ #if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND prefer_thin_lto) ++ # _pybind11_return_if_cxx_and_linker_flags_work(HAS_FLTO_THIN ++ # "-flto=thin${cxx_append}" "-flto=thin${linker_append}" ++ # PYBIND11_LTO_CXX_FLAGS PYBIND11_LTO_LINKER_FLAGS) ++ #endif() + +- if (NOT HAS_FLTO_THIN) +- _pybind11_return_if_cxx_and_linker_flags_work(HAS_FLTO +- "-flto${cxx_append}" "-flto${linker_append}" +- PYBIND11_LTO_CXX_FLAGS PYBIND11_LTO_LINKER_FLAGS) +- endif() ++ #if (NOT HAS_FLTO_THIN) ++ # _pybind11_return_if_cxx_and_linker_flags_work(HAS_FLTO ++ # "-flto${cxx_append}" "-flto${linker_append}" ++ # PYBIND11_LTO_CXX_FLAGS PYBIND11_LTO_LINKER_FLAGS) ++ #endif() + elseif (CMAKE_CXX_COMPILER_ID MATCHES "Intel") + # Intel equivalent to LTO is called IPO + _pybind11_return_if_cxx_and_linker_flags_work(HAS_INTEL_IPO