Created attachment 207251 [details] patch OpenBLAS on POWER is set up to use OpenMP when threads are enabled. This means we always build with OpenMP on POWER. Disable OPENMP option since it doesn't do anything on POWER. Since Clang is not happy when linking against gfortran-compiled libraries, use GCC to fix linking.
^Triage: Reporter is committer, assign accordingly
Approved as mentor (builds on ppcdevref).
A commit references this bug: Author: pkubaj Date: Mon Sep 9 18:01:31 UTC 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) Changes: head/math/openblas/Makefile