svn commit: r441686 - head/databases/galera

Vasil Dimov vd at FreeBSD.org
Thu May 25 13:38:08 UTC 2017


Author: vd
Date: Thu May 25 13:38:07 2017
New Revision: 441686
URL: https://svnweb.freebsd.org/changeset/ports/441686

Log:
  Disable databases/galera on i386
  
  It uses 64 bit atomics, e.g. __atomic_add_fetch() with 64 bit arguments
  and clang fails to generate those on i386.

Modified:
  head/databases/galera/Makefile

Modified: head/databases/galera/Makefile
==============================================================================
--- head/databases/galera/Makefile	Thu May 25 13:34:32 2017	(r441685)
+++ head/databases/galera/Makefile	Thu May 25 13:38:07 2017	(r441686)
@@ -15,6 +15,17 @@ BUILD_DEPENDS=	checkmk:devel/check \
 		${LOCALBASE}/include/boost/shared_ptr.hpp:devel/boost-libs
 LIB_DEPENDS=	libboost_date_time.so:devel/boost-libs
 
+NOT_FOR_ARCHS=	i386
+# On i386 older versions of clang produce:
+#   cannot compile this atomic library call yet ... __atomic_add_fetch
+# whereas newer ones generate a call to __atomic_add_fetch which ends up with
+# undefined reference at link time:
+#   undefined reference to `__atomic_fetch_add_8'
+# https://bugs.llvm.org//show_bug.cgi?id=23262
+# https://bugs.llvm.org//show_bug.cgi?id=24908
+# https://tracker.crystax.net/issues/1263
+NOT_FOR_ARCHS_REASON_i386=Uses 64 bit atomics that clang cannot generate on i386
+
 USES=		execinfo python:build scons ssl
 
 USE_LDCONFIG=	yes


More information about the svn-ports-all mailing list