Skip to contentSkip to conversation

package/rpi-rgb-led-matrix: fix build with gcc 4.8

PATCH Applied Fabrice Fontaine 2 participants 2 messages Dec 14, 2021 – Dec 16, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/rpi-rgb-led-matrix: fix build with gcc 4.8

Fix the following build failure with gcc 4.8 raised since the addition of the package in commit e821078031e14df69e5142f23e9cb7b5a1ea0e77:

In file included from framebuffer.cc:20:0:
framebuffer-internal.h:83:10: error: 'constexpr' does not name a type

   static constexpr int kBitPlanes = 11;
          ^

framebuffer-internal.h:83:10: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11

Fixes:
- http://autobuild.buildroot.org/results/c035da0d183f21343f19f7dee982e8e73ee781e4

---
 package/rpi-rgb-led-matrix/rpi-rgb-led-matrix.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/rpi-rgb-led-matrix/rpi-rgb-led-matrix.mk +1 -1
index 85c1d1a320..e436755121 100644
@@ -12,7 +12,7 @@ RPI_RGB_LED_MATRIX_INSTALL_STAGING = YES
 
 RPI_RGB_LED_MATRIX_MAKE_OPTS = \
 	$(TARGET_CONFIGURE_OPTS) \
-	CXXFLAGS="$(TARGET_CXXFLAGS) -fPIC"
+	CXXFLAGS="$(TARGET_CXXFLAGS) -fPIC -std=c++11"
 
 define RPI_RGB_LED_MATRIX_BUILD_CMDS
 	$(MAKE) $(RPI_RGB_LED_MATRIX_MAKE_OPTS) -C $(@D)/lib all
Signature · 6 lines
2.33.0

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

Fix the following build failure with gcc 4.8 raised since the addition of the package in commit e821078031e14df69e5142f23e9cb7b5a1ea0e77:

In file included from framebuffer.cc:20:0:
framebuffer-internal.h:83:10: error: 'constexpr' does not name a type

Quoted 8 lines
    static constexpr int kBitPlanes = 11;
           ^

framebuffer-internal.h:83:10: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11

Fixes:
- http://autobuild.buildroot.org/results/c035da0d183f21343f19f7dee982e8e73ee781e4

Applied to master, thanks.

Regards,
Arnout

Quoted 10 lines
---
  package/rpi-rgb-led-matrix/rpi-rgb-led-matrix.mk | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
package/rpi-rgb-led-matrix/rpi-rgb-led-matrix.mk +0 -0
index 85c1d1a320..e436755121 100644

package/rpi-rgb-led-matrix/rpi-rgb-led-matrix.mk RPI_RGB_LED_MATRIX_INSTALL_STAGING = YES · line 18

Quoted 8 lines
package/rpi-rgb-led-matrix/rpi-rgb-led-matrix.mk +1 -1
@@ -12,7 +12,7 @@ RPI_RGB_LED_MATRIX_INSTALL_STAGING = YES
 
  RPI_RGB_LED_MATRIX_MAKE_OPTS = \
  	$(TARGET_CONFIGURE_OPTS) \
-	CXXFLAGS="$(TARGET_CXXFLAGS) -fPIC"
+	CXXFLAGS="$(TARGET_CXXFLAGS) -fPIC -std=c++11"
 
  define RPI_RGB_LED_MATRIX_BUILD_CMDS
  	$(MAKE) $(RPI_RGB_LED_MATRIX_MAKE_OPTS) -C $(@D)/lib all

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