Date: Thu, 19 Mar 2020 12:18:34 +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: r528718 - head/databases/mysql56-server Message-ID: <202003191218.02JCIYE4062206@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pkubaj Date: Thu Mar 19 12:18:34 2020 New Revision: 528718 URL: https://svnweb.freebsd.org/changeset/ports/528718 Log: databases/mysql56-server: fix build on powerpc64 elfv2 This port doesn't build on powerpc64 with clang: Wrong types for attribute: inalloca nest noalias nocapture nonnull readnone readonly signext sret zeroext byval dereferenceable(1) dereferenceable_or_null(1) %call38 = call signext i32 @my_atomic_cas32(i32* %58, i32* %60, %union.U_32 signext %61) in function lf_hash_insert fatal error: error in backend: Broken function found, compilation aborted! cc: error: clang frontend command failed with exit code 70 (use -v to see invocation) FreeBSD clang version 10.0.0 (git@github.com:llvm/llvm-project.git llvmorg-10.0.0-rc3-1-gc290cb61fdc) Target: powerpc64-unknown-freebsd13.0 Thread model: posix InstalledDir: /usr/bin This issue is already reported upstream, so switch for now to GCC on powerpc64. Modified: head/databases/mysql56-server/Makefile Modified: head/databases/mysql56-server/Makefile ============================================================================== --- head/databases/mysql56-server/Makefile Thu Mar 19 12:16:47 2020 (r528717) +++ head/databases/mysql56-server/Makefile Thu Mar 19 12:18:34 2020 (r528718) @@ -14,8 +14,8 @@ COMMENT?= Multithreaded SQL database (server) LICENSE= GPLv2 SLAVEDIRS= databases/mysql56-client -USES= bison:build cmake:noninja compiler:c11 compiler:c++11-lib \ - cpe groff:run libedit localbase perl5 shebangfix ssl +USES= bison:build cmake:noninja cpe groff:run libedit localbase \ + perl5 shebangfix ssl USE_PERL5= run @@ -134,6 +134,14 @@ FEDERATED_SUB_LIST_OFF+= FEDER="" .endif .include <bsd.port.options.mk> + +.if defined(PPC_ABI) && ${PPC_ABI} == ELFv2 +USES+= compiler:gcc-c++11-lib +USE_CXXSTD= gnu++11 +.else +USES+= compiler:c++11-lang +USE_CXXSTD= gnu++98 +.endif .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200057 SUB_LIST+= LEGACY_LIMITS="@comment " MODERN_LIMITS=""
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003191218.02JCIYE4062206>