|
From: | gaosong |
Subject: | Re: [PATCH 74/76] tracing: remove transform.py |
Date: | Mon, 27 Feb 2023 11:03:41 +0800 |
User-agent: | Mozilla/5.0 (X11; Linux loongarch64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
在 2023/2/26 上午2:38, Richard Henderson 写道:
On 2/25/23 00:22, Daniel Henrique Barboza wrote:Richard,Not sure if I forgot or missed something but this patch breaks my build as follows:$ make -jGIT ui/keycodemapdb tests/fp/berkeley-testfloat-3 tests/fp/berkeley-softfloat-3 dtc[1/885] Generating trace/trace-hw_hyperv.c with a custom command FAILED: trace/trace-hw_hyperv.c/usr/bin/python3 ../scripts/tracetool.py --backend=log --group=hw_hyperv --format=c /home/danielhb/work/qemu/hw/hyperv/trace-events trace/trace-hw_hyperv.cTraceback (most recent call last):File "/home/danielhb/work/qemu/build/../scripts/tracetool.py", line 19, in <module>from tracetool import error_write, out, out_openFile "/home/danielhb/work/qemu/scripts/tracetool/__init__.py", line 21, in <module>import tracetool.transform ModuleNotFoundError: No module named 'tracetool.transform'I saw the same thing on gitlab, but not on my laptop. Weird.
I always get this things. [26/2330] Generating trace/trace-hw_block.h with a custom command FAILED: trace/trace-hw_block.h/usr/bin/python3 ../scripts/tracetool.py --backend=log --group=hw_block --format=h /root/qemu/hw/block/trace-events trace/trace-hw_block.h
Traceback (most recent call last): File "/root/qemu/build/../scripts/tracetool.py", line 19, in <module> from tracetool import error_write, out, out_open File "/root/qemu/scripts/tracetool/__init__.py", line 21, in <module> import tracetool.transform ModuleNotFoundError: No module named 'tracetool.transform'
It seems that tracetool.py is still referring transform. This fixes the buildfor me: $ git diffdiff --git a/scripts/tracetool/__init__.py b/scripts/tracetool/__init__.pyindex 5393c7fc5c..c361815bc1 100644 --- a/scripts/tracetool/__init__.py +++ b/scripts/tracetool/__init__.py @@ -18,7 +18,6 @@ import tracetool.format import tracetool.backend -import tracetool.transformI also removed some code below that used these symbols; they themselves appear to be unused.r~
[Prev in Thread] | Current Thread | [Next in Thread] |