Closed mzaman07 closed 6 years ago
What shell are you using? msys installs a number of shells. We should also add such information to our build instructions in the future.
You could try to run pacman -S python2
; if the respective package is not found, try pacman -Ss python
and see if any package has a fitting name.
We should report this issue upstream to msys; python seems to be a build dependency (I also know that QEMU depends on it, which Unicorn is forked from).
I have been using the mingw 64 bit shell, also tried it in the MSYS shell same problem. Yeah when MSYS installed and pacman is updated it defaults to installing python3. From researching the issue it stems from Arch Linux mentality of using the latest feature because pacman is the main package manager for it. When I ran pacman -S python
it installed python3 and when you run the python command it works. When I reran the build command the following error message is shown.
ERROR: Cannot use 'python', Python 2.4 or later is required. Note that Python 3 or later is not yet supported. Use --python=/path/to/python to specify a supported Python.
So it looks like qemu and unicorn uses python 2.7. I ll see if I can get rid of python3 or somehow change the symlinks to point to python 2.7 when the command runs. I am also going to write an issue upstream to msys.
Yeah we have the same issue in XQEMU. But I'd expect it to find python2 automatically. Will report upstream as this looks like an annoying issue for users to address themselves.
This was hopefully fixed upstream now. Please re-test @mzaman07
Looks like it works now, I just reran the build intstructions.
Hello,
So I was following the instructions from here. More specifically the msys2 x64 build instructions. After following the msys2 instructions from the website, I made sure pacman was updated and upgraded. I also had to install the make command as it was not part of the original msys upgrade.
After running
MINGW_INSTALLS=mingw64 makepkg-mingw -sLf -i
command the following error message is output.-Mo