knazarov / homebrew-qemu-virgl

A homebrew tap for qemu with support for 3d accelerated guests
415 stars 68 forks source link

Installation of some packages fails #19

Closed raffaelepojer closed 3 years ago

raffaelepojer commented 3 years ago

Almost at the end returns this error

...
==> Applying qemu-version-v01.diff
patching file Makefile
patching file QEMU_VERSION
patching file VERSION
patching file meson.build
==> ./configure --prefix=/opt/homebrew/Cellar/qemu-virgl/20210430.1 --cc=clang --host-cc=clang --di
Last 15 lines from /Users/raffaele/Library/Logs/Homebrew/qemu-virgl/01.configure:
Program /opt/homebrew/opt/python@3.9/bin/python3.9 found: YES (/opt/homebrew/opt/python@3.9/bin/python3.9)
Program /opt/homebrew/opt/python@3.9/bin/python3.9 found: YES (/opt/homebrew/opt/python@3.9/bin/python3.9)
Program /opt/homebrew/opt/python@3.9/bin/python3.9 found: YES (/opt/homebrew/opt/python@3.9/bin/python3.9)
Program /opt/homebrew/opt/python@3.9/bin/python3.9 found: YES (/opt/homebrew/opt/python@3.9/bin/python3.9)
Program /opt/homebrew/opt/python@3.9/bin/python3.9 found: YES (/opt/homebrew/opt/python@3.9/bin/python3.9)
Program /opt/homebrew/opt/python@3.9/bin/python3.9 found: YES (/opt/homebrew/opt/python@3.9/bin/python3.9)
Program scripts/decodetree.py found: YES (/opt/homebrew/opt/python@3.9/bin/python3.9 /private/tmp/qemu-virgl-20210503-56257-1q3f7d6/scripts/decodetree.py)
Program @INPUT@ found: NO

../target/hexagon/meson.build:33:0: ERROR: Program '@INPUT@' not found

A full log can be found at /private/tmp/qemu-virgl-20210503-56257-1q3f7d6/build/meson-logs/meson-log.txt

ERROR: meson setup failed

Do not report this issue to Homebrew/brew or Homebrew/core!

On MacBook Pro - M1 16GB

knazarov commented 3 years ago

Hi @raffaelepojer ,

Please try to apply this patch: https://github.com/knazarov/homebrew-qemu-virgl/blob/master/Patches/qemu-hexagon-v01.diff

To do that, run brew install -d knazarov/qemu-virgl/qemu-virgl. After it experiences the error, it will prompt you to drop to a shell. Do that. In the shell, do patch -p1 < qemu-hexagon-v01.diff. Then to ./configure followed by make and see if the problem persists.

I haven’t yet included the patch into the master version of the formula, because I need to check that it compiles.

StellarOrbit commented 3 years ago

Gonna be a dumb question, but where is the files located that we are supposed to patch in order for this patch to take effect? Is it in /opt/homebrew/Library/Taps ?

knazarov commented 3 years ago

Nevermind, I’ve already catched the problem in CI. It should be fixed in a few hours. I’ll post instructions here.

knazarov commented 3 years ago

Should be fixed now. Please run:

brew tap --force-auto-update knazarov/qemu-virgl
brew install qemu-virgl
StellarOrbit commented 3 years ago

Should be fixed now. Please run:

brew tap --force-auto-update knazarov/qemu-virgl
brew install qemu-virgl

That worked perfectly. Thanks for such a quick fix!