Skip to content

old version meson doesn't support compile sub-command #202

@1saac-k

Description

@1saac-k

README.md guide to compiling with meson compile -C build.
But old meson doesn't support the compile sub-command.

$ meson compile -C build
usage: meson [-h] {setup,configure,dist,install,introspect,init,test,wrap,subprojects,help,rewrite} ...
meson: error: unrecognized arguments: -C build

compile sub-command supported after 0.54.0.
https://mesonbuild.com/Commands.html#compile

But, Ubuntu 20.04 official apt repository has a meson with version 0.32.2.

$ lsb_release -d
Description:    Ubuntu 20.04.4 LTS

$ apt search meson
Sorting... Done
Full Text Search... Done
elpa-meson-mode/focal 0.2-1 all
  Major mode for the Meson build system files

meson/focal,now 0.53.2-2ubuntu2 all [installed]
  high-productivity build system

A workaround is ninja -C build.
README.md and doc (below link) need to include a workaround or guide to installing the latest meson (e.g., pip instead of apt).
https://docs.pmem.io/ndctl-user-guide/installing-ndctl/installing-ndctl-from-source-on-linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions