diff options
| author | Khem Raj <raj.khem@gmail.com> | 2020-01-20 09:52:27 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-01-21 12:52:53 +0000 |
| commit | d697b4ca25c561604969e0f758a454725c186300 (patch) | |
| tree | 5a02e4c91df872f4431bcbc9674819766eb1cede /meta/recipes-graphics/mesa/files | |
| parent | dfa69259b9d7c1f23c592799230d4d338bc9af57 (diff) | |
| download | poky-d697b4ca25c561604969e0f758a454725c186300.tar.gz | |
mesa: Help compile with clang/mips
meson is detecting it does not support 64bit attomics but then when
defining local suppliments confused clang
../mesa-19.3.1/src/util/u_atomic.c:38:1: error: cannot redeclare builtin function '__sync_add_and_fetch_8'
__sync_add_and_fetch_8(uint64_t *ptr, uint64_t val)
^
../mesa-19.3.1/src/util/u_atomic.c:38:1: note: '__sync_add_and_fetch_8' is a builtin with type 'long long (volatile long long *, long long, ...)'
../mesa-19.3.1/src/util/u_atomic.c:38:1: error: definition of builtin function '__sync_add_and_fetch_8'
__sync_add_and_fetch_8(uint64_t *ptr, uint64_t val)
^
(From OE-Core rev: a18ad964d000a15ac4039c893dd9d3f8e545c223)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/mesa/files')
| -rw-r--r-- | meta/recipes-graphics/mesa/files/0001-meson-misdetects-64bit-atomics-on-mips-clang.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-graphics/mesa/files/0001-meson-misdetects-64bit-atomics-on-mips-clang.patch b/meta/recipes-graphics/mesa/files/0001-meson-misdetects-64bit-atomics-on-mips-clang.patch new file mode 100644 index 0000000000..15485feb71 --- /dev/null +++ b/meta/recipes-graphics/mesa/files/0001-meson-misdetects-64bit-atomics-on-mips-clang.patch | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | From bb2f0bea553d51d659a9bc46f7ae186885405151 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Mon, 13 Jan 2020 15:23:47 -0800 | ||
| 4 | Subject: [PATCH] meson misdetects 64bit atomics on mips/clang | ||
| 5 | |||
| 6 | Upstream-Status: Pending | ||
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 8 | --- | ||
| 9 | src/util/u_atomic.c | 2 +- | ||
| 10 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 11 | |||
| 12 | diff --git a/src/util/u_atomic.c b/src/util/u_atomic.c | ||
| 13 | index e4bffa8..58e1ddd 100644 | ||
| 14 | --- a/src/util/u_atomic.c | ||
| 15 | +++ b/src/util/u_atomic.c | ||
| 16 | @@ -21,7 +21,7 @@ | ||
| 17 | * IN THE SOFTWARE. | ||
| 18 | */ | ||
| 19 | |||
| 20 | -#if defined(MISSING_64BIT_ATOMICS) && defined(HAVE_PTHREAD) | ||
| 21 | +#if !defined(__clang__) && defined(MISSING_64BIT_ATOMICS) && defined(HAVE_PTHREAD) | ||
| 22 | |||
| 23 | #include <stdint.h> | ||
| 24 | #include <pthread.h> | ||
| 25 | -- | ||
| 26 | 2.24.1 | ||
| 27 | |||
