All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/boinc: needs at least gcc 4.8 for c++11 features
@ 2021-11-07  8:45 Bernd Kuhls
  2021-11-07  9:27 ` Fabrice Fontaine
  2021-11-08  8:43 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Bernd Kuhls @ 2021-11-07  8:45 UTC (permalink / raw)
  To: buildroot; +Cc: Fabrice Fontaine

Fixes:
http://autobuild.buildroot.net/results/ed3/ed3656f443364f01895600f332816d20e340f315/

hostinfo_unix.cpp:1695:37: error: range-based 'for' loops are not allowed in C++98 mode
         for (const string &ignore : ignore_list) {

Adding -std=c++11 to CXXFLAGS is done in _MAKE_OPTS due to the Makefiles
not passing CXXFLAGS from _CONV_ENV down to client/Makefile.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/boinc/Config.in | 4 +++-
 package/boinc/boinc.mk  | 2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/package/boinc/Config.in b/package/boinc/Config.in
index 5239019a57..72d5440131 100644
--- a/package/boinc/Config.in
+++ b/package/boinc/Config.in
@@ -2,6 +2,7 @@ config BR2_PACKAGE_BOINC
 	bool "boinc"
 	depends on BR2_USE_MMU # fork()
 	depends on !BR2_STATIC_LIBS # dlfcn.h
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on BR2_INSTALL_LIBSTDCPP
 	select BR2_PACKAGE_LIBCURL
@@ -16,7 +17,8 @@ config BR2_PACKAGE_BOINC
 
 	  https://boinc.berkeley.edu
 
-comment "boinc needs a toolchain w/ dynamic library, C++, threads"
+comment "boinc needs a toolchain w/ dynamic library, C++, threads, gcc >= 4.8"
 	depends on BR2_USE_MMU
 	depends on BR2_STATIC_LIBS || !BR2_INSTALL_LIBSTDCPP \
+		|| !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 \
 		|| !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/boinc/boinc.mk b/package/boinc/boinc.mk
index 567ffc923c..7f78c427ea 100644
--- a/package/boinc/boinc.mk
+++ b/package/boinc/boinc.mk
@@ -45,6 +45,8 @@ else
 BOINC_CONF_OPTS += --disable-fcgi
 endif
 
+BOINC_MAKE_OPTS = CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11"
+
 # Remove boinc-client because it is incompatible with buildroot
 define BOINC_REMOVE_UNNEEDED_FILE
 	$(RM) $(TARGET_DIR)/etc/init.d/boinc-client
-- 
2.30.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/boinc: needs at least gcc 4.8 for c++11 features
  2021-11-07  8:45 [Buildroot] [PATCH 1/1] package/boinc: needs at least gcc 4.8 for c++11 features Bernd Kuhls
@ 2021-11-07  9:27 ` Fabrice Fontaine
  2021-11-08  8:43 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2021-11-07  9:27 UTC (permalink / raw)
  To: Bernd Kuhls; +Cc: Buildroot Mailing List

Hi Bernd,

Le dim. 7 nov. 2021 à 09:45, Bernd Kuhls <bernd.kuhls@t-online.de> a écrit :
>
> Fixes:
> http://autobuild.buildroot.net/results/ed3/ed3656f443364f01895600f332816d20e340f315/
>
> hostinfo_unix.cpp:1695:37: error: range-based 'for' loops are not allowed in C++98 mode
>          for (const string &ignore : ignore_list) {
>
> Adding -std=c++11 to CXXFLAGS is done in _MAKE_OPTS due to the Makefiles
> not passing CXXFLAGS from _CONV_ENV down to client/Makefile.
Thanks for fixing this build failure, I would advise to update the
commit log to specify that
this is needed since bump to version 7.18.1 in commit
fe79fba3fd52cd6445c5a1d90629c94605c93519 and
https://github.com/BOINC/boinc/commit/ed70369c091923addf5a8d64bed92c0417e91e07:
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
>  package/boinc/Config.in | 4 +++-
>  package/boinc/boinc.mk  | 2 ++
>  2 files changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/package/boinc/Config.in b/package/boinc/Config.in
> index 5239019a57..72d5440131 100644
> --- a/package/boinc/Config.in
> +++ b/package/boinc/Config.in
> @@ -2,6 +2,7 @@ config BR2_PACKAGE_BOINC
>         bool "boinc"
>         depends on BR2_USE_MMU # fork()
>         depends on !BR2_STATIC_LIBS # dlfcn.h
> +       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
>         depends on BR2_TOOLCHAIN_HAS_THREADS
>         depends on BR2_INSTALL_LIBSTDCPP
>         select BR2_PACKAGE_LIBCURL
> @@ -16,7 +17,8 @@ config BR2_PACKAGE_BOINC
>
>           https://boinc.berkeley.edu
>
> -comment "boinc needs a toolchain w/ dynamic library, C++, threads"
> +comment "boinc needs a toolchain w/ dynamic library, C++, threads, gcc >= 4.8"
>         depends on BR2_USE_MMU
>         depends on BR2_STATIC_LIBS || !BR2_INSTALL_LIBSTDCPP \
> +               || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 \
>                 || !BR2_TOOLCHAIN_HAS_THREADS
> diff --git a/package/boinc/boinc.mk b/package/boinc/boinc.mk
> index 567ffc923c..7f78c427ea 100644
> --- a/package/boinc/boinc.mk
> +++ b/package/boinc/boinc.mk
> @@ -45,6 +45,8 @@ else
>  BOINC_CONF_OPTS += --disable-fcgi
>  endif
>
> +BOINC_MAKE_OPTS = CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11"
> +
>  # Remove boinc-client because it is incompatible with buildroot
>  define BOINC_REMOVE_UNNEEDED_FILE
>         $(RM) $(TARGET_DIR)/etc/init.d/boinc-client
> --
> 2.30.2
>
Best Regards,

Fabrice
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/boinc: needs at least gcc 4.8 for c++11 features
  2021-11-07  8:45 [Buildroot] [PATCH 1/1] package/boinc: needs at least gcc 4.8 for c++11 features Bernd Kuhls
  2021-11-07  9:27 ` Fabrice Fontaine
@ 2021-11-08  8:43 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2021-11-08  8:43 UTC (permalink / raw)
  To: Bernd Kuhls; +Cc: Fabrice Fontaine, buildroot

>>>>> "Bernd" == Bernd Kuhls <bernd.kuhls@t-online.de> writes:

 > Fixes:
 > http://autobuild.buildroot.net/results/ed3/ed3656f443364f01895600f332816d20e340f315/

 > hostinfo_unix.cpp:1695:37: error: range-based 'for' loops are not allowed in C++98 mode
 >          for (const string &ignore : ignore_list) {

 > Adding -std=c++11 to CXXFLAGS is done in _MAKE_OPTS due to the Makefiles
 > not passing CXXFLAGS from _CONV_ENV down to client/Makefile.

 > Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>

Committed after extending the commit message as suggested by Fabrice, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-08  8:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-07  8:45 [Buildroot] [PATCH 1/1] package/boinc: needs at least gcc 4.8 for c++11 features Bernd Kuhls
2021-11-07  9:27 ` Fabrice Fontaine
2021-11-08  8:43 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.