Date: Thu, 25 Jun 2020 03:29:04 +0000 (UTC) From: Mark Linimon <linimon@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r540362 - head/math/ogdf/files Message-ID: <202006250329.05P3T4q0080500@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: linimon Date: Thu Jun 25 03:29:04 2020 New Revision: 540362 URL: https://svnweb.freebsd.org/changeset/ports/540362 Log: Attempt to fix build on GCC-based systems by disabling -march=native, which should never be set on the FreeBSD package building cluster whatsoever: g++9: error: unrecognized command line option '-march=native'; did you mean '-mcpu=native'? Unfortunately this is necessary but not sufficient for powerpc64: /wrkdirs/usr/ports/math/ogdf/work/OGDF/src/ogdf/basic/System.cpp:78:11: fatal error: cpuid.h: No such file or directory Approved by: portmgr (tier-2 blanket) Added: head/math/ogdf/files/patch-cmake_compiler-specifics.cmake (contents, props changed) Added: head/math/ogdf/files/patch-cmake_compiler-specifics.cmake ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/ogdf/files/patch-cmake_compiler-specifics.cmake Thu Jun 25 03:29:04 2020 (r540362) @@ -0,0 +1,12 @@ +--- cmake/compiler-specifics.cmake.orig 2020-02-09 22:05:19 UTC ++++ cmake/compiler-specifics.cmake +@@ -15,7 +15,8 @@ endif() + # use native arch (ie, activate things like SSE) + if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") + # cannot use add_definitions() here because it does not work with check-sse3.cmake +- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native") ++ # 20200624 disable this for FreeBSD package building machines. ++ #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native") + endif() + + # set default warning flags for OGDF and tests
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202006250329.05P3T4q0080500>