Closed troyfolger closed 3 years ago
Hmmm ... perhaps this is the issue?
$ xcodebuild -version
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
I've done
$ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
... and I'll try the build again.
Hmmm ... perhaps this is the issue?
$ xcodebuild -version xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
Yes, it is the issue. You need a complete xcode installation. I’m not sure why libangle started to require it. But I probably need to add a check for it in the formula so people are not surprised.
You can google the error and find how to fix it. It’s not hard.
OK, thank you, the sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
did get me past the libangle build issue.
However, as the build/install proceeds, the configure step of qemu-virgl is failing:
...
==> 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 --disable-bsd-user --disable-guest-a
Last 15 lines from /Users/tfolger/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-20210502-71511-1ywb8xa/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-20210502-71511-1ywb8xa/build/meson-logs/meson-log.txt
ERROR: meson setup failed
Please try brew install -s qemu
to check that it doesn’t have the same problem. I’ll take a look at meson meanwhile.
When do brew install -s qemu
(actually, I had qemu installed so I did brew reinstall -s qemu
), I encounter the error mentioned here: https://github.com/Homebrew/homebrew-core/pull/76318
The commits for that issue happened just 6 hours ago and aren't approved yet ... so maybe we're hitting that?
When do
brew install -s qemu
(actually, I had qemu installed so I didbrew reinstall -s qemu
), I encounter the error mentioned here: Homebrew/homebrew-core#76318The commits for that issue happened just 6 hours ago and aren't approved yet ... so maybe we're hitting that?
I’ve patched the version file problem so that it at least builds for me (as well as in github ci). Latest version of my formula already contains the patch.
This is something else. I’ll try to investigate and let you know if I find something. Is there a way to contact you via chat, if I have a need to run something in your environment?
I am following this because I am also having this issue mentioned above. Would be awesome to see what the solution is.
OK, thank you, the
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
did get me past the libangle build issue.However, as the build/install proceeds, the configure step of qemu-virgl is failing:
... ==> 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 --disable-bsd-user --disable-guest-a Last 15 lines from /Users/tfolger/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-20210502-71511-1ywb8xa/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-20210502-71511-1ywb8xa/build/meson-logs/meson-log.txt ERROR: meson setup failed
Same issues.
I came across same problem. ERROR: meson setup failed
I’ve pulled the patch from upstream (see #20). After it passes CI checks, I’ll merge it and you all will be able to try again.
Thanks for your reports, it’s super important and keeps the project alive.
Should be fixed now. Please run:
brew tap --force-auto-update knazarov/qemu-virgl
brew install qemu-virgl
OK, I didn't see your last comment - I did
brew uninstall qemu
brew uninstall qemu-virgl
brew install -d qemu-virgl
... and it built! Thanks for your quick resolution. I'll continue with your install instructions from here.
I just wanted to leave one last comment - after the install of qemu-virgl, I followed your instructions for creating an Ubuntu VM, and it worked phenomenally well. I was even able to play a quick game of Wolfenstein from the Ubuntu app store. The desktop is very responsive on the M1 mini. Great work, and thank you for this!
====================
I'm not sure the version of xcode matters, but: