* [Buildroot] [PATCH 1/1] package/mono: fix build with autoconf >= 2.70
@ 2021-11-07 21:45 Fabrice Fontaine
2021-11-08 7:40 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2021-11-07 21:45 UTC (permalink / raw)
To: buildroot; +Cc: Angelo Compagnucci, Fabrice Fontaine
For an unknown reason, the following build failure is raised on one of
the autobuilder with host gcc 6.3.0 since bump of autoconf to version
2.71 in commit ecd54b65c1f998a7ccd91f7c523e4ff38c4781da:
icall.c: In function 'mono_create_icall_signatures':
icall.c:9513:20: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
gsize_a *types = (gsize*)(sig + 1);
^
Add an upstream patch to fix it.
Fixes:
- http://autobuild.buildroot.org/results/1d1d82b505abd16d014d754b6a4a48fb1271e3b6
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
...0002-Ongoing-work-on-the-cmake-build.patch | 34 +++++++++++++++++++
1 file changed, 34 insertions(+)
create mode 100644 package/mono/0002-Ongoing-work-on-the-cmake-build.patch
diff --git a/package/mono/0002-Ongoing-work-on-the-cmake-build.patch b/package/mono/0002-Ongoing-work-on-the-cmake-build.patch
new file mode 100644
index 0000000000..afe618f193
--- /dev/null
+++ b/package/mono/0002-Ongoing-work-on-the-cmake-build.patch
@@ -0,0 +1,34 @@
+From 17650f7e0f571287bb14bb9b4fbde7b91d842bb4 Mon Sep 17 00:00:00 2001
+From: monojenkins <jo.shields+jenkins@xamarin.com>
+Date: Thu, 24 Sep 2020 12:17:34 -0400
+Subject: [PATCH] Ongoing work on the cmake build. (#20428)
+
+* Fix some warnings.
+* Avoid creating netcore/config.make.
+* Fix CPU_COUNT test.
+* Add missing source file.
+
+Co-authored-by: vargaz <vargaz@users.noreply.github.com>
+
+[Retrieved (and updated to keep only update of icall.c) from:
+https://github.com/mono/mono/commit/17650f7e0f571287bb14bb9b4fbde7b91d842bb4]
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ mono/metadata/CMakeLists.txt | 1 +
+ mono/metadata/icall.c | 2 +-
+ mono/mini/CMakeLists.txt | 5 +++++
+ 3 files changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/mono/metadata/icall.c b/mono/metadata/icall.c
+index fa991bc72e57..f2c003ac1ff1 100644
+--- a/mono/metadata/icall.c
++++ b/mono/metadata/icall.c
+@@ -9605,7 +9605,7 @@ mono_create_icall_signatures (void)
+ int n;
+ while ((n = sig->param_count)) {
+ --sig->param_count; // remove ret
+- gsize_a *types = (gsize*)(sig + 1);
++ gsize_a *types = (gsize_a*)(sig + 1);
+ for (int i = 0; i < n; ++i) {
+ gsize index = *types++;
+ g_assert (index < G_N_ELEMENTS (lookup));
--
2.33.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/mono: fix build with autoconf >= 2.70
2021-11-07 21:45 [Buildroot] [PATCH 1/1] package/mono: fix build with autoconf >= 2.70 Fabrice Fontaine
@ 2021-11-08 7:40 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2021-11-08 7:40 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Angelo Compagnucci, buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> For an unknown reason, the following build failure is raised on one of
> the autobuilder with host gcc 6.3.0 since bump of autoconf to version
> 2.71 in commit ecd54b65c1f998a7ccd91f7c523e4ff38c4781da:
> icall.c: In function 'mono_create_icall_signatures':
> icall.c:9513:20: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
> gsize_a *types = (gsize*)(sig + 1);
> ^
> Add an upstream patch to fix it.
Odd that it only triggers now, but the patch looks obviously
correct. Interesting enough, gsize_a is defined as:
typedef gsize G_MAY_ALIAS gsize_a;
Committed, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-11-08 7:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-07 21:45 [Buildroot] [PATCH 1/1] package/mono: fix build with autoconf >= 2.70 Fabrice Fontaine
2021-11-08 7:40 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.