diff options
-rw-r--r-- | meta-oe/recipes-benchmark/dhrystone/dhrystone-2.1/0001-fix-too-many-arguments-error-in-gcc15.patch | 32 | ||||
-rw-r--r-- | meta-oe/recipes-benchmark/dhrystone/dhrystone_2.1.bb | 25 |
2 files changed, 33 insertions, 24 deletions
diff --git a/meta-oe/recipes-benchmark/dhrystone/dhrystone-2.1/0001-fix-too-many-arguments-error-in-gcc15.patch b/meta-oe/recipes-benchmark/dhrystone/dhrystone-2.1/0001-fix-too-many-arguments-error-in-gcc15.patch new file mode 100644 index 0000000000..63701d9c97 --- /dev/null +++ b/meta-oe/recipes-benchmark/dhrystone/dhrystone-2.1/0001-fix-too-many-arguments-error-in-gcc15.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From a0a976c0c4c2b92d61e71e00be4adfd8ea6d0d8f Mon Sep 17 00:00:00 2001 | ||
2 | From: "mark.yang" <mark.yang@lge.com> | ||
3 | Date: Thu, 10 Apr 2025 14:14:15 +0900 | ||
4 | Subject: [PATCH] fix too many arguments error in gcc15 | ||
5 | |||
6 | dhry_1.c: In function 'main': | ||
7 | dhry_1.c:176:23: error: too many arguments to function 'Func_1'; expected 0, have 2 | ||
8 | 176 | if (Enum_Loc == Func_1 (Ch_Index, 'C')) | ||
9 | | ^~~~~~ ~~~~~~~~ | ||
10 | dhry_1.c:33:17: note: declared here | ||
11 | 33 | Enumeration Func_1 (); | ||
12 | | ^~~~~~ | ||
13 | |||
14 | Upstream-Status: Inactive-Upstream [lastrelease: 1988] | ||
15 | Signed-off-by: mark.yang <mark.yang@lge.com> | ||
16 | --- | ||
17 | dhry_1.c | 2 +- | ||
18 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
19 | |||
20 | diff --git a/dhry_1.c b/dhry_1.c | ||
21 | index b081b86..e5a4873 100644 | ||
22 | --- a/dhry_1.c | ||
23 | +++ b/dhry_1.c | ||
24 | @@ -30,7 +30,7 @@ char Ch_1_Glob, | ||
25 | int Arr_1_Glob [50]; | ||
26 | int Arr_2_Glob [50] [50]; | ||
27 | |||
28 | -Enumeration Func_1 (); | ||
29 | +Enumeration Func_1 (Capital_Letter Ch_1_Par_Val, Capital_Letter Ch_2_Par_Val); | ||
30 | /* forward declaration necessary since Enumeration may not simply be int */ | ||
31 | |||
32 | #ifndef REG | ||
diff --git a/meta-oe/recipes-benchmark/dhrystone/dhrystone_2.1.bb b/meta-oe/recipes-benchmark/dhrystone/dhrystone_2.1.bb index 4cc1999cf1..a8d750e885 100644 --- a/meta-oe/recipes-benchmark/dhrystone/dhrystone_2.1.bb +++ b/meta-oe/recipes-benchmark/dhrystone/dhrystone_2.1.bb | |||
@@ -5,6 +5,7 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/PD;md5=b3597d1 | |||
5 | SRC_URI = "http://www.netlib.org/benchmark/dhry-c;downloadfilename=dhry-c.shar \ | 5 | SRC_URI = "http://www.netlib.org/benchmark/dhry-c;downloadfilename=dhry-c.shar \ |
6 | file://dhrystone.patch \ | 6 | file://dhrystone.patch \ |
7 | file://dhrystone-c89.patch \ | 7 | file://dhrystone-c89.patch \ |
8 | file://0001-fix-too-many-arguments-error-in-gcc15.patch \ | ||
8 | " | 9 | " |
9 | SRC_URI[sha256sum] = "038a7e9169787125c3451a6c941f3aca5db2d2f3863871afcdce154ef17f4e3e" | 10 | SRC_URI[sha256sum] = "038a7e9169787125c3451a6c941f3aca5db2d2f3863871afcdce154ef17f4e3e" |
10 | 11 | ||
@@ -26,27 +27,3 @@ CFLAGS += "-fno-lto" | |||
26 | CFLAGS:append:toolchain-clang = " -Wno-error=implicit-function-declaration -Wno-error=deprecated-non-prototype -Wno-error=implicit-int" | 27 | CFLAGS:append:toolchain-clang = " -Wno-error=implicit-function-declaration -Wno-error=deprecated-non-prototype -Wno-error=implicit-int" |
27 | 28 | ||
28 | LDFLAGS += "-fno-lto" | 29 | LDFLAGS += "-fno-lto" |
29 | |||
30 | # http://errors.yoctoproject.org/Errors/Details/766887/ | ||
31 | # dhry_1.c:101:3: error: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] | ||
32 | # dhry_1.c:149:5: error: implicit declaration of function 'Proc_5' [-Wimplicit-function-declaration] | ||
33 | # dhry_1.c:150:5: error: implicit declaration of function 'Proc_4' [-Wimplicit-function-declaration] | ||
34 | # dhry_1.c:156:19: error: implicit declaration of function 'Func_2'; did you mean 'Func_1'? [-Wimplicit-function-declaration] | ||
35 | # dhry_1.c:162:7: error: implicit declaration of function 'Proc_7' [-Wimplicit-function-declaration] | ||
36 | # dhry_1.c:167:5: error: implicit declaration of function 'Proc_8' [-Wimplicit-function-declaration] | ||
37 | # dhry_1.c:169:5: error: implicit declaration of function 'Proc_1' [-Wimplicit-function-declaration] | ||
38 | # dhry_1.c:176:9: error: implicit declaration of function 'Proc_6' [-Wimplicit-function-declaration] | ||
39 | # dhry_1.c:187:5: error: implicit declaration of function 'Proc_2' [-Wimplicit-function-declaration] | ||
40 | # dhry_1.c:287:1: error: return type defaults to 'int' [-Wimplicit-int] | ||
41 | # dhry_1.c:303:3: error: implicit declaration of function 'Proc_3'; did you mean 'Proc_1'? [-Wimplicit-function-declaration] | ||
42 | # dhry_1.c:321:1: error: return type defaults to 'int' [-Wimplicit-int] | ||
43 | # dhry_1.c:344:1: error: return type defaults to 'int' [-Wimplicit-int] | ||
44 | # dhry_1.c:359:1: error: return type defaults to 'int' [-Wimplicit-int] | ||
45 | # dhry_1.c:371:1: error: return type defaults to 'int' [-Wimplicit-int] | ||
46 | # dhry_1.c:73:1: error: return type defaults to 'int' [-Wimplicit-int] | ||
47 | # dhry_2.c:164:9: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] | ||
48 | # dhry_2.c:30:1: error: return type defaults to 'int' [-Wimplicit-int] | ||
49 | # dhry_2.c:39:9: error: implicit declaration of function 'Func_3' [-Wimplicit-function-declaration] | ||
50 | # dhry_2.c:64:1: error: return type defaults to 'int' [-Wimplicit-int] | ||
51 | # dhry_2.c:84:1: error: return type defaults to 'int' [-Wimplicit-int] | ||
52 | CFLAGS += "-Wno-error=implicit-int -Wno-error=implicit-function-declaration" | ||