From owner-svn-ports-head@freebsd.org Mon Sep 9 18:01:31 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 C3DF5DA3BD; Mon, 9 Sep 2019 18:01:31 +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 46Rwvv4mrkz4KsK; Mon, 9 Sep 2019 18:01:31 +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 87192195E7; Mon, 9 Sep 2019 18:01:31 +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 x89I1VNM001021; Mon, 9 Sep 2019 18:01:31 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x89I1VYT001020; Mon, 9 Sep 2019 18:01:31 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <201909091801.x89I1VYT001020@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Mon, 9 Sep 2019 18:01:31 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r511652 - head/math/openblas X-SVN-Group: ports-head X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: head/math/openblas X-SVN-Commit-Revision: 511652 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: Mon, 09 Sep 2019 18:01:31 -0000 Author: pkubaj Date: Mon Sep 9 18:01:31 2019 New Revision: 511652 URL: https://svnweb.freebsd.org/changeset/ports/511652 Log: math/openblas: fix build on powerpc64 with clang, remove OPENMP option on powerpc64 On powerpc64 OpenMP is always used when USE_THREADS is defined (which we do unconditionally). This means that OPENMP option on powerpc64 doesn't have any effect and it should be removed. Clang also has some problems when linking Fortran libraries with OpenMP, so use GCC for powerpc64. PR: 240379 Approved by: phd_kimberlite@yahoo.co.jp (maintainer), linimon (mentor) Modified: head/math/openblas/Makefile Modified: head/math/openblas/Makefile ============================================================================== --- head/math/openblas/Makefile Mon Sep 9 17:53:41 2019 (r511651) +++ head/math/openblas/Makefile Mon Sep 9 18:01:31 2019 (r511652) @@ -41,6 +41,7 @@ OPTIONS_DEFINE= INTERFACE64 OPENMP OPTIONS_DEFINE_i386= DYNAMIC_ARCH AVX AVX2 OPTIONS_DEFINE_amd64= ${OPTIONS_DEFINE_i386} OPTIONS_DEFINE_powerpc64= POWER6 +OPTIONS_EXCLUDE_powerpc64= OPENMP .if defined(BATCH) || defined(PACKAGE_BUILDING) OPTIONS_DEFAULT_i386= DYNAMIC_ARCH @@ -57,6 +58,7 @@ POWER6_DESC= Optimize for POWER6, instead of the defa .include .if ${ARCH} == powerpc64 +USE_GCC= yes . if ${PORT_OPTIONS:MPOWER6} TARGET_CPU_ARCH= POWER6 .else