Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 May 2017 13:38:07 +0000 (UTC)
From:      Vasil Dimov <vd@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r441686 - head/databases/galera
Message-ID:  <201705251338.v4PDc70h032220@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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