Summary: | app-text/podofo-0.9.6_pre20170508-r1: build failing with cppunit-1.14.0 and gcc-5.4.0 (but not with gcc-6.3.0) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | rypervenche <contact> |
Component: | Current packages | Assignee: | Zac Medico <zmedico> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bkohler, g2boojum, jstein, moonlapse81, phobosk |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 637042 | ||
Attachments: |
build.log
emerge -pv podofo and emerge --info The ebuild patch needed |
Created attachment 475272 [details]
emerge -pv podofo and emerge --info
The error suggests that cppunit didn't get rebuilt yet, can you try this command to see when it was last successfully built? date -d @$(</var/db/pkg/dev-util/cppunit-*/BUILD_TIME) % date -d @$(</var/db/pkg/dev-util/cppunit-1.14.0/BUILD_TIME) Sun May 28 10:51:14 CEST 2017 After your question, I have rebuilt cppunit then podofo, but it failed again Created attachment 475286 [details, diff]
The ebuild patch needed
The problem is not in rebuilding... Its the podofo ebuild that needs updating...
The new dev-util/cppunit-1.14.0 requires when used, the -std=c++11 or -std=gnu++11 flags to be added in the application using it...
The error is a kinda self-explanatory:
------ skip -----
from /dev/shm/portage/app-text/podofo-0.9.6_pre20170508-r1/work/podofo-0.9.6_pre20170508/test/unit/ColorTest.cpp:21:
/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.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 must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support \
^
In file included from /usr/include/cppunit/TestAssert.h:8:0
------ skip -----
So since podofo already inherits flag-o-matic, what's needed is to add:
append-cxxflags "-std=c++11"
in src_prepare() or src_configure() stages of the ebuild....
BTW the same problem exists in media-video/dirac-1.0.2-r1
I can reproduce the problem with gcc-5.4.0, but not with gcc-6.3.0. (In reply to PhobosK from comment #5) > The new dev-util/cppunit-1.14.0 requires when used, the -std=c++11 or > -std=gnu++11 flags to be added in the application using it... Why is that necessary, when according to this news item, gcc-5 uses the new C++11 ABI by default? https://www.gentoo.org/support/news-items/2015-10-22-gcc-5-new-c++11-abi.html Anyway, I've pushed this fix which appears to suppress the problem when you don't have tests enabled: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24598d33ad2f2c5f9c2077ad850fb7516f782bdd So, can we declare this solved? |
Created attachment 475270 [details] build.log When doing a normal emerge -avuND --with-bdeps y @world, I am unable to get podofo to rebuild. I have attached the build.log, my emerge --info, and emerge -pv podofo as attachments. I do see the reference to C++2011. I'm not sure if this has to do with the move to GCC5. I did run the revdep-rebuild command from eselect news and it recompiled a ton of packages, so I don't think it would be that. Any help would be appreciated. Thank you!