package/libgeos: fix build failure due to Gcc Bug 68485
PATCH 1/1 package/libgeos: fix build failure due to Gcc Bug 68485
Package libgeos manifests Microblaze Gcc Bug 68485 resulting in a build failure due to an Internal Compiler Error.
As done for other packages in Buildroot work around this Gcc Bug by setting optimization to -O0 if BR2_TOOLCHAIN_HAS_GCC_BUG_68485=y.
Fixes:
http://autobuild.buildroot.net/results/0da/0daa6b259aea5381fad86d01e6dd026b1c8ad073/
--- package/libgeos/libgeos.mk | 8 ++++++++ 1 file changed, 8 insertions(+)
package/libgeos/libgeos.mk +8 -0
@@ -13,8 +13,16 @@ LIBGEOS_INSTALL_STAGING = YES LIBGEOS_CONFIG_SCRIPTS = geos-config LIBGEOS_CONF_OPTS = -DBUILD_BENCHMARKS=OFF +LIBGEOS_CXXFLAGS = $(TARGET_CXXCFLAGS) + +ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y) +LIBGEOS_CXXFLAGS += -O0 +endif + ifeq ($(BR2_arm)$(BR2_armeb),y) LIBGEOS_CONF_OPTS += -DDISABLE_GEOS_INLINE=ON endif +LIBGEOS_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(LIBGEOS_CXXFLAGS)" + $(eval $(cmake-package))
Signature · 1 line
2.25.1
Thomas Petazzoni
AppliedPATCH 1/1 package/libgeos: fix build failure due to Gcc Bug 68485
Hello Giulio,
Quoted 6 lines · On Fri, 12 Feb 2021 23:42:38 +0100 Giulio Benetti…
Package libgeos manifests Microblaze Gcc Bug 68485 resulting in a build failure due to an Internal Compiler Error.
As done for other packages in Buildroot work around this Gcc Bug by setting optimization to -O0 if BR2_TOOLCHAIN_HAS_GCC_BUG_68485=y.
Quoted 7 lines
Fixes:
http://autobuild.buildroot.net/results/0da/0daa6b259aea5381fad86d01e6dd026b1c8ad073/Signed-off-by Giulio Benetti <[email protected]>--- package/libgeos/libgeos.mk | 8 ++++++++ 1 file changed, 8 insertions(+)
Applied to master, thanks. Could you check if this bug still exists with gcc 10.x, and if it does, ping on the gcc bug report ?
Thanks a lot!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 1/1 package/libgeos: fix build failure due to Gcc Bug 68485
Hi Thomas,
Quoted 14 lines · Thomas Petazzoni
Hello Giulio,
Quoted 9 lines · On Fri, 12 Feb 2021 23:42:38 +0100 Giulio Benetti…
Package libgeos manifests Microblaze Gcc Bug 68485 resulting in a build failure due to an Internal Compiler Error.
As done for other packages in Buildroot work around this Gcc Bug by setting optimization to -O0 if BR2_TOOLCHAIN_HAS_GCC_BUG_68485=y.
Fixes:
http://autobuild.buildroot.net/results/0da/0daa6b259aea5381fad86d01e6dd026b1c8ad073/
Quoted 7 lines
Quoted 4 lines
Signed-off-by Giulio Benetti <[email protected]>--- package/libgeos/libgeos.mk | 8 ++++++++ 1 file changed, 8 insertions(+)Applied to master, thanks. Could you check if this bug still exists with gcc 10.x, and if it does, ping on the gcc bug report ?
I've just tried to build with gcc 10.2 and unfortunately it still have that bug. So I've just pinged gcc bug report:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68485#add_comment
Let's see what they answer.
Best regards
Signature · 2 lines
Giulio Benetti Benetti Engineering sas
PATCH 1/1 package/libgeos: fix build failure due to Gcc Bug 68485
Quoted 6 lines · On Mon, 15 Feb 2021 00:46:35 +0100 Giulio Benetti…
Quoted 2 lines
Applied to master, thanks. Could you check if this bug still exists with gcc 10.x, and if it does, ping on the gcc bug report ?
I've just tried to build with gcc 10.2 and unfortunately it still have that bug. So I've just pinged gcc bug report:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68485#add_comment
Thanks for having done the extra research and following up with the gcc developers!
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 1/1 package/libgeos: fix build failure due to Gcc Bug 68485
Quoted 9 lines
Il giorno 15 feb 2021, alle ore 09:59, Thomas Petazzoni <[email protected]> ha scritto:
?On Mon, 15 Feb 2021 00:46:35 +0100
Quoted 3 lines · Giulio Benetti
Quoted 2 lines
Applied to master, thanks. Could you check if this bug still exists with gcc 10.x, and if it does, ping on the gcc bug report ?
Quoted 6 lines
Quoted 3 lines
I've just tried to build with gcc 10.2 and unfortunately it still have that bug. So I've just pinged gcc bug report:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68485#add_commentThanks for having done the extra research and following up with the gcc developers!
Happy to do this, it?s in the interest of everyone :-)
Giulio
Quoted 8 lines
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com