Audacity and GCC – Mismatch between the program and library build versions

Recently, Gentoo Linux put GCC 6.3 (released in December 2016) into the testing branch. For a source-based distribution like Gentoo, GCC is a critical part of the toolchain, and sometimes can lead to packages failing to compile or run. I recently ran into just this problem with Audacity. The error that I hit was not during compilation, but during runtime:


$ audacity
Fatal Error: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1009,wx containers,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1010,wx containers,compatible with 2.8).
Aborted

The Gentoo Wiki has a nice, detailed page on Upgrading GCC, and explicitly calls out ABI changes. In this particular case of Audacity, the problematic library is referenced in the error above: “wx containers”. WX containers are handled by the wxGTK package. So, I simply needed to rebuild the currently-installed version of wxGTK to fix this particular problem.

Hope that helps.

Cheers,
Zach

5 comments

Skip to comment form

    • Matt on Tuesday, 7 November 2017 at 17:34
    • Reply

    Thanks for this. Same problem, same solution.

      • Zach on Tuesday, 7 November 2017 at 17:41
        Author
      • Reply

      You’re welcome, Matt. Glad that the article helped solve your problem.

      Cheers,
      Zach

      • Matt on Tuesday, 7 November 2017 at 17:47
      • Reply

      Worth noting, the current ebuild for wxGTK is broken. The solution posted in this thread appears to have worked.

      https://forums.gentoo.org/viewtopic-p-8128714.html?sid=e3948f815794c37996eae5081dd56f52

    • Gerd Spolwig on Friday, 16 June 2017 at 20:54
    • Reply

    Yes thank you that really helped. Thought it will be fixed with the next update though. Nice to publish it here.

      • Zach on Friday, 16 June 2017 at 22:03
        Author
      • Reply

      You’re welcome, Gerd. I’m glad that it helped you solve the problem. 🙂

      Cheers,
      Zach

Leave a Reply

Your email address will not be published.