Hi,
oprofile (both 1.1.0 release and git HEAD) fails to build with gcc-6.2 when pch are enabled (--enable-pch):
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/include/g++-v6/future:393:57: required from here /usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/include/g++-v6/type_traits:590:12: fatal error: template instantiation depth exceeds maximum of 50 (use -ftemplate-depth= to increase the maximum)
This is happens due to -ftemplate-depth-50 enforced by oprofile's configure, as gcc-6.2 and its libstdc++ needs more.
Full build log is attached below, See also Gentoo bug 600000.
Proposed patch is also attached (removes forced limination of template depth).
Remove -ftemplate-depth-50 from -AX_CXXFLAGS_OPTION.
The suggested change looks fine. What should I use for name and email address for attribution of the patch commit?
Andrew Savchenko <bircoph at="" gmail.com=""> should be fine.
commit a22dd3c3a609ea4dfe570cd2d830b91ce094301b should address this issue.
Fixed in oprofile-1.2.0