meson claims Unknown compiler(s): ['c++', 'g++', 'clang++', 'pgc++', 'icpc']

See original GitHub issue

This is kinda weird: I have a very small dummy meson.build which errors out with:

meson.build:7:0: ERROR: Unknown compiler(s): [‘c++’, ‘g++’, ‘clang++’, ‘pgc++’, ‘icpc’]

Whereas it’s correct I don’t have any of those compilers on my system, there is also no indication in my meson.build that this would be needed.

The sample meson.build is:

project('sample',
	'c',
	version: '1.0.0',
	meson_version: '>= 0.47',
)

dep = dependency('doesnotexist', required: false)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
DimStar77commented, Feb 1, 2020

openSUSE Tumbleweed, meson 0.53.1

0reactions
DimStar77commented, Feb 12, 2020

Should be fixed with #6614

A first quick check succeeds:

Found pkg-config: /usr/bin/pkg-config (1.6.3)
Found CMake: /usr/bin/cmake (3.16.2)
Run-time dependency doesnotexist found: NO (tried pkgconfig and cmake)
Build targets in project: 0

Found ninja-1.9.0 at /usr/bin/ninja
Read more comments on GitHub >

github_iconTop Results From Across the Web

Meson picks the wrong compiler (GCC instead on clang)
I am trying to configure my project to build with LLVM/clang++, however GCC is always picked:
Read more >
Doesn't build in Rawhide (meson doesn't find c++ compiler)
Bug 1792630 - Doesn't build in Rawhide (meson doesn't find c++ compiler) ... Unknown compiler(s): ['c++', 'g++', 'clang++', 'pgc++', 'icpc'] ...
Read more >
meson build error - Solus Forum
meson.build:2:0: ERROR: Unknown compiler(s): ['cc', 'gcc', 'clang', 'pgcc', 'icc'] The follow exceptions were encountered:
Read more >
meson support - Intel Communities
Using oneAPI compiler with meson is giving the following error [1], clang is on the path [2]. I assume this is because oneAPI...
Read more >
ERROR: Unknown compiler(s): [['x86_64-pc-linux-gnu-gcc']]
Bug 734098 - x11-base/xorg-proto-2020.1 - meson.build:21:0: ERROR: Unknown compiler(s): [['x86_64-pc-linux-gnu-gcc']].
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found