Qemu 11 build errors

While trying to build qemu 11 for the 1st time:
Code:
Extension error:
Could not import extension sphinx.builders.linkcheck (exception: No module named 'urllib3')
../docs/meson.build:39:6: ERROR: Problem encountered: Install a Python 3 version of python-sphinx and the readthedoc theme
A full log can be found at /usr/ports/emulators/qemu/work-default/qemu-11.0.0/build/meson-logs/meson-log.txt
ERROR: meson setup failed

In meson-log.txt:
Code:
stderr:
ld: error: undefined symbol: main
>>> referenced by crt1_s.S:66 (/usr/src/lib/csu/amd64/crt1_s.S:66)
>>>               /usr/lib/crt1.o:(_start)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
And more similar errors.

python311-3.11.15_2, meson 1.10.2 and py-sphinx 5.3.0 are installed.
What's urllib3?
What file is expected where and which package is it part of?
 
You have python, so if the package or port doesn't exist, you can install it with pip. (it does exist. in ports (since you're compiling from scratch), it's in net/py-urllib3)
 
I didn't notice the port name. Had to install py-urllib3 and a lot of required py-... ports after that.
I don't know how much more. Should this be done with pip? It seems like a dependency tree but only for python-based ports.
 
It's your choice. What's your system based on? Packages or ports? You can't (or rather shouldn't) mix them. Either be fully built on a repo, or all compiled locally. You want tool-chain coherency. In python it's essential, since the dependency version hell is real. It's why conda and venv exist: once you have several py-*, inevitably you'll run into version compatibility conflicts.

If your system is pkg based, and pkg update, you do "pkg install qemu", you don't compile. The freedom is yours, of course. I personally compile everything. Well, I boot-strap from pkg, then I build everything.

If you just want an easy "automatic" way to build a few things, use synth.
 
Just want to build qemu 11 to see what has changed since 9. I don't use Python direct;y, only as requirement of programs. Qemu is part of my custom FreeBSD version, included for Windows PC rescue purposes. Programming is C or shell.
 
Back
Top