diff options
| author | Yi Zhao <yi.zhao@eng.windriver.com> | 2025-02-08 12:41:24 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-02-10 13:03:58 +0000 |
| commit | a886f0a8cdb4fd98f68b7494c666878fadf4626f (patch) | |
| tree | 1cfc7d91c0241607419a717b4c45ad34beaa5e3e /meta/recipes-support/liburcu | |
| parent | fe5eb41c4cde9d24f1514293dea53b1b57467369 (diff) | |
| download | poky-a886f0a8cdb4fd98f68b7494c666878fadf4626f.tar.gz | |
liburcu: add missing header file in uatomic/generic.h
We encountered the following error when building multipath-tools on
qemuppc64 platform:
| In file included from /build/tmp/work/ppc64p9le-wrs-linux/multipath-tools/0.10.0/recipe-sysroot/usr/include/urcu/uatomic/ppc.h:228,
| from /build/tmp/work/ppc64p9le-wrs-linux/multipath-tools/0.10.0/recipe-sysroot/usr/include/urcu/uatomic.h:73,
| from lock.h:5,
| from lock.c:1:
| /build/tmp/work/ppc64p9le-wrs-linux/multipath-tools/0.10.0/recipe-sysroot/usr/include/urcu/uatomic/generic.h: In function '_uatomic_and':
| /build/tmp/work/ppc64p9le-wrs-linux/multipath-tools/0.10.0/recipe-sysroot/usr/include/urcu/uatomic/generic.h:422:24: error: implicit declaration of function 'abort' [-Wimplicit-function-declaration]
| 422 | oldt = uatomic_read((uint32_t *) addr);
| | ^~~~~~~~~~~~
| /build/tmp/work/ppc64p9le-wrs-linux/multipath-tools/0.10.0/recipe-sysroot/usr/include/urcu/uatomic/generic.h:1:1: note: include '<stdlib.h>' or provide a declaration of 'abort'
| +++ |+#include <stdlib.h>
| 1 | // SPDX-FileCopyrightText: 1991-1994 by Xerox Corporation. All rights reserved.
| make[1]: *** [../Makefile.inc:155: lock.o] Error 1
| make[1]: Leaving directory '/build/tmp/work/ppc64p9le-wrs-linux/multipath-tools/0.10.0/git/libmultipath'
Add stdlib.h header file for abort() in uatomic/generic.h.
(From OE-Core rev: 6dd6da04485152971346ee3fc09402c72aacbf22)
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/liburcu')
| -rw-r--r-- | meta/recipes-support/liburcu/liburcu/0001-uatomic-generic.h-add-missing-stdlib.h-header-file-f.patch | 45 | ||||
| -rw-r--r-- | meta/recipes-support/liburcu/liburcu_0.15.0.bb | 4 |
2 files changed, 48 insertions, 1 deletions
diff --git a/meta/recipes-support/liburcu/liburcu/0001-uatomic-generic.h-add-missing-stdlib.h-header-file-f.patch b/meta/recipes-support/liburcu/liburcu/0001-uatomic-generic.h-add-missing-stdlib.h-header-file-f.patch new file mode 100644 index 0000000000..5872f45f43 --- /dev/null +++ b/meta/recipes-support/liburcu/liburcu/0001-uatomic-generic.h-add-missing-stdlib.h-header-file-f.patch | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | From c534091fc6924e76e6d24e861da9cf7272714231 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Yi Zhao <yi.zhao@windriver.com> | ||
| 3 | Date: Tue, 21 Jan 2025 11:02:05 +0800 | ||
| 4 | Subject: [PATCH] uatomic/generic.h: add missing stdlib.h header file for | ||
| 5 | abort() | ||
| 6 | |||
| 7 | We encountered the following error when building multipath-tools on | ||
| 8 | qemuppc64 platform: | ||
| 9 | |||
| 10 | | In file included from /build/tmp/work/ppc64p9le-wrs-linux/multipath-tools/0.10.0/recipe-sysroot/usr/include/urcu/uatomic/ppc.h:228, | ||
| 11 | | from /build/tmp/work/ppc64p9le-wrs-linux/multipath-tools/0.10.0/recipe-sysroot/usr/include/urcu/uatomic.h:73, | ||
| 12 | | from lock.h:5, | ||
| 13 | | from lock.c:1: | ||
| 14 | | /build/tmp/work/ppc64p9le-wrs-linux/multipath-tools/0.10.0/recipe-sysroot/usr/include/urcu/uatomic/generic.h: In function '_uatomic_and': | ||
| 15 | | /build/tmp/work/ppc64p9le-wrs-linux/multipath-tools/0.10.0/recipe-sysroot/usr/include/urcu/uatomic/generic.h:422:24: error: implicit declaration of function 'abort' [-Wimplicit-function-declaration] | ||
| 16 | | 422 | oldt = uatomic_read((uint32_t *) addr); | ||
| 17 | | | ^~~~~~~~~~~~ | ||
| 18 | | /build/tmp/work/ppc64p9le-wrs-linux/multipath-tools/0.10.0/recipe-sysroot/usr/include/urcu/uatomic/generic.h:1:1: note: include '<stdlib.h>' or provide a declaration of 'abort' | ||
| 19 | | +++ |+#include <stdlib.h> | ||
| 20 | | 1 | // SPDX-FileCopyrightText: 1991-1994 by Xerox Corporation. All rights reserved. | ||
| 21 | | make[1]: *** [../Makefile.inc:155: lock.o] Error 1 | ||
| 22 | | make[1]: Leaving directory '/build/tmp/work/ppc64p9le-wrs-linux/multipath-tools/0.10.0/git/libmultipath' | ||
| 23 | |||
| 24 | Upstream-Status: Submitted [https://github.com/urcu/userspace-rcu/pull/28] | ||
| 25 | |||
| 26 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
| 27 | --- | ||
| 28 | include/urcu/uatomic/generic.h | 1 + | ||
| 29 | 1 file changed, 1 insertion(+) | ||
| 30 | |||
| 31 | diff --git a/include/urcu/uatomic/generic.h b/include/urcu/uatomic/generic.h | ||
| 32 | index 5a81e00..5c8cb6c 100644 | ||
| 33 | --- a/include/urcu/uatomic/generic.h | ||
| 34 | +++ b/include/urcu/uatomic/generic.h | ||
| 35 | @@ -15,6 +15,7 @@ | ||
| 36 | */ | ||
| 37 | |||
| 38 | #include <stdint.h> | ||
| 39 | +#include <stdlib.h> | ||
| 40 | #include <urcu/compiler.h> | ||
| 41 | #include <urcu/system.h> | ||
| 42 | |||
| 43 | -- | ||
| 44 | 2.25.1 | ||
| 45 | |||
diff --git a/meta/recipes-support/liburcu/liburcu_0.15.0.bb b/meta/recipes-support/liburcu/liburcu_0.15.0.bb index 95d9ba17e1..a029b88111 100644 --- a/meta/recipes-support/liburcu/liburcu_0.15.0.bb +++ b/meta/recipes-support/liburcu/liburcu_0.15.0.bb | |||
| @@ -12,7 +12,9 @@ LIC_FILES_CHKSUM = "file://LICENSE.md;md5=c2a92498b6e88e276f986877995425b8 \ | |||
| 12 | " | 12 | " |
| 13 | 13 | ||
| 14 | 14 | ||
| 15 | SRC_URI = "http://lttng.org/files/urcu/userspace-rcu-${PV}.tar.bz2" | 15 | SRC_URI = "http://lttng.org/files/urcu/userspace-rcu-${PV}.tar.bz2 \ |
| 16 | file://0001-uatomic-generic.h-add-missing-stdlib.h-header-file-f.patch \ | ||
| 17 | " | ||
| 16 | 18 | ||
| 17 | SRC_URI[sha256sum] = "4f2d839af67905ad396d6d53ba5649b66113d90840dcbc89941e0da64bccd38c" | 19 | SRC_URI[sha256sum] = "4f2d839af67905ad396d6d53ba5649b66113d90840dcbc89941e0da64bccd38c" |
| 18 | 20 | ||
