On Mon, Apr 13, 2026 at 03:07:35PM +0200, Emanuele Rocca wrote:
> movit fails to build in a test rebuild on at least amd64 and arm64 with
> gcc-16/g++-16, but builds properly with gcc-15/g++-15. The severity of this
> report will be raised before the forky release.
Hi,
This is a pretty curious case; it stems from Google Test (the excerpt
doesn't show this at all, you need to go into the full log):
/usr/src/gtest/include/gtest/internal/gtest-port.h:273:2: error: #error C++
versions less than C++17 are not supported.
273 | #error C++ versions less than C++17 are not supported.
| ^~~~~
However, the default mode in GCC 16 is C++20, and since version 1.7.2,
Movit no longer gives -std=gnu++14, which it used to. So where does this
come from?
Seemingly, it comes from configure:
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... -std=gnu++11
checking how to run the C++ preprocessor... g++ -std=gnu++11 -E
checking for ld used by g++ -std=gnu++11... /usr/bin/aarch64-linux-gnu-ld
checking if the linker (/usr/bin/aarch64-linux-gnu-ld) is GNU ld... yes
which seems to come from AC_PROG_CXX.
So perhaps this bug is really in autoconf, which shouldn't be downgrading
to C++11 if the default is already higher?
/* Steinar */
--
Homepage: https://www.sesse.net/