Skip to contentSkip to conversation

meson.build:1:0: ERROR: prefix value '/qemu' must be an absolute path

DISCUSSION Thomas Huth 2 participants 2 messages Jan 12

lore
Share & tools
lore
#0 lore raw

Hi,

looks like something in the latest version of MinGW (maybe the update to Python 3.13?) causes our meson configuration to fail, see e.g.:

https://gitlab.com/qemu-project/qemu/-/jobs/12672816538#L397

meson.build:1:0: ERROR: prefix value '/qemu' must be an absolute path

I guess this is similar to https://github.com/mesonbuild/meson/issues/14303 ... but the weird thing is that we don't use "--prefix" in our build, so I wonder where this /qemu is coming from?

Does anybody have got an idea how to fix this?

Thomas

#1 lore raw
Quoted 4 lines · Thomas Huth

 Hi,

looks like something in the latest version of MinGW (maybe the update to Python 3.13?)

Yes, that is it.

Quoted 7 lines

causes our meson configuration to fail, see e.g.:

 https://gitlab.com/qemu-project/qemu/-/jobs/12672816538#L397

 meson.build:1:0: ERROR: prefix value '/qemu' must be an absolute path

I guess this is similar to https://github.com/mesonbuild/meson/ issues/14303 ... but the weird thing is that we don't use "--prefix" in our build, so I wonder where this /qemu is coming from?

That's pretty obscure indeed, it comes from configs/meson/windows.txt.

Quoted 1 line

Does anybody have got an idea how to fix this?

Removing the prefix='/qemu' line in configs/meson/windows.txt should work. Commit d17f305a264 ("configure: use a platform-neutral prefix", 2020-09-30) says that the NSIS installer doesn't care.

I'm testing the change, and will also look at a fix in Meson. Probably it seemed hard in 2020, since I just opened a bug (https://github.com/mesonbuild/meson/issues/7577), but maybe things have changed.

Paolo