[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH 00/11] rust: improved integration with cargo
From: |
Alex Bennée |
Subject: |
Re: [RFC PATCH 00/11] rust: improved integration with cargo |
Date: |
Thu, 14 Nov 2024 17:27:57 +0000 |
User-agent: |
mu4e 1.12.7; emacs 29.4 |
Paolo Bonzini <pbonzini@redhat.com> writes:
> On 11/14/24 16:22, Alex Bennée wrote:
>> ERROR: Build data file './meson-private/build.dat' references
>> functions or classes that don't exist. This probably means that it
>> was generated with an old version of meson. Try running from the
>> source directory meson setup . --wipe
>> I also tried a wipe and re-configure but the same thing.
>
> Ah, nevermind - you must have an older meson installation in /usr.
> You have to do pyvenv/bin/meson to pick the right one. I'll adjust
> the docs.
Hmm,
✗ ./pyvenv/bin/meson devenv ../../rust
Traceback (most recent call last):
File
"/home/alex/lsrc/qemu.git/builds/rust/pyvenv/lib/python3.11/site-packages/mesonbuild/mesonmain.py",
line 188, in run
return options.run_func(options)
^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/home/alex/lsrc/qemu.git/builds/rust/pyvenv/lib/python3.11/site-packages/mesonbuild/mdevenv.py",
line 228, in run
return subprocess.call(args, close_fds=False,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 389, in call
with Popen(*popenargs, **kwargs) as p:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: '../../rust'
ERROR: Unhandled python OSError. This is probably not a Meson bug, but an issue
with your build environment.
🕙17:26:59 alex@draig:qemu.git/builds/rust on review/rust-cargo-rfc [$!?] [🔴
13]
✗ ls -l ../../rust/
total 40
-rw-r--r-- 1 alex alex 3237 Nov 12 21:01 Cargo.lock
-rw-r--r-- 1 alex alex 2426 Nov 14 12:15 Cargo.toml
drwxr-xr-x 3 alex alex 4096 Nov 11 23:19 hw/
-rw-r--r-- 1 alex alex 18 Nov 11 23:19 Kconfig
-rw-r--r-- 1 alex alex 437 Nov 14 12:15 meson.build
drwxr-xr-x 4 alex alex 4096 Nov 14 12:15 qemu-api/
drwxr-xr-x 3 alex alex 4096 Nov 14 12:15 qemu-api-macros/
-rw-r--r-- 1 alex alex 191 Nov 11 23:19 rustfmt.toml
drwxr-xr-x 4 alex alex 4096 Nov 14 15:18 target/
-rw-r--r-- 1 alex alex 2262 Nov 12 21:01 wrapper.h
>
> Paolo
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
- [RFC PATCH 09/11] rust: build: add "make clippy", "make rustfmt", (continued)