Closed makertronic closed 1 year ago
I tried to reproduce this on Ubuntu 20.04 using Vagrant but got a different error.
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.6 LTS"
$ meson build .
The Meson build system
Version: 0.53.2
Source dir: /home/vagrant/warthog
Build dir: /home/vagrant/warthog/build
Build type: native build
Project name: Warthog
Project version: 0.1
C compiler for the host machine: cc (gcc 9.4.0 "cc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0")
C linker for the host machine: cc ld.bfd 2.34
meson.build:1:0: ERROR: Value "c++20" for combo option is not one of the choices. Possible choices are: "none", "c++98", "c++03", "c++11", "c++14", "c++17", "c++1z", "c++2a", "gnu++03", "gnu++11", "gnu++14", "gnu++17", "gnu++1z", "gnu++2a".
This clearly shows that the compiler gcc9 is too old. Ubuntu 20.04 LTS is not supported, please upgrade to a distribution which ships with gcc11 or newer.
Hi,
I have this error error when compiling