diff options
| author | mark.yang <mark.yang@lge.com> | 2025-04-10 11:11:47 +0900 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-04-10 08:31:04 -0700 |
| commit | bb4104013789342fe13bd6ecac5645a96217417b (patch) | |
| tree | 3ba70d50a71fad1af24b10ed69ec2e979d587194 | |
| parent | a3e34d2ada9f230ca105aa36bbff2eb5484b100d (diff) | |
| download | meta-openembedded-bb4104013789342fe13bd6ecac5645a96217417b.tar.gz | |
nbench-byte: fix build error with gcc-15
* Fix the following build error with gcc-15:
nbench1.c:3520:13: error: conflicting types for 'adjust_mid_wts'; have 'void(int)'
3520 | static void adjust_mid_wts(int patt)
| ^~~~~~~~~~~~~~
In file included from nbench1.c:64:
nbench1.h:373:13: note: previous declaration of 'adjust_mid_wts' with type 'void(void)'
373 | static void adjust_mid_wts();
| ^~~~~~~~~~~~~~
Signed-off-by: mark.yang <mark.yang@lge.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-benchmark/nbench-byte/nbench-byte/0001-Fix-build-error-with-gcc-15.patch | 34 | ||||
| -rw-r--r-- | meta-oe/recipes-benchmark/nbench-byte/nbench-byte_2.2.3.bb | 3 |
2 files changed, 36 insertions, 1 deletions
diff --git a/meta-oe/recipes-benchmark/nbench-byte/nbench-byte/0001-Fix-build-error-with-gcc-15.patch b/meta-oe/recipes-benchmark/nbench-byte/nbench-byte/0001-Fix-build-error-with-gcc-15.patch new file mode 100644 index 0000000000..8e01e17e91 --- /dev/null +++ b/meta-oe/recipes-benchmark/nbench-byte/nbench-byte/0001-Fix-build-error-with-gcc-15.patch | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | From 3ee8798764919cd3f7d983f99f6189bbb940d639 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: "mark.yang" <mark.yang@lge.com> | ||
| 3 | Date: Thu, 10 Apr 2025 10:53:14 +0900 | ||
| 4 | Subject: [PATCH] Fix build error with gcc-15 | ||
| 5 | |||
| 6 | * Fix the following build error with gcc-15: | ||
| 7 | nbench1.c:3520:13: error: conflicting types for 'adjust_mid_wts'; have 'void(int)' | ||
| 8 | 3520 | static void adjust_mid_wts(int patt) | ||
| 9 | | ^~~~~~~~~~~~~~ | ||
| 10 | In file included from nbench1.c:64: | ||
| 11 | nbench1.h:373:13: note: previous declaration of 'adjust_mid_wts' with type 'void(void)' | ||
| 12 | 373 | static void adjust_mid_wts(); | ||
| 13 | | ^~~~~~~~~~~~~~ | ||
| 14 | |||
| 15 | Upstream-Status: Inappropriate [no upstream] | ||
| 16 | |||
| 17 | Signed-off-by: mark.yang <mark.yang@lge.com> | ||
| 18 | --- | ||
| 19 | nbench1.h | 2 +- | ||
| 20 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 21 | |||
| 22 | diff --git a/nbench1.h b/nbench1.h | ||
| 23 | index 13a5907..b81ca82 100644 | ||
| 24 | --- a/nbench1.h | ||
| 25 | +++ b/nbench1.h | ||
| 26 | @@ -370,7 +370,7 @@ static void do_out_error(int patt); | ||
| 27 | static void worst_pass_error(); | ||
| 28 | static void do_mid_error(); | ||
| 29 | static void adjust_out_wts(); | ||
| 30 | -static void adjust_mid_wts(); | ||
| 31 | +static void adjust_mid_wts(int patt); | ||
| 32 | static void do_back_pass(int patt); | ||
| 33 | static void move_wt_changes(); | ||
| 34 | static int check_out_error(); | ||
diff --git a/meta-oe/recipes-benchmark/nbench-byte/nbench-byte_2.2.3.bb b/meta-oe/recipes-benchmark/nbench-byte/nbench-byte_2.2.3.bb index 9e1cedc2df..da03ebb291 100644 --- a/meta-oe/recipes-benchmark/nbench-byte/nbench-byte_2.2.3.bb +++ b/meta-oe/recipes-benchmark/nbench-byte/nbench-byte_2.2.3.bb | |||
| @@ -9,7 +9,8 @@ SECTION = "console/utils" | |||
| 9 | 9 | ||
| 10 | SRC_URI = "https://fossies.org/linux/misc/old/${BP}.tar.gz \ | 10 | SRC_URI = "https://fossies.org/linux/misc/old/${BP}.tar.gz \ |
| 11 | file://nbench_32bits.patch \ | 11 | file://nbench_32bits.patch \ |
| 12 | file://Makefile-add-more-dependencies-to-pointer.h.patch" | 12 | file://Makefile-add-more-dependencies-to-pointer.h.patch \ |
| 13 | file://0001-Fix-build-error-with-gcc-15.patch" | ||
| 13 | 14 | ||
| 14 | SRC_URI[sha256sum] = "723dd073f80e9969639eb577d2af4b540fc29716b6eafdac488d8f5aed9101ac" | 15 | SRC_URI[sha256sum] = "723dd073f80e9969639eb577d2af4b540fc29716b6eafdac488d8f5aed9101ac" |
| 15 | 16 | ||
