Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 568300

Summary: dev-cpp/libgnomecanvasmm-2.26.0-r1 build failure: needs -std=gnu++11
Product: Gentoo Linux Reporter: Matt Whitlock <gentoo>
Component: [OLD] LibraryAssignee: GNOME C++ Bindings Maintainers (OBSOLETE) <gnome-mm+disabled>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 566328    
Attachments: Full build log (gzipped)
emerge --info

Description Matt Whitlock 2015-12-15 01:47:02 UTC
Created attachment 419236 [details]
Full build log (gzipped)

Build fails with error:

In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include/g++-v5/type_traits:35:0,
                 from /usr/include/sigc++-2.0/sigc++/visit_each.h:22,
                 from /usr/include/sigc++-2.0/sigc++/functors/slot.h:6,
                 from /usr/include/sigc++-2.0/sigc++/signal_base.h:27,
                 from /usr/include/sigc++-2.0/sigc++/signal.h:8,
                 from /usr/include/sigc++-2.0/sigc++/sigc++.h:86,
                 from /usr/include/glibmm-2.4/glibmm/thread.h:51,
                 from /usr/include/glibmm-2.4/glibmm.h:87,
                 from ../../libgnomecanvas/libgnomecanvasmm/rect.h:7,
                 from rect.cc:4:
/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include/g++-v5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.


Adding -std=gnu++11 to CXXFLAGS for the build makes it succeed.

# echo 'CXXFLAGS="${CXXFLAGS} -std=gnu++11"' > /etc/portage/env/std-gnu++11.conf
# echo '=dev-cpp/libgnomecanvasmm-2.26.0-r1 std-gnu++11.conf' >> /etc/portage/package.env/std-gnu++11
Comment 1 Matt Whitlock 2015-12-15 01:47:27 UTC
Created attachment 419238 [details]
emerge --info
Comment 2 Pacho Ramos gentoo-dev 2015-12-15 19:44:55 UTC
[master 024342e] dev-cpp/libgnomecanvasmm: Fix building with latest glibmm/libsigc++ (#568300)
 1 file changed, 2 insertions(+), 1 deletion(-)