4 Compiling on Debian 11 Bullseye
Moritz Bunkus edited this page 2021-07-11 09:51:33 +00:00

Internal compiler errors

The upcoming release 11 of Debian ships with a buggy gcc compiler that causes an "internal compiler error" when compiling recent versions of MKVToolNix. Debian will not ship a fixed version of gcc, making compilation of MKVToolNix harder on that release. See the following Debian bugs for more information:

Solutions & Workarounds

There are two potential workarounds:

  1. Compiling with clang instead of gcc
  2. Compiling with gcc version 9 which Bullseye ships with, too

At the moment I'm using 1. for my packages and my Buildbot installation. It's a tested & proven solution.

Compiling with clang

  1. Install the clang package
  2. When running configure, add the following two command-line arguments: CC=/usr/bin/clang CXX=/usr/bin/clang++

That's it.

Compiling with gcc-9

I haven't tested this myself, but it should work similar to compiling with clang described above:

  1. Install the g++-9 package
  2. When running configure, add the following two command-line arguments: CC=/usr/bin/gcc-9 CXX=/usr/bin/g++-9

Categories: building