Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Mar 2021 00:27:51 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r567444 - in head/devel/folly: . files
Message-ID:  <202103060027.1260RpYo058535@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Sat Mar  6 00:27:50 2021
New Revision: 567444
URL: https://svnweb.freebsd.org/changeset/ports/567444

Log:
  devel/folly: fix build on powerpc64
  
  QuotientMultiSet doesn't work on big-endian architectures.
  
  Approved by:	tier 2 blanket
  MFH:		2021Q1

Added:
  head/devel/folly/files/patch-folly_experimental_QuotientMultiSet.h   (contents, props changed)
Modified:
  head/devel/folly/Makefile

Modified: head/devel/folly/Makefile
==============================================================================
--- head/devel/folly/Makefile	Sat Mar  6 00:25:10 2021	(r567443)
+++ head/devel/folly/Makefile	Sat Mar  6 00:27:50 2021	(r567444)
@@ -36,6 +36,7 @@ CMAKE_ON=	BUILD_SHARED_LIBS
 CMAKE_OFF=	FREEBSD_BUILD_EXAMPLES FREEBSD_FOLLY_USE_SYMBOLIZER # enabling symbolizer causes undefined symbol _r_debug, see https://github.com/facebook/folly/issues/1373
 
 CXXFLAGS+=	-fPIC
+CXXFLAGS_powerpc64=	-DFOLLY_QUOTIENT_MULTI_SET_SUPPORTED=0
 
 do-test:
 	@cd ${BUILD_WRKSRC} && \

Added: head/devel/folly/files/patch-folly_experimental_QuotientMultiSet.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/folly/files/patch-folly_experimental_QuotientMultiSet.h	Sat Mar  6 00:27:50 2021	(r567444)
@@ -0,0 +1,12 @@
+--- folly/experimental/QuotientMultiSet.h.orig	2021-03-06 00:00:24 UTC
++++ folly/experimental/QuotientMultiSet.h
+@@ -26,7 +26,9 @@
+ #include <folly/io/IOBufQueue.h>
+ 
+ // A 128-bit integer type is needed for fast division.
++#ifndef FOLLY_QUOTIENT_MULTI_SET_SUPPORTED
+ #define FOLLY_QUOTIENT_MULTI_SET_SUPPORTED FOLLY_HAVE_INT128_T
++#endif
+ 
+ #if FOLLY_QUOTIENT_MULTI_SET_SUPPORTED
+ 



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