Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Sep 2021 09:44:24 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 43e895ad805c - main - databases/memcached: fix build on powerpc64le
Message-ID:  <202109200944.18K9iO11067559@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=43e895ad805c82e8d84dbf1ca7f014dfa6f2eaf7

commit 43e895ad805c82e8d84dbf1ca7f014dfa6f2eaf7
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-09-20 09:42:00 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-09-20 09:42:00 +0000

    databases/memcached: fix build on powerpc64le
    
    In file included from hash.c:7:
    In file included from ./xxhash.h:2934:
    /usr/lib/clang/11.0.1/include/altivec.h:55:19: error: unknown type name 'vector'
    static __inline__ vector bool char __ATTRS_o_ai
                      ^
    /usr/lib/clang/11.0.1/include/altivec.h:56:10: error: unknown type name 'vector'
    vec_perm(vector bool char __a, vector bool char __b, vector unsigned char __c);
---
 databases/memcached/files/patch-xxhash.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/databases/memcached/files/patch-xxhash.h b/databases/memcached/files/patch-xxhash.h
new file mode 100644
index 000000000000..f62d8def3ef3
--- /dev/null
+++ b/databases/memcached/files/patch-xxhash.h
@@ -0,0 +1,10 @@
+--- xxhash.h.orig	2021-03-31 12:18:19 UTC
++++ xxhash.h
+@@ -2409,6 +2409,7 @@ XXH_PUBLIC_API XXH64_hash_t XXH64_hashFromCanonical(co
+ #    if defined(__GNUC__) && !defined(__APPLE_ALTIVEC__)
+ #      define __APPLE_ALTIVEC__
+ #    endif
++#    define vector __vector
+ #    include <altivec.h>
+ #  endif
+ 



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