Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Mar 2020 10:20:16 +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: r528843 - head/databases/mariadb101-server
Message-ID:  <202003211020.02LAKGL5021719@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Sat Mar 21 10:20:16 2020
New Revision: 528843
URL: https://svnweb.freebsd.org/changeset/ports/528843

Log:
  databases/mariadb101-server: fix build on powerpc64 elfv2
  
  Like other SQL servers, this port fails to build due to Clang bug:
  Wrong types for attribute: inalloca nest noalias nocapture nonnull readnone readonly signext sret zeroext byval dereferenceable(1) dereferenceable_or_null(1)
    %call54 = call signext i32 @my_atomic_cas32(i32* %62, i32* %64, %union.U_32 signext %65)
  in function lf_hash_insert
  fatal error: error in backend: Broken function found, compilation aborted!

Modified:
  head/databases/mariadb101-server/Makefile

Modified: head/databases/mariadb101-server/Makefile
==============================================================================
--- head/databases/mariadb101-server/Makefile	Sat Mar 21 09:53:42 2020	(r528842)
+++ head/databases/mariadb101-server/Makefile	Sat Mar 21 10:20:16 2020	(r528843)
@@ -28,7 +28,7 @@ LICENSE_PERMS_PerconaFT=	dist-mirror dist-sell pkg-mir
 
 SUB_FILES=	pkg-message
 
-USES=		bison:build cmake:insource,noninja compiler:c++11-lib cpe libedit ncurses \
+USES=		bison:build cmake:insource,noninja cpe libedit ncurses \
 		shebangfix ssl
 USE_LDCONFIG=	${PREFIX}/lib/mysql
 SHEBANG_FILES=	scripts/*.sh
@@ -161,6 +161,12 @@ ZMQ_LIB_DEPENDS=	libzmq.so:net/libzmq4
 SUB_LIST+=	LEGACY_LIMITS="@comment " MODERN_LIMITS=""
 .else
 SUB_LIST+=	LEGACY_LIMITS="" MODERN_LIMITS="@comment "
+.endif
+
+.if defined(PPC_ABI) && ${PPC_ABI} == ELFv2
+USES+=	compiler:gcc-c++11-lib
+.else
+USES+=	compiler:c++11-lib
 .endif
 
 .include <bsd.port.pre.mk>



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