package/harfbuzz: work around arc gcc10 bug
PATCH 1/1 package/harfbuzz: work around arc gcc10 bug
With BR2_GCC_VERSION_ARC=y(arc gcc10) harfbuzz package exhibits a gcc bug that makes build to fail. This bug is found only in official arc gcc10 provided by Synopsis, so we can't use the BR2_TOOLCHAIN_HAS_GCC_BUG_ approach since bug can't be even filed in gcc bugzilla.
To work around this, if BR2_GCC_VERSION_ARC=y we force using -O0.
Fixes:
http://autobuild.buildroot.net/results/e4d/e4da9ba40c8f4567601d404e20dd6a0b322210c2/
--- package/harfbuzz/harfbuzz.mk | 4 ++++ 1 file changed, 4 insertions(+)
package/harfbuzz/harfbuzz.mk +4 -0
@@ -94,5 +94,9 @@ ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),) HARFBUZZ_CXXFLAGS += $(TARGET_CXXFLAGS) -DHB_NO_MT endif +ifeq ($(BR2_GCC_VERSION_ARC),y) +HARFBUZZ_CXXFLAGS += -O0 +endif + $(eval $(meson-package)) $(eval $(host-meson-package))
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Yann E. MORIN
AppliedGiulio, All,
On 2021-09-08 23:57 +0200, Giulio Benetti spake thusly:
Quoted 5 lines
With BR2_GCC_VERSION_ARC=y(arc gcc10) harfbuzz package exhibits a gcc bug that makes build to fail. This bug is found only in official arc gcc10 provided by Synopsis, so we can't use the
BR2_TOOLCHAIN_HAS_GCC_BUG_approach since bug can't be even filed in gcc bugzilla.
To work around this, if BR2_GCC_VERSION_ARC=y we force using -O0.
Good enough for me! 👍
Quoted 4 lines
Fixes:
http://autobuild.buildroot.net/results/e4d/e4da9ba40c8f4567601d404e20dd6a0b322210c2/Signed-off-by Giulio Benetti <[email protected]>
Applied to master, thanks.
Regards,
Yann E. MORIN.
Quoted 25 lines
--- package/harfbuzz/harfbuzz.mk | 4 ++++ 1 file changed, 4 insertions(+)package/harfbuzz/harfbuzz.mk +4
-0@@ -94,5 +94,9 @@ ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),) HARFBUZZ_CXXFLAGS += $(TARGET_CXXFLAGS) -DHB_NO_MT endif +ifeq ($(BR2_GCC_VERSION_ARC),y) +HARFBUZZ_CXXFLAGS += -O0 +endif + $(eval $(meson-package)) $(eval $(host-meson-package))Signature · 6 lines
2.25.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