Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-10904

rxvt-unicode fails to build on current Next (ISO C++17 does not allow dynamic exception)

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • Hide
      emerge rxvt-unicode fails emake

      prefixing
      CXXFLAGS="-std=c++14"
      to emerge achieves a successful emake
      Show
      emerge rxvt-unicode fails emake prefixing CXXFLAGS="-std=c++14" to emerge achieves a successful emake
    • Blocks rxvt-unicode
    • The source code is incompatible with C++17, which is the default dialect in GCC-11.

      Attempting to build rxvt-unicode-9.22-r3 on current Next, and emake fails.

      ./../libev/ev+.h:379:46: error: ISO C++17 does not allow dynamic exception specifications

      379 | default_loop (unsigned int flags = AUTO) throw (bad loop)

      An internet search led me to:

      https://www.reddit.com/r/archlinux/comments/nn7s77/c17_does_not_allow_dynamic_exception/

      As stated:

      "solution was to add

      CXXFLAGS="-std=c++14"

      to the top of the build() function in PKGBUILD"

      This led me to re-try emerging rxvt-unicode with:

      CXXFLAGS="-std=c++14" emerge -av rxvt-unicode

      to a successful build, and expected operation when running the terminal.

      See, also:

      https://bugs.gentoo.org/787104

            adbosco adbosco
            splifingate splifingate
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: