Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 568300 - dev-cpp/libgnomecanvasmm-2.26.0-r1 build failure: needs -std=gnu++11
Summary: dev-cpp/libgnomecanvasmm-2.26.0-r1 build failure: needs -std=gnu++11
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: GNOME C++ Bindings Maintainers (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: libsigc++-2.6
  Show dependency tree
 
Reported: 2015-12-15 01:47 UTC by Matt Whitlock
Modified: 2015-12-15 19:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Full build log (gzipped) (build.log.gz,298.71 KB, application/x-gzip)
2015-12-15 01:47 UTC, Matt Whitlock
Details
emerge --info (emerge-info.txt,19.88 KB, text/plain)
2015-12-15 01:47 UTC, Matt Whitlock
Details

Note You need to log in before you can comment on or make changes to this bug.
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(-)