package/lightning; fix build
PATCH 1/1 package/lightning; fix build
Fix the following build failure raised since bump to version 2.2.0 in commit af6f7aa76db5aed1eada0b27bd0375610a2fc728 and
http://git.savannah.gnu.org/cgit/lightning.git/commit/?id=837c7a1e8d08fb9294578dc84694077f4d6106f9:
jit_disasm.c: In function 'fprintf_styled':
jit_disasm.c:57:27: error: parameter name omitted
57 | static int fprintf_styled(void *, enum disassembler_style, const char* fmt, ...)
| ^~~~~~
jit_disasm.c:57:35: error: parameter name omitted
57 | static int fprintf_styled(void *, enum disassembler_style, const char* fmt, ...)
| ^~~~~~~~~~~~~~~~~~~~~~~
Fixes:
- http://autobuild.buildroot.org/results/e15e01e98e0d8c873efd3f512b671d98e4daf6c0
--- .../0001-lib-jit_disasm.c-fix-build.patch | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 package/lightning/0001-lib-jit_disasm.c-fix-build.patch
package/lightning/0001-lib-jit_disasm.c-fix-build.patch new file +41 -0
@@ -0,0 +1,41 @@ +From 6d3ba4fb38ef3af61d8b7fc5c7781ed244ccf9fe Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine <[email protected]> +Date: Mon, 19 Dec 2022 23:36:48 +0100 +Subject: [PATCH] lib/jit_disasm.c: fix build + +Fix the following build failure raised since +http://git.savannah.gnu.org/cgit/lightning.git/commit/?id=837c7a1e8d08fb9294578dc84694077f4d6106f9: + +jit_disasm.c: In function 'fprintf_styled': +jit_disasm.c:57:27: error: parameter name omitted + 57 | static int fprintf_styled(void *, enum disassembler_style, const char* fmt, ...) + | ^~~~~~ +jit_disasm.c:57:35: error: parameter name omitted + 57 | static int fprintf_styled(void *, enum disassembler_style, const char* fmt, ...) + | ^~~~~~~~~~~~~~~~~~~~~~~ + +Fixes: + - http://autobuild.buildroot.org/results/e15e01e98e0d8c873efd3f512b671d98e4daf6c0 + +Signed-off-by: Fabrice Fontaine <[email protected]> +[Upstream status: sent to [email protected]] +--- + lib/jit_disasm.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/jit_disasm.c b/lib/jit_disasm.c +index 58a269b..68c966d 100644 +--- a/lib/jit_disasm.c ++++ b/lib/jit_disasm.c +@@ -54,7 +54,7 @@ static FILE *disasm_stream; + #endif + + #if BINUTILS_2_38 +-static int fprintf_styled(void *, enum disassembler_style, const char* fmt, ...) ++static int fprintf_styled(void * stream, enum disassembler_style style, const char* fmt, ...) + { + va_list args; + int r; +-- +2.35.1 +
Signature · 6 lines
2.35.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Fabrice, All,
On 2022-12-19 23:58 +0100, Fabrice Fontaine spake thusly:
Quoted 52 lines
Fix the following build failure raised since bump to version 2.2.0 in commit
af6f7aa76db5aed1eada0b27bd0375610a2fc728and
http://git.savannah.gnu.org/cgit/lightning.git/commit/?id=837c7a1e8d08fb9294578dc84694077f4d6106f9:
jit_disasm.c: In function 'fprintf_styled':
jit_disasm.c:57:27: error: parameter name omitted
57 | static intfprintf_styled(void *, enum disassembler_style, const char* fmt, ...)
| ^~~~~~
jit_disasm.c:57:35: error: parameter name omitted
57 | static intfprintf_styled(void *, enum disassembler_style, const char* fmt, ...)| ^~~~~~~~~~~~~~~~~~~~~~~Fixes:
- http://autobuild.buildroot.org/results/e15e01e98e0d8c873efd3f512b671d98e4daf6c0Signed-off-by Fabrice Fontaine <[email protected]>--- .../0001-lib-jit_disasm.c-fix-build.patch | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 package/lightning/0001-lib-jit_disasm.c-fix-build.patchpackage/lightning/0001-lib-jit_disasm.c-fix-build.patch new file +25
-0@@ -0,0 +1,41 @@ +From 6d3ba4fb38ef3af61d8b7fc5c7781ed244ccf9fe Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine <[email protected]> +Date: Mon, 19 Dec 2022 23:36:48 +0100 +Subject: [PATCH] lib/jit_disasm.c: fix build + +Fix the following build failure raised since +http://git.savannah.gnu.org/cgit/lightning.git/commit/?id=837c7a1e8d08fb9294578dc84694077f4d6106f9: + +jit_disasm.c: In function 'fprintf_styled': +jit_disasm.c:57:27: error: parameter name omitted + 57 | static int fprintf_styled(void *, enum disassembler_style, const char* fmt, ...) + | ^~~~~~ +jit_disasm.c:57:35: error: parameter name omitted + 57 | static int fprintf_styled(void *, enum disassembler_style, const char* fmt, ...) + | ^~~~~~~~~~~~~~~~~~~~~~~ + +Fixes: + - http://autobuild.buildroot.org/results/e15e01e98e0d8c873efd3f512b671d98e4daf6c0 + +Signed-off-by: Fabrice Fontaine <[email protected]> +[Upstream status: sent to [email protected]] +--- + lib/jit_disasm.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) +
package/lightning/0001-lib-jit_disasm.c-fix-build.patch line 35
Quoted 10 lines
package/lightning/0001-lib-jit_disasm.c-fix-build.patch new file +10
-0+diff --git a/lib/jit_disasm.c b/lib/jit_disasm.c +index 58a269b..68c966d 100644 +--- a/lib/jit_disasm.c ++++ b/lib/jit_disasm.c +@@ -54,7 +54,7 @@ static FILE *disasm_stream; + #endif + + #if BINUTILS_2_38 +-static int fprintf_styled(void *, enum disassembler_style, const char* fmt, ...) ++static int fprintf_styled(void * stream, enum disassembler_style style, const char* fmt, ...)
Should it be marked with __attribute__((unused)) or some such?
Regards,
Yann E. MORIN.
Quoted 13 lines
package/lightning/0001-lib-jit_disasm.c-fix-build.patch new file +6
-0+ { + va_list args; + int r; +-- +2.35.1 +Signature · 6 lines
2.35.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello,
Le mar. 20 déc. 2022 à 09:47, Yann E. MORIN <[email protected]> a écrit :
Quoted 77 lines
Fabrice, All,
On 2022-12-19 23:58 +0100, Fabrice Fontaine spake thusly:
Quoted 3 lines
Fix the following build failure raised since bump to version 2.2.0 in commit
af6f7aa76db5aed1eada0b27bd0375610a2fc728andhttp://git.savannah.gnu.org/cgit/lightning.git/commit/?id=837c7a1e8d08fb9294578dc84694077f4d6106f9
:Quoted 4 lines
jit_disasm.c: In function 'fprintf_styled':
jit_disasm.c:57:27: error: parameter name omitted
57 | static int fprintf_styled(void *, enumdisassembler_style, constchar* fmt, ...)
Quoted 3 lines
| ^~~~~~
jit_disasm.c:57:35: error: parameter name omitted
57 | static int fprintf_styled(void *, enumdisassembler_style, constchar* fmt, ...)
Quoted 4 lines
| ^~~~~~~~~~~~~~~~~~~~~~~Fixes:
-http://autobuild.buildroot.org/results/e15e01e98e0d8c873efd3f512b671d98e4daf6c0
Quoted 6 lines
Signed-off-by Fabrice Fontaine <[email protected]>--- .../0001-lib-jit_disasm.c-fix-build.patch | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644
package/lightning/0001-lib-jit_disasm.c-fix-build.patchReview
Quoted 2 lines
(quoted diff) +0
-0
b/package/lightning/0001-lib-jit_disasm.c-fix-build.patchpackage/lightning/0001-lib-jit_disasm.c-fix-build.patch line 7
Quoted 12 lines
new file mode 100644
index 0000000000..f0bedc1817package/lightning/0001-lib-jit_disasm.c-fix-build.patch new file +7
-0@@ -0,0 +1,41 @@ +From 6d3ba4fb38ef3af61d8b7fc5c7781ed244ccf9fe Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine <[email protected]> +Date: Mon, 19 Dec 2022 23:36:48 +0100 +Subject: [PATCH] lib/jit_disasm.c: fix build + +Fix the following build failure raised since +http://git.savannah.gnu.org/cgit/lightning.git/commit/?id=837c7a1e8d08fb9294578dc84694077f4d6106f9
:package/lightning/0001-lib-jit_disasm.c-fix-build.patch
Quoted 4 lines
package/lightning/0001-lib-jit_disasm.c-fix-build.patch new file +4
-0+ +jit_disasm.c: In function 'fprintf_styled': +jit_disasm.c:57:27: error: parameter name omitted + 57 | static int fprintf_styled(void *, enum disassembler_style,const char* fmt, ...)
package/lightning/0001-lib-jit_disasm.c-fix-build.patch
Quoted 3 lines
package/lightning/0001-lib-jit_disasm.c-fix-build.patch new file +3
-0+ | ^~~~~~ +jit_disasm.c:57:35: error: parameter name omitted + 57 | static int fprintf_styled(void *, enum disassembler_style,const char* fmt, ...)
package/lightning/0001-lib-jit_disasm.c-fix-build.patch
Quoted 4 lines
package/lightning/0001-lib-jit_disasm.c-fix-build.patch new file +4
-0+ | ^~~~~~~~~~~~~~~~~~~~~~~ + +Fixes: + -http://autobuild.buildroot.org/results/e15e01e98e0d8c873efd3f512b671d98e4daf6c0
Quoted 6 lines
package/lightning/0001-lib-jit_disasm.c-fix-build.patch new file +6
-0+ +Signed-off-by: Fabrice Fontaine <[email protected]> +[Upstream status: sent to [email protected]] +--- + lib/jit_disasm.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-)package/lightning/0001-lib-jit_disasm.c-fix-build.patch
Quoted 10 lines
package/lightning/0001-lib-jit_disasm.c-fix-build.patch new file +10
-0+ +diff --git a/lib/jit_disasm.c b/lib/jit_disasm.c +index 58a269b..68c966d 100644 +--- a/lib/jit_disasm.c ++++ b/lib/jit_disasm.c +@@ -54,7 +54,7 @@ static FILE *disasm_stream; + #endif + + #if BINUTILS_2_38 +-static int fprintf_styled(void *, enum disassembler_style, const char*fmt, ...)
Quoted 5 lines
package/lightning/0001-lib-jit_disasm.c-fix-build.patch line 35
Quoted 1 line
package/lightning/0001-lib-jit_disasm.c-fix-build.patch new file +1
-0++static int fprintf_styled(void * stream, enum disassembler_stylestyle, const char* fmt, ...)
Should it be marked with __attribute__((unused)) or some such?
Indeed, I'll send a v2.
Quoted 30 lines
Regards,
Yann E. MORIN.Quoted 9 lines
package/lightning/0001-lib-jit_disasm.c-fix-build.patch new file +6
-1+ { + va_list args; + int r; +-- +2.35.1 + --2.35.1
Quoted 4 lines
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
Quoted 2 lines
'------------------------------^-------^------------------^--------------------'
Best Regards,
Fabrice
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
FAbrice, All,
On 2022-12-20 09:52 +0100, Fabrice Fontaine spake thusly:
Quoted 4 lines
Le mar. 20 déc. 2022 à 09:47, Yann E. MORIN < [1][email protected]> a écrit :
On 2022-12-19 23:58 +0100, Fabrice Fontaine spake thusly:Quoted 2 lines
Fix the following build failure raised since bump to version 2.2.0 in commit
af6f7aa76db5aed1eada0b27bd0375610a2fc728and
[--SNIP--]
Quoted 5 lines
Quoted 3 lines
+ #if
BINUTILS_2_38
+-static intfprintf_styled(void *, enum disassembler_style, const char* fmt, ...)++static intfprintf_styled(void * stream, enum disassembler_style style, const char* fmt, ...)Should it be marked with __attribute__((unused)) or some such?
Indeed, I'll send a v2.
And even beter yet: change the code to actually use the stream:
- r = vprintf(fmt, args);
+ r = vfprintf(stream, fmt, args);
Regards,
Yann E. MORIN.
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Yann E. MORIN
AppliedFabrice, All,
On 2022-12-19 23:58 +0100, Fabrice Fontaine spake thusly:
Quoted 38 lines
Fix the following build failure raised since bump to version 2.2.0 in commit
af6f7aa76db5aed1eada0b27bd0375610a2fc728and
http://git.savannah.gnu.org/cgit/lightning.git/commit/?id=837c7a1e8d08fb9294578dc84694077f4d6106f9:
jit_disasm.c: In function 'fprintf_styled':
jit_disasm.c:57:27: error: parameter name omitted
57 | static intfprintf_styled(void *, enum disassembler_style, const char* fmt, ...)
| ^~~~~~
jit_disasm.c:57:35: error: parameter name omitted
57 | static intfprintf_styled(void *, enum disassembler_style, const char* fmt, ...)| ^~~~~~~~~~~~~~~~~~~~~~~Fixes:
- http://autobuild.buildroot.org/results/e15e01e98e0d8c873efd3f512b671d98e4daf6c0Signed-off-by Fabrice Fontaine <[email protected]>--- .../0001-lib-jit_disasm.c-fix-build.patch | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 package/lightning/0001-lib-jit_disasm.c-fix-build.patchpackage/lightning/0001-lib-jit_disasm.c-fix-build.patch new file +11
-0@@ -0,0 +1,41 @@ +From 6d3ba4fb38ef3af61d8b7fc5c7781ed244ccf9fe Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine <[email protected]> +Date: Mon, 19 Dec 2022 23:36:48 +0100 +Subject: [PATCH] lib/jit_disasm.c: fix build + +Fix the following build failure raised since +http://git.savannah.gnu.org/cgit/lightning.git/commit/?id=837c7a1e8d08fb9294578dc84694077f4d6106f9: + +jit_disasm.c: In function 'fprintf_styled': +jit_disasm.c:57:27: error: parameter name omitted + 57 | static int fprintf_styled(void *, enum disassembler_style, const char* fmt, ...)
package/lightning/0001-lib-jit_disasm.c-fix-build.patch line 21
Quoted 10 lines
package/lightning/0001-lib-jit_disasm.c-fix-build.patch new file +10
-0+ | ^~~~~~ +jit_disasm.c:57:35: error: parameter name omitted + 57 | static int fprintf_styled(void *, enum disassembler_style, const char* fmt, ...) + | ^~~~~~~~~~~~~~~~~~~~~~~ + +Fixes: + - http://autobuild.buildroot.org/results/e15e01e98e0d8c873efd3f512b671d98e4daf6c0 + +Signed-off-by: Fabrice Fontaine <[email protected]> +[Upstream status: sent to [email protected]]
Although I think we could have been a better fix, this has now been applied upstream, so we can just argue that any remaining issue will have to be fixed with another (set of) patches.
Applied to master after making it a proper backport, thanks.
Regards,
Yann E. MORIN.
Quoted 27 lines
package/lightning/0001-lib-jit_disasm.c-fix-build.patch new file +20
-0+--- + lib/jit_disasm.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/jit_disasm.c b/lib/jit_disasm.c +index 58a269b..68c966d 100644 +--- a/lib/jit_disasm.c ++++ b/lib/jit_disasm.c +@@ -54,7 +54,7 @@ static FILE *disasm_stream; + #endif + + #if BINUTILS_2_38 +-static int fprintf_styled(void *, enum disassembler_style, const char* fmt, ...) ++static int fprintf_styled(void * stream, enum disassembler_style style, const char* fmt, ...) + { + va_list args; + int r; +-- +2.35.1 +Signature · 6 lines
2.35.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot