Menu

#288 oprofile fails to build with --enable-pch and gcc-6.2

None
closed-fixed
nobody
None
5
2017-07-24
2016-11-22
Andrew
No

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).

1 Attachments

Discussion

  • Andrew

    Andrew - 2016-11-22

    Remove -ftemplate-depth-50 from -AX_CXXFLAGS_OPTION.

     
  • William Cohen

    William Cohen - 2016-11-22

    The suggested change looks fine. What should I use for name and email address for attribution of the patch commit?

     
  • Andrew

    Andrew - 2016-11-22

    Andrew Savchenko <bircoph at="" gmail.com=""> should be fine.

     
  • William Cohen

    William Cohen - 2016-11-23
    • status: open --> open-fixed
    • Group: -->
     
  • William Cohen

    William Cohen - 2016-11-23

    commit a22dd3c3a609ea4dfe570cd2d830b91ce094301b should address this issue.

     
  • William Cohen

    William Cohen - 2017-07-24
    • status: open-fixed --> closed-fixed
     
  • William Cohen

    William Cohen - 2017-07-24

    Fixed in oprofile-1.2.0

     

Log in to post a comment.