crashappsec / crashappsec/ncc

Declared meson_version >= 1.1 too low: c_std=gnu23 requires meson 1.4+

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
0
Forks
0
Avg merge
5d 4h
Merged PRs (30d)
1

Description

## Summary

`meson.build` declares `meson_version : '>= 1.1'`, but the project sets `c_std=gnu23` in `default_options`. Meson did not learn the `gnu23` value until 1.4. Anyone on the declared minimum version sees a hard parse error at `meson setup`.

## Repro

```
$ meson --version
1.3.2
$ meson setup build
meson.build:1:0: ERROR: Unknown C std ['gnu23']. Possible values are ['none', 'c89', ..., 'gnu2x', ...].
```

This is what ships in Ubuntu 24.04's apt (`meson 1.3.2`), so it bites cleanly on a fresh install.

## Suggested fix

Bump the declared minimum:

```meson
project('ncc', 'c',
version : '0.1.0',
meson_version : '>= 1.4',
...)
```

Encountered while validating PR #1 (Windows portability) on a fresh Ubuntu 24.04 environment. Worked around by upgrading meson via `pipx install meson` (1.11.1).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.