Re: [Buildroot] [PATCH v2 1/3] package/libgeos: fix build failure due to missing -mcmodel=large
From: Giulio Benetti <giulio.benetti@benettiengineering.com>
Date: 2021-08-18 20:54:38
Hi Romain, On 8/18/21 10:01 PM, Romain Naour wrote:
Hello Arnout, Le 17/08/2021 à 22:34, Arnout Vandecappelle a écrit :quoted
On 27/07/2021 00:34, Giulio Benetti wrote:quoted
When building libgeos for or1k -mcmodel=large is needed to link, so let's add that gcc option in case we're building for or1k. Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com> --- package/libgeos/libgeos.mk | 4 ++++ 1 file changed, 4 insertions(+)diff --git a/package/libgeos/libgeos.mk b/package/libgeos/libgeos.mk index a355732af8..43211d0434 100644 --- a/package/libgeos/libgeos.mk +++ b/package/libgeos/libgeos.mk@@ -23,6 +23,10 @@ ifeq ($(BR2_arm)$(BR2_armeb),y) LIBGEOS_CONF_OPTS += -DDISABLE_GEOS_INLINE=ON endif +ifeq ($(BR2_or1k),y) +LIBGEOS_CXXFLAGS += -mcmodel=largeAccording to git, -mcmodel was added to GCC after the 11.2.0 release. Are you sure that this works? Oooh, we have a patch that adds it. But that patch is missing for 11.1.0 for some reason. Romain, you apparently didn't carry any of our patches when you added GCC 11 in 2ab88dac293aed5adf2504e8b182f9d8a306b935. The commit message doesn't say anything. Do you remember anything about the patches? The patch was added to master on May 21 and you only submitted the GCC bump on June 12, but perhaps you already had it lying around for a while?Indeed, I missed this patch.quoted
Giulio, maybe you can port the patch to 11.1.0?Yes please.
Already sent and applied here :-): https://git.buildroot.net/buildroot/commit/?id=137225cef423ccbebc31d0c562bf3f37192739ac I'm going to add myself to toolchain as maintainer too, so I keep up to date on toolchain movement and also I've added a bunch of binutils/gcc bugs. So it's time for it :-) Best regards -- Giulio Benetti Benetti Engineering sas
Best regards, Romainquoted
Regards, Arnoutquoted
+endif + LIBGEOS_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(LIBGEOS_CXXFLAGS)" $(eval $(cmake-package))_______________________________________________ buildroot mailing list buildroot@busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
_______________________________________________ buildroot mailing list buildroot@busybox.net http://lists.busybox.net/mailman/listinfo/buildroot