dxtich/homebrew-core

brew install dxtich/core/qemu@8.0.4 Fails during compilation on M2 Mac (arm64 architecture)

Opened this issue · 1 comments

wyce01 commented

ninja: build stopped: subcommand failed.
make[1]: *** [run-ninja] Error 1
make: *** [install] Error 2
/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/git --version
/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --version
/opt/homebrew/Library/Homebrew/ignorable.rb:29:in `block in raise'
BuildError: Failed executing: make V=1 install

  1. raise
  2. ignore
  3. backtrace
  4. irb
  5. shell
    Choose an action: 1
    ==> Temporary files retained at:
    /private/tmp/qemuA8.0.4-20231114-92837-dujq11

==> Formula
Tap: dxtich/core
Path: /opt/homebrew/Library/Taps/dxtich/homebrew-core/Formula/qemu@8.0.4.rb
==> Configuration
HOMEBREW_VERSION: 4.1.20
ORIGIN: https://github.com/Homebrew/brew
HEAD: d3d51d3448966b5250b5c60110c945040054803d
Last commit: 3 days ago
Core tap JSON: 15 Nov 04:32 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.m6aqpfHL81/org.xquartz:0
HOMEBREW_MAKE_JOBS: 10
Homebrew Ruby: 2.6.10 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: 10-core 64-bit arm_blizzard_avalanche
Clang: 14.0.3 build 1403
Git: 2.39.2 => /Library/Developer/CommandLineTools/usr/bin/git
/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --version
Curl: 7.88.1 => /usr/bin/curl
macOS: 13.4-arm64
CLT: 14.3.1.0.1.1683849156
Xcode: N/A
Rosetta 2: false
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j10
CMAKE_PREFIX_PATH: /opt/homebrew/opt/ncurses:/opt/homebrew
CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_PATH: /opt/homebrew/opt/capstone/lib/pkgconfig:/opt/homebrew/opt/pcre2/lib/pkgconfig:/opt/homebrew/opt/glib/lib/pkgconfig:/opt/homebrew/opt/gmp/lib/pkgconfig:/opt/homebrew/opt/libidn2/lib/pkgconfig:/opt/homebrew/opt/libtasn1/lib/pkgconfig:/opt/homebrew/opt/nettle/lib/pkgconfig:/opt/homebrew/opt/p11-kit/lib/pkgconfig:/opt/homebrew/opt/openssl@3/lib/pkgconfig:/opt/homebrew/opt/libevent/lib/pkgconfig:/opt/homebrew/opt/libnghttp2/lib/pkgconfig:/opt/homebrew/opt/unbound/lib/pkgconfig:/opt/homebrew/opt/gnutls/lib/pkgconfig:/opt/homebrew/opt/jpeg-turbo/lib/pkgconfig:/opt/homebrew/opt/libpng/lib/pkgconfig:/opt/homebrew/opt/libslirp/lib/pkgconfig:/opt/homebrew/opt/libssh/lib/pkgconfig:/opt/homebrew/opt/libusb/lib/pkgconfig:/opt/homebrew/opt/lzo/lib/pkgconfig:/opt/homebrew/opt/ncurses/lib/pkgconfig:/opt/homebrew/opt/pixman/lib/pkgconfig:/opt/homebrew/opt/vde/lib/pkgconfig:/opt/homebrew/opt/lz4/lib/pkgconfig:/opt/homebrew/opt/xz/lib/pkgconfig:/opt/homebrew/opt/zstd/lib/pkgconfig:/opt/homebrew/opt/spice-protocol/share/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/opt/homebrew/Library/Homebrew/os/mac/pkgconfig/13
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk
ACLOCAL_PATH: /opt/homebrew/share/aclocal
PATH: /opt/homebrew/Library/Homebrew/shims/mac/super:/opt/homebrew/opt/libtool/bin:/opt/homebrew/opt/meson/bin:/opt/homebrew/opt/ninja/bin:/opt/homebrew/opt/pkg-config/bin:/opt/homebrew/opt/capstone/bin:/opt/homebrew/opt/pcre2/bin:/opt/homebrew/opt/gettext/bin:/opt/homebrew/opt/glib/bin:/opt/homebrew/opt/libidn2/bin:/opt/homebrew/opt/libtasn1/bin:/opt/homebrew/opt/nettle/bin:/opt/homebrew/opt/p11-kit/bin:/opt/homebrew/opt/openssl@3/bin:/opt/homebrew/opt/libevent/bin:/opt/homebrew/opt/gnutls/bin:/opt/homebrew/opt/jpeg-turbo/bin:/opt/homebrew/opt/libpng/bin:/opt/homebrew/opt/ncurses/bin:/opt/homebrew/opt/vde/bin:/opt/homebrew/opt/lz4/bin:/opt/homebrew/opt/xz/bin:/opt/homebrew/opt/zstd/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: dxtich/core/qemu@8.0.4 8.0.4 did not build
Logs:
/Users/amoyeo/Library/Logs/Homebrew/qemu@8.0.4/00.options.out
/Users/amoyeo/Library/Logs/Homebrew/qemu@8.0.4/01.configure.cc
/Users/amoyeo/Library/Logs/Homebrew/qemu@8.0.4/02.make.cc
/Users/amoyeo/Library/Logs/Homebrew/qemu@8.0.4/01.configure
/Users/amoyeo/Library/Logs/Homebrew/qemu@8.0.4/build
/Users/amoyeo/Library/Logs/Homebrew/qemu@8.0.4/02.make
If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
https://github.com/dxtich/homebrew-core/issues

/usr/bin/env PATH=/opt/homebrew/opt/gh/bin:/opt/homebrew/Library/Homebrew/shims/shared:/usr/bin:/bin:/usr/sbin:/sbin gh auth token --hostname github.com
/usr/bin/env PATH=/opt/homebrew/opt/gh/bin:/opt/homebrew/Library/Homebrew/shims/shared:/usr/bin:/bin:/usr/sbin:/sbin gh auth token --hostname github.com
/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.1.20\ (Macintosh;\ arm64\ Mac\ OS\ X\ 13.4)\ curl/7.88.1 --header Accept-Language:\ en --retry 3 --location https://api.github.com/search/issues\?q=qemu\%408.0.4\+repo\%3Adxtich\%2Fhomebrew-core\+state\%3Aopen\+type\%3Aissue\+in\%3Atitle\&per_page=100 --header Accept:\ application/vnd.github+json --write-out '

--------------------------------------------------------------------------------------------------------------------------What were you trying to do (and why)?
I am trying to get around a known bug with colima: Issue

Same issue on Mac M2 pro - Sonoma 14.1.2
Any work-around appreciated.

✗ colima start -c 4 -m 12 -a x86_64 --very-verbose
TRAC[0000] cmd ["limactl" "info"]
TRAC[0000] cmd ["limactl" "list" "colima" "--json"]
INFO[0000] starting colima
INFO[0000] runtime: docker
TRAC[0000] cmd ["limactl" "list" "colima" "--json"]
TRAC[0000] cmd ["/opt/homebrew/bin/colima" "daemon" "status" "default"]
TRAC[0000] cmd ["/opt/homebrew/bin/colima" "daemon" "start" "default" "--inotify" "--inotify-runtime" "docker" "--inotify-dir" "/Users/user/" "--inotify-dir" "/tmp/colima/" "--very-verbose"]
TRAC[0000] cmd ["/opt/homebrew/bin/colima" "daemon" "status" "default"]
TRAC[0000] cmd ["limactl" "list" "colima" "--json"]
INFO[0000] starting ... context=vm
TRAC[0000] cmd ["limactl" "start" "colima"]

Using the existing instance "colima"
Starting the instance "colima" with VM driver "qemu"
"Attempting to download the image" arch=x86_64 digest="sha512:ff16319abfd9b5e81395b0d0e7058a61b4bbd057fbab40fe654fb38cac1ed53b53a6a6d4c8ad10802f800daf5e069597e89ec2b2d360dbbc1dc44d0c2b1372fa" location="https://github.com/abiosoft/colima-ubuntu/releases/download/v0.6.0/ubuntu-23.10-minimal-cloudimg-amd64.img"
Using cache "/Users/user/Library/Caches/lima/download/by-url-sha256/5e09b6b75fac72adf86d39118258ebb37e2e6c66cdedf5202802d7d9aa08da74/data"
[hostagent] hostagent socket created at /Users/user/.colima/_lima/colima/ha.sock
[hostagent] Starting QEMU (hint: to watch the boot progress, see "/Users/user/.colima/_lima/colima/serial*.log")
SSH Local Port: 60049
[hostagent] Waiting for the essential requirement 1 of 4: "ssh"
[hostagent] Waiting for the essential requirement 1 of 4: "ssh"
[hostagent] Waiting for the essential requirement 1 of 4: "ssh"
[hostagent] Waiting for the essential requirement 1 of 4: "ssh"
[hostagent] Waiting for the essential requirement 1 of 4: "ssh"
[hostagent] Waiting for the essential requirement 1 of 4: "ssh"
[hostagent] Waiting for the essential requirement 1 of 4: "ssh"
[hostagent] Waiting for the essential requirement 1 of 4: "ssh"
[hostagent] Waiting for the essential requirement 1 of 4: "ssh"
[hostagent] Waiting for the essential requirement 1 of 4: "ssh"
[hostagent] Waiting for the essential requirement 1 of 4: "ssh"
[hostagent] Waiting for the essential requirement 1 of 4: "ssh"
[hostagent] The essential requirement 1 of 4 is satisfied
[hostagent] Waiting for the essential requirement 2 of 4: "user session is ready for ssh"
[hostagent] The essential requirement 2 of 4 is satisfied
[hostagent] Waiting for the essential requirement 3 of 4: "sshfs binary to be installed"
[hostagent] Waiting for the essential requirement 3 of 4: "sshfs binary to be installed"
[hostagent] Waiting for the essential requirement 3 of 4: "sshfs binary to be installed"
[hostagent] Waiting for the essential requirement 3 of 4: "sshfs binary to be installed"
[hostagent] Waiting for the essential requirement 3 of 4: "sshfs binary to be installed"
[hostagent] Waiting for the essential requirement 3 of 4: "sshfs binary to be installed"
[hostagent] Waiting for the essential requirement 3 of 4: "sshfs binary to be installed"
[hostagent] Waiting for the essential requirement 3 of 4: "sshfs binary to be installed"
[hostagent] Waiting for the essential requirement 3 of 4: "sshfs binary to be installed"
[hostagent] Waiting for the essential requirement 3 of 4: "sshfs binary to be installed"
[hostagent] Waiting for the essential requirement 3 of 4: "sshfs binary to be installed"
[hostagent] Waiting for the essential requirement 3 of 4: "sshfs binary to be installed"
did not receive an event with the "running" status
FATA[0601] error starting vm: error at 'starting': exit status 1