Skip to contentSkip to conversation

package/libtorrent-rasterbar: fix build with gcc 9

PATCH In review Fabrice Fontaine 2 participants 2 messages Jan 1, 2022 – Jan 4, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libtorrent-rasterbar: fix build with gcc 9

Drop -std=c++11 to avoid the following build failure with gcc 9 raised since bump to version 1.2.15 in commit 2cecfe94f889165f3a5169598ed7e0388941a6cd and
https://github.com/arvidn/libtorrent/commit/b7e02cc700d884f87a18a3bc59f95a66a5cb0209:

configure: error: *** A compiler with support for C++14 language features is required.

Fixes:
- http://autobuild.buildroot.org/results/905a51bee38e85a48aa170c15494f2798aa6afea

---
 package/libtorrent-rasterbar/libtorrent-rasterbar.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/libtorrent-rasterbar/libtorrent-rasterbar.mk +1 -1
index 914e0cbca3..cde010a4f7 100644
@@ -16,7 +16,7 @@ LIBTORRENT_RASTERBAR_INSTALL_STAGING = YES
 LIBTORRENT_RASTERBAR_CONF_OPTS = \
 	--with-boost-libdir=$(STAGING_DIR)/usr/lib \
 	--disable-invariant-checks
-LIBTORRENT_RASTERBAR_CXXFLAGS = $(TARGET_CXXFLAGS) -std=c++11
+LIBTORRENT_RASTERBAR_CXXFLAGS = $(TARGET_CXXFLAGS)
 
 # Internal error, aborting at dwarf2cfi.c:2802 in connect_traces
 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58864
Signature · 6 lines
2.33.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 20 lines · Fabrice Fontaine

Drop -std=c++11 to avoid the following build failure with gcc 9 raised since bump to version 1.2.15 in commit 2cecfe94f889165f3a5169598ed7e0388941a6cd and
https://github.com/arvidn/libtorrent/commit/b7e02cc700d884f87a18a3bc59f95a66a5cb0209:

configure: error: *** A compiler with support for C++14 language features is required.

Fixes:
- http://autobuild.buildroot.org/results/905a51bee38e85a48aa170c15494f2798aa6afea

---
  package/libtorrent-rasterbar/libtorrent-rasterbar.mk | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
package/libtorrent-rasterbar/libtorrent-rasterbar.mk +0 -0
index 914e0cbca3..cde010a4f7 100644

package/libtorrent-rasterbar/libtorrent-rasterbar.mk LIBTORRENT_RASTERBAR_INSTALL_STAGING = YES · line 19

Quoted 4 lines
package/libtorrent-rasterbar/libtorrent-rasterbar.mk +0 -1
@@ -16,7 +16,7 @@ LIBTORRENT_RASTERBAR_INSTALL_STAGING = YES
  LIBTORRENT_RASTERBAR_CONF_OPTS = \
  	--with-boost-libdir=$(STAGING_DIR)/usr/lib \
  	--disable-invariant-checks
-LIBTORRENT_RASTERBAR_CXXFLAGS = $(TARGET_CXXFLAGS) -std=c++11

If this was needed before, it sounds like we might now need -std=c++14 (for
GCC versions that default to an earlier standard, i.e. anything below 6 I think).

Have you tested with GCC 4.9?

Regards,
Arnout

package/libtorrent-rasterbar/libtorrent-rasterbar.mk LIBTORRENT_RASTERBAR_INSTALL_STAGING = YES · line 22

Quoted 5 lines
package/libtorrent-rasterbar/libtorrent-rasterbar.mk +1 -0
+LIBTORRENT_RASTERBAR_CXXFLAGS = $(TARGET_CXXFLAGS)
 
  # Internal error, aborting at dwarf2cfi.c:2802 in connect_traces
  # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58864

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot