Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Oct 2019 06:32:15 +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: r514261 - in head/security/tfhe: . files
Message-ID:  <201910110632.x9B6WGfC025033@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Fri Oct 11 06:32:15 2019
New Revision: 514261
URL: https://svnweb.freebsd.org/changeset/ports/514261

Log:
  Commit necessary but insufficient changes to try to make this port
  build on GCC-based systems:
  
    cc1plus: error: unrecognized command line option "-march=native"
    cc1plus: error: unrecognized command line option "-std=gnu++11"
  
  However, this still leaves us with:
  
    /wrkdirs/usr/ports/security/tfhe/work/tfhe-1.0.1-14-g3319e2c/src/libtfhe/fft_processors/nayuki/fft-x8664-avx.s: Assembler messages:
    /wrkdirs/usr/ports/security/tfhe/work/tfhe-1.0.1-14-g3319e2c/src/libtfhe/fft_processors/nayuki/fft-x8664-avx.s:61: Error: unrecognized opcode: `pushq'
  
  Approved by:	portmgr (tier-2 blanket)

Added:
  head/security/tfhe/files/patch-src_CMakeLists.txt   (contents, props changed)
Modified:
  head/security/tfhe/Makefile

Modified: head/security/tfhe/Makefile
==============================================================================
--- head/security/tfhe/Makefile	Fri Oct 11 04:12:17 2019	(r514260)
+++ head/security/tfhe/Makefile	Fri Oct 11 06:32:15 2019	(r514261)
@@ -16,7 +16,7 @@ BUILD_DEPENDS=	cmake:devel/cmake
 TEST_DEPENDS=	fftw3>0:math/fftw3 \
 		googletest>0:devel/googletest
 
-USES=		gmake localbase:ldflags
+USES=		compiler:c++11-lang gmake localbase:ldflags
 USE_GITHUB=	yes
 USE_LDCONFIG=	yes
 

Added: head/security/tfhe/files/patch-src_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/tfhe/files/patch-src_CMakeLists.txt	Fri Oct 11 06:32:15 2019	(r514261)
@@ -0,0 +1,18 @@
+--- src/CMakeLists.txt.orig	2019-03-09 11:50:42 UTC
++++ src/CMakeLists.txt
+@@ -25,11 +25,11 @@ set(CMAKE_C_FLAGS  "${CMAKE_C_FLAGS} -st
+ set(CMAKE_CXX_FLAGS_DEBUG "${CLANG_FLAGS} -std=gnu++11 -g3 -O0 -Wall -Werror")
+ set(CMAKE_C_FLAGS_DEBUG "-g3 -O0 -Wall -Werror")
+ 
+-set(CMAKE_CXX_FLAGS_OPTIM "${CLANG_FLAGS} -std=gnu++11 -g3 -march=native -O2 -DNDEBUG -funroll-loops -Wall -Werror")
+-set(CMAKE_C_FLAGS_OPTIM "-g3 -march=native -O3 -DNDEBUG -funroll-loops -Wall -Werror")
++set(CMAKE_CXX_FLAGS_OPTIM "${CLANG_FLAGS} -std=gnu++11 -g3 -O2 -DNDEBUG -funroll-loops -Wall -Werror")
++set(CMAKE_C_FLAGS_OPTIM "-g3 -O3 -DNDEBUG -funroll-loops -Wall -Werror")
+ 
+-set(CMAKE_CXX_FLAGS_RELEASE "${CLANG_FLAGS} -std=gnu++11 -g0 -march=native -O2 -DNDEBUG -funroll-loops -Wall -Werror")
+-set(CMAKE_C_FLAGS_RELEASE "-g0 -march=native -O3 -DNDEBUG -funroll-loops -Wall -Werror")
++set(CMAKE_CXX_FLAGS_RELEASE "${CLANG_FLAGS} -std=gnu++11 -g0 -O2 -DNDEBUG -funroll-loops -Wall -Werror")
++set(CMAKE_C_FLAGS_RELEASE "-g0 -O3 -DNDEBUG -funroll-loops -Wall -Werror")
+ 
+ if (ENABLE_NAYUKI_PORTABLE)
+ list(APPEND FFT_PROCESSORS "nayuki-portable")



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910110632.x9B6WGfC025033>