diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-03-02 18:50:11 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-03-04 08:45:47 -0800 |
commit | e9a51a1196e145b5803fef0d37e97f689d378cde (patch) | |
tree | d37e6d1a481f312156fbffa6ca548ea8f5a112f7 | |
parent | 9118fa842aa35da672cabe4ecfad917dadfb4937 (diff) | |
download | meta-openembedded-e9a51a1196e145b5803fef0d37e97f689d378cde.tar.gz |
libx86-1: Fix build with clang16
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-extended/libx86-1/libx86-1.1/0001-Define-CARD32-as-uint-as-it-is-32-bit.patch | 34 | ||||
-rw-r--r-- | meta-oe/recipes-extended/libx86-1/libx86-1_1.1.bb | 1 |
2 files changed, 35 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/libx86-1/libx86-1.1/0001-Define-CARD32-as-uint-as-it-is-32-bit.patch b/meta-oe/recipes-extended/libx86-1/libx86-1.1/0001-Define-CARD32-as-uint-as-it-is-32-bit.patch new file mode 100644 index 000000000..cc4ee7eef --- /dev/null +++ b/meta-oe/recipes-extended/libx86-1/libx86-1.1/0001-Define-CARD32-as-uint-as-it-is-32-bit.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From 592c915df252932961a4151c891da58c48a8db90 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 2 Mar 2023 18:47:40 -0800 | ||
4 | Subject: [PATCH] Define CARD32 as uint as it is 32-bit | ||
5 | |||
6 | long can be 64bit on LP64 systems | ||
7 | |||
8 | Fixes build with clang-16 | ||
9 | thunk.c:147:3: error: incompatible function pointer types initializing 'x86emuu32 (*)(X86EMU_pioAddr)' (aka 'unsigned int (*)(unsigned short)') with an expression of type 'unsigned long (*)(unsigned short)' [-Wincompatible-function-pointer-types] | ||
10 | (&x_inl), | ||
11 | ^~~~~~~~ | ||
12 | |||
13 | Upstream-Status: Pending | ||
14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
15 | --- | ||
16 | x86emu/include/xf86int10.h | 2 +- | ||
17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
18 | |||
19 | diff --git a/x86emu/include/xf86int10.h b/x86emu/include/xf86int10.h | ||
20 | index 9c131dd..acd5114 100644 | ||
21 | --- a/x86emu/include/xf86int10.h | ||
22 | +++ b/x86emu/include/xf86int10.h | ||
23 | @@ -18,7 +18,7 @@ | ||
24 | |||
25 | #define CARD8 unsigned char | ||
26 | #define CARD16 unsigned short | ||
27 | -#define CARD32 unsigned long | ||
28 | +#define CARD32 unsigned int | ||
29 | #define pointer void * | ||
30 | #define IOADDRESS void * | ||
31 | #define Bool int | ||
32 | -- | ||
33 | 2.39.2 | ||
34 | |||
diff --git a/meta-oe/recipes-extended/libx86-1/libx86-1_1.1.bb b/meta-oe/recipes-extended/libx86-1/libx86-1_1.1.bb index 9dc91f3f6..b646162c2 100644 --- a/meta-oe/recipes-extended/libx86-1/libx86-1_1.1.bb +++ b/meta-oe/recipes-extended/libx86-1/libx86-1_1.1.bb | |||
@@ -12,6 +12,7 @@ SRC_URI = "http://www.codon.org.uk/~mjg59/libx86/downloads/${BPN}-${PV}.tar.gz \ | |||
12 | file://0001-assume-zero-is-valid-address.patch \ | 12 | file://0001-assume-zero-is-valid-address.patch \ |
13 | file://makefile-add-ldflags.patch \ | 13 | file://makefile-add-ldflags.patch \ |
14 | file://0001-Fix-type-of-the-void-pointer-assignment.patch \ | 14 | file://0001-Fix-type-of-the-void-pointer-assignment.patch \ |
15 | file://0001-Define-CARD32-as-uint-as-it-is-32-bit.patch \ | ||
15 | " | 16 | " |
16 | 17 | ||
17 | SRC_URI[md5sum] = "41bee1f8e22b82d82b5f7d7ba51abc2a" | 18 | SRC_URI[md5sum] = "41bee1f8e22b82d82b5f7d7ba51abc2a" |