<div dir="ltr"><div dir="ltr">On Fri, Sep 25, 2020 at 6:20 PM Andrea Bolognani <<a href="mailto:abologna@redhat.com">abologna@redhat.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, 2020-09-25 at 17:46 +0800, Wei Wang wrote:<br>
> On Fri, Sep 25, 2020 at 5:35 PM Daniel P. Berrangé <<a href="mailto:berrange@redhat.com" target="_blank">berrange@redhat.com</a>> wrote:<br>
> > On Fri, Sep 25, 2020 at 05:31:09PM +0800, Wei Wang wrote:<br>
> > > That's strange, my rst2html5 comes from docutils:<br>
> > > python3-docutils: /usr/share/docutils/scripts/python3/rst2html5<br>
> > > <br>
> > > and<br>
> > > /usr/local/bin/rst2html5 --version<br>
> > > rst2html5 (Docutils 0.16 [release], Python 3.8.2, on linux)<br>
> > <br>
> > I wouldn't expect this to have been in /usr/local/bin - that is usually<br>
> > a sign of a local adminstrator install, via "pip" or some other means.<br>
> > The distro provided version would be in /usr/bin<br>
> <br>
> I reinstalled it via "apt-get install python3-docutils", still the same error.<br>
> <br>
> Here is my check<br>
> whereis rst2html5<br>
> rst2html5: /usr/bin/rst2html5 /usr/local/bin/rst2html5.py /usr/local/bin/rst2html5 /usr/share/man/man1/rst2html5.1.gz<br>
> <br>
> /usr/bin/rst2html5 is a link to /usr/share/docutils/scripts/python3/rst2html5<br>
<br>
You seem to have both /usr/bin/rst2html5 from the python3-docutils<br>
Debian package *and* /usr/local/bin/rst2html5 from the rst2html5 PyPi<br>
package installed on your system, and Meson is apparently picking up<br>
the latter rather than the former.<br>
<br>
Please uninstall the PyPi version with "pip uninstall rst2html5" (or<br>
something like that) and try again. Make sure you wipe out the build<br>
directory to force Meson to look for binaries again.<br>
<br>
</blockquote><div><br></div><div>pip3 uninstall rst2html5 reports: WARNING: Skipping rst2html5 as it is not installed.</div><div>But after directly "rm /usr/local/bin/rst2html5",</div><div>Just get a warning: </div><div>../tests/qemuxml2xmltest.c: In function ‘mymain’:</div>../tests/qemuxml2xmltest.c:131:1: note: variable tracking size limit exceeded with ‘-fvar-tracking-assignments’, retrying without<br>  131 | mymain(void)<br>      | ^~~~~~<br></div><div class="gmail_quote">[1250/1250] Linking target tests/cputest<br></div><div class="gmail_quote"><br></div><div class="gmail_quote">It works now. </div><div class="gmail_quote">Thanks, everyone!</div><div class="gmail_quote">Wei</div></div>