Skip to contentSkip to conversation

package/libcutl: fix build with gcc 11

PATCH New Fabrice Fontaine 3 participants 3 messages May 30, 2021 – Jun 10, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libcutl: fix build with gcc 11

Add -std=c++11 to fix the following build failure with gcc 11:

In file included from shared-ptr/base.cxx:5:
../cutl/shared-ptr/base.hxx:34:41: error: ISO C++17 does not allow dynamic exception specifications
34 | operator new (std::size_t, cutl::share) throw (std::bad_alloc);
| ^~~~~

Fixes:
- http://autobuild.buildroot.org/results/60a39d402a0d051c92aa11421b7a14f7729a0380

---
 package/libcutl/libcutl.mk | 1 +
 1 file changed, 1 insertion(+)
package/libcutl/libcutl.mk +1 -0
index 49c05e6019..2b704ad3b8 100644
@@ -11,5 +11,6 @@ LIBCUTL_SITE = https://www.codesynthesis.com/download/libcutl/$(LIBCUTL_VERSION_
 LIBCUTL_INSTALL_STAGING = YES
 LIBCUTL_LICENSE = MIT
 LIBCUTL_LICENSE_FILES = LICENSE
+HOST_LIBCUTL_CONF_ENV = CXXFLAGS="$(HOST_CXXFLAGS) -std=c++11"
 
 $(eval $(host-autotools-package))
Signature · 1 line
2.30.2
#1 lore raw

PATCH 1/1 package/libcutl: fix build with gcc 11

Quoted 11 lines · Fabrice Fontaine

Add -std=c++11 to fix the following build failure with gcc 11:

In file included from shared-ptr/base.cxx:5:
../cutl/shared-ptr/base.hxx:34:41: error: ISO C++17 does not allow dynamic exception specifications
34 | operator new (std::size_t, cutl::share) throw (std::bad_alloc);
| ^~~~~

Fixes:
- http://autobuild.buildroot.org/results/60a39d402a0d051c92aa11421b7a14f7729a0380

Applied to master, thanks.

Regards,
Arnout

Quoted 16 lines
---
 package/libcutl/libcutl.mk | 1 +
 1 file changed, 1 insertion(+)
package/libcutl/libcutl.mk +1 -0
index 49c05e6019..2b704ad3b8 100644
@@ -11,5 +11,6 @@ LIBCUTL_SITE = https://www.codesynthesis.com/download/libcutl/$(LIBCUTL_VERSION_
 LIBCUTL_INSTALL_STAGING = YES
 LIBCUTL_LICENSE = MIT
 LIBCUTL_LICENSE_FILES = LICENSE
+HOST_LIBCUTL_CONF_ENV = CXXFLAGS="$(HOST_CXXFLAGS) -std=c++11"
 
 $(eval $(host-autotools-package))
#2 lore raw

PATCH 1/1 package/libcutl: fix build with gcc 11

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

"Arnout" == Arnout Vandecappelle <[email protected]> writes:

Quoted 7 lines · Fabrice Fontaine

Add -std=c++11 to fix the following build failure with gcc 11:

In file included from shared-ptr/base.cxx:5:
../cutl/shared-ptr/base.hxx:34:41: error: ISO C++17 does not allow dynamic exception specifications 34 | operator new (std::size_t, cutl::share) throw (std::bad_alloc);
| ^~~~~

Quoted 4 lines
Quoted 4 lines

Fixes:
- http://autobuild.buildroot.org/results/60a39d402a0d051c92aa11421b7a14f7729a0380

Committed to 2021.02.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard