Skip to contentSkip to conversation

package/libtorrent-rasterbar: fix build on m68k_cf

PATCH New Fabrice Fontaine 2 participants 2 messages May 14, 2019 – May 15, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libtorrent-rasterbar: fix build on m68k_cf

An internal compiler error is raised on m68k_cf at dwarf2cfi.c:2802 in connect_traces. Error can be fixed by adding -fno-defer-pop, see
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58864

Fixes:
- http://autobuild.buildroot.org/results/746f60fadb40288341c1e5642cfcf6373b70583a

---
 package/libtorrent-rasterbar/libtorrent-rasterbar.mk | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
package/libtorrent-rasterbar/libtorrent-rasterbar.mk +9 -1
index fdcc736b47..012e972f1d 100644
@@ -13,7 +13,15 @@ LIBTORRENT_RASTERBAR_INSTALL_STAGING = YES
 LIBTORRENT_RASTERBAR_CONF_OPTS = \
 	--with-boost-libdir=$(STAGING_DIR)/usr/lib \
 	--disable-invariant-checks
-LIBTORRENT_RASTERBAR_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11"
+LIBTORRENT_RASTERBAR_CXXFLAGS = $(TARGET_CXXFLAGS) -std=c++11
+
+# Internal error, aborting at dwarf2cfi.c:2802 in connect_traces
+# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58864
+ifeq ($(BR2_m68k_cf),y)
+LIBTORRENT_RASTERBAR_CXXFLAGS += -fno-defer-pop
+endif
+
+LIBTORRENT_RASTERBAR_CONF_OPTS += CXXFLAGS="$(LIBTORRENT_RASTERBAR_CXXFLAGS)"
 
 ifeq ($(BR2_ENABLE_LOCALE)$(BR2_PACKAGE_LIBICONV),y)
 LIBTORRENT_RASTERBAR_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBICONV),libiconv)
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 package/libtorrent-rasterbar: fix build on m68k_cf

Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

An internal compiler error is raised on m68k_cf at dwarf2cfi.c:2802 in connect_traces. Error can be fixed by adding -fno-defer-pop, see
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58864

Fixes:
- http://autobuild.buildroot.org/results/746f60fadb40288341c1e5642cfcf6373b70583a

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard