Skip to contentSkip to conversation

meson issue in romulus SDK

DISCUSSION Zane Shelley 2 participants 3 messages May 1, 2019

lore
Share & tools
lore
#0 lore raw

I'm just getting into meson. The manual for meson at mesonbuild.com indicates the command syntax is 'meson [command] [arguments] [options]', which is consistent with the version of meson I have installed on Ubuntu 18.04 ('meson -v' returns 0.45.1). However, when I source the romulus SDK that I built this morning ('meson -v' returns 0.49.2), it doesn't understand the [command] argument. For example:

$ meson init

ERROR: Neither directory contains a build file meson.build.

$ ls
init

I think this version of meson tried to build what is in ./ and put it in init/. Could anyone explain why this behavior is different?

Signature · 1 line
- Zane
#1 lore raw
Quoted 12 lines · Zane Shelley

I'm just getting into meson. The manual for meson at mesonbuild.com indicates the command syntax is 'meson [command] [arguments] [options]', which is consistent with the version of meson I have installed on Ubuntu 18.04 ('meson -v' returns 0.45.1). However, when I source the romulus SDK that I built this morning ('meson -v' returns 0.49.2), it doesn't understand the [command] argument. For example:

$ meson init

ERROR: Neither directory contains a build file meson.build.

$ ls
init

I think this version of meson tried to build what is in ./ and put it in init/. Could anyone explain why this behavior is different?

Signature · 1 line
- Zane

Hi Zane

For getting your feet wet with OpenBMC + meson could you forgo the SDK and cross compiling and use the docker CI environment?...SDK support for meson is missing a few minor things right now. Are you able to install docker somewhere? Then you can do something like this:

export WORKSPACE=/home/andrewg/Code/ && \
export UNIT_TEST_PKG=obmc-ikvm && \
./openbmc-build-scripts/run-unit-test-docker.sh

thx - brad

#2 lore raw
Quoted 20 lines · Brad Bishop
Quoted 11 lines · Zane Shelley

I'm just getting into meson. The manual for meson at mesonbuild.com indicates the command syntax is 'meson [command] [arguments] [options]', which is consistent with the version of meson I have installed on Ubuntu 18.04 ('meson -v' returns 0.45.1). However, when I source the romulus SDK that I built this morning ('meson -v' returns 0.49.2), it doesn't understand the [command] argument. For example:

$ meson init

ERROR: Neither directory contains a build file meson.build.

$ ls
init

I think this version of meson tried to build what is in ./ and put it in init/. Could anyone explain why this behavior is different?

-- - Zane

Hi Zane

For getting your feet wet with OpenBMC + meson could you forgo the SDK and cross compiling and use the docker CI environment?...SDK support for meson is missing a few minor things right now. Are you able to install docker somewhere? Then you can do something like this:

Quoted 5 lines

export WORKSPACE=/home/andrewg/Code/ && \ export
UNIT_TEST_PKG=obmc-ikvm && \
./openbmc-build-scripts/run-unit-test-docker.sh

thx - brad

Thanks, I will check it out.

Signature · 1 line
- Zane