robusta-dev / homebrew-holmesgpt

0 stars 0 forks source link

Brew installation of holmesgpt is broken on older intel macs #1

Open ebarrere opened 2 months ago

ebarrere commented 2 months ago

The tap seems to work fine, but install does not, though no error is thrown.

$ brew tap robusta-dev/homebrew-holmesgpt
==> Auto-updating Homebrew...
Adjust how often this is run with HOMEBREW_AUTO_UPDATE_SECS or disable with
HOMEBREW_NO_AUTO_UPDATE. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Auto-updated Homebrew!
==> Updated Homebrew from 81c4351fb5 to 638a3dc3a3.
Updated 3 taps (homebrew/services, homebrew/core and homebrew/cask).
==> New Formulae
firefly
==> New Casks
font-lxgw-simxihei                                                                                                                            font-lxgw-simzhisong                                                                                                                          retcon

You have 59 outdated formulae and 1 outdated cask installed.

==> Tapping robusta-dev/holmesgpt
Cloning into '/usr/local/Homebrew/Library/Taps/robusta-dev/homebrew-holmesgpt'...
remote: Enumerating objects: 121, done.
remote: Counting objects: 100% (121/121), done.
remote: Compressing objects: 100% (38/38), done.
remote: Total 121 (delta 29), reused 102 (delta 23), pack-reused 0 (from 0)
Receiving objects: 100% (121/121), 14.85 KiB | 2.47 MiB/s, done.
Resolving deltas: 100% (29/29), done.
Tapped 1 formula (13 files, 23.9KB).

$ brew install holmesgpt
==> Fetching robusta-dev/holmesgpt/holmesgpt
==> Downloading https://github.com/robusta-dev/holmesgpt/releases/download/0.2.6/holmes-macos-latest-0.2.6.zip
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/808146034/975d6bc0-4f21-4f1d-b18d-d7c1e1768022?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240829%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240829T131457Z&X-Amz-Expires=300&X-Amz-Signature=0d5d597230192d39971b6c935aaae9ff870b375eb43cdbdb55f5558add905a9b&X-Amz-SignedHeaders=host&actor_id=0&ke
######################################################################################################################################################################################################################################################### 100.0%
==> Installing holmesgpt from robusta-dev/holmesgpt
==> /usr/local/Cellar/holmesgpt/0.2.6/libexec/holmes version
Last 15 lines from /Users/username/Library/Logs/Homebrew/holmesgpt/01.holmes:
2024-08-29 13:15:39 +0000

/usr/local/Cellar/holmesgpt/0.2.6/libexec/holmes
version

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/robusta-dev/homebrew-holmesgpt/issues

$ ll /usr/local/Cellar/holmesgpt/
ls: /usr/local/Cellar/holmesgpt/: No such file or directory

Here is the content of /Users/username/Library/Logs/Homebrew/holmesgpt/01.holmes:

$ cat /Users/username/Library/Logs/Homebrew/holmesgpt/01.holmes
2024-08-29 13:17:39 +0000

/usr/local/Cellar/holmesgpt/0.2.6/libexec/holmes
version

HOMEBREW_VERSION: 4.3.18-40-g638a3dc
ORIGIN: https://github.com/Homebrew/brew
HEAD: 638a3dc3a33c4c2029db058cf3d399008621e973
Last commit: 5 hours ago
Core tap HEAD: 947df0e76ba1753af1b1982690e7fc736e205f38
Core tap last commit: 20 hours ago
Core tap JSON: 29 Aug 13:14 UTC
Core cask tap HEAD: a32eb59b3e61ee4c0424933a3f03301dbce03130
Core cask tap last commit: 21 hours ago
Core cask tap JSON: 29 Aug 13:14 UTC
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.WaBe7Iha34/org.macosforge.xquartz:0
HOMEBREW_MAKE_JOBS: 16
HOMEBREW_NO_BOOTSNAP: set
HOMEBREW_SORBET_RUNTIME: set
Homebrew Ruby: 3.3.4 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.4_1/bin/ruby
CPU: 16-core 64-bit kabylake
Clang: 15.0.0 build 1500
Git: 2.46.0 => /usr/local/bin/git
Curl: 8.6.0 => /usr/bin/curl
macOS: 14.5-x86_64
CLT: 15.3.0.0.1.1708646388
Xcode: N/A

HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j16
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/14
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/bin:/bin:/usr/sbin:/sbin
aantn commented 2 months ago

Hi, I'm unable to reproduce. Can you rerun the brew install command with the -v command and share the output please?

ebarrere commented 2 months ago

Here you go:

$ brew install holmesgpt -v
==> Auto-updating Homebrew...
Adjust how often this is run with HOMEBREW_AUTO_UPDATE_SECS or disable with
HOMEBREW_NO_AUTO_UPDATE. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Auto-updated Homebrew!
==> Updated Homebrew from 8f00fefd1c to 0b3d78aa0f.
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
libblastrampoline
==> New Casks
choice-financial-terminal

You have 67 outdated formulae and 1 outdated cask installed.

==> Fetching robusta-dev/holmesgpt/holmesgpt
==> Downloading https://github.com/robusta-dev/holmesgpt/releases/download/0.3.0/holmes-macos-latest-0.3.0.zip
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/808146034/6834f086-3151-4e09-859c-e46762c48f71?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240904%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240904T013736Z&X-Amz-Expires=300&X-Amz-Signature=6f72adb4923642eb88bf9d7c63264084c59f213ecd3aa4da5d8b262ec5e72a8d&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=808146034&response-content-disposition=attachment%3B%20filename%3Dholmes-macos-latest-0.3.0.zip&response-content-type=application%2Foctet-stream
/usr/bin/env /usr/local/Homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.3.19-16-g8f00fef\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 14.5\)\ curl/8.6.0 --header Accept-Language:\ en --fail --retry 3 --remote-time --output /Users/elliott/Library/Caches/Homebrew/downloads/0178b63bb03402ce5ee011fd31c11f459c87b04f2c6350434bacece82d7d770b--holmes-macos-latest-0.3.0.zip.incomplete --location https://objects.githubusercontent.com/github-production-release-asset-2e65be/808146034/6834f086-3151-4e09-859c-e46762c48f71\?X-Amz-Algorithm=AWS4-HMAC-SHA256\&X-Amz-Credential=releaseassetproduction\%2F20240904\%2Fus-east-1\%2Fs3\%2Faws4_request\&X-Amz-Date=20240904T013736Z\&X-Amz-Expires=300\&X-Amz-Signature=6f72adb4923642eb88bf9d7c63264084c59f213ecd3aa4da5d8b262ec5e72a8d\&X-Amz-SignedHeaders=host\&actor_id=0\&key_id=0\&repo_id=808146034\&response-content-disposition=attachment\%3B\%20filename\%3Dholmes-macos-latest-0.3.0.zip\&response-content-type=application\%2Foctet-stream
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 53.9M  100 53.9M    0     0   849k      0  0:01:05  0:01:05 --:--:-- 1471k
==> Verifying checksum for '0178b63bb03402ce5ee011fd31c11f459c87b04f2c6350434bacece82d7d770b--holmes-macos-latest-0.3.0.zip'
==> Installing holmesgpt from robusta-dev/holmesgpt
/usr/bin/env PATH=/usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/bin:/bin:/usr/sbin:/sbin unzip -o /Users/elliott/Library/Caches/Homebrew/downloads/0178b63bb03402ce5ee011fd31c11f459c87b04f2c6350434bacece82d7d770b--holmes-macos-latest-0.3.0.zip -d /private/tmp/homebrew-unpack20240903-37662-c2cjpe
/usr/bin/env cp -pR /private/tmp/homebrew-unpack20240903-37662-c2cjpe/holmes/. /private/tmp/holmesgpt-20240903-37662-c22qvc/holmes
==> /usr/local/Cellar/holmesgpt/0.3.0/libexec/holmes version
Failed to execute: /usr/local/Cellar/holmesgpt/0.3.0/libexec/holmes

==> Formula
Tap: robusta-dev/holmesgpt
Path: /usr/local/Homebrew/Library/Taps/robusta-dev/homebrew-holmesgpt/Formula/holmesgpt.rb
==> Configuration
HOMEBREW_VERSION: 4.3.19-16-g8f00fef
ORIGIN: https://github.com/Homebrew/brew
HEAD: 0b3d78aa0f5e136f1f43bf4a7bc0c9afc3c4e1d5
Last commit: 7 hours ago
Core tap HEAD: e4d506650a916ca8b356cbcc425079c171629a7f
Core tap last commit: 9 hours ago
Core tap JSON: 04 Sep 01:37 UTC
Core cask tap HEAD: 0743b15251d0f5a8ac92b3363998857c23bb1a84
Core cask tap last commit: 9 hours ago
Core cask tap JSON: 04 Sep 01:37 UTC
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.WaBe7Iha34/org.macosforge.xquartz:0
HOMEBREW_MAKE_JOBS: 16
HOMEBREW_SORBET_RUNTIME: set
Homebrew Ruby: 3.3.4 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.4_1/bin/ruby
CPU: 16-core 64-bit kabylake
Clang: 15.0.0 build 1500
Git: 2.46.0 => /usr/local/bin/git
Curl: 8.6.0 => /usr/bin/curl
macOS: 14.5-x86_64
CLT: 15.3.0.0.1.1708646388
Xcode: N/A
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j16
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/14
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/bin:/bin:/usr/sbin:/sbin

Error: robusta-dev/holmesgpt/holmesgpt 0.3.0 did not build
Logs:
     /Users/elliott/Library/Logs/Homebrew/holmesgpt/00.options.out
     /Users/elliott/Library/Logs/Homebrew/holmesgpt/01.holmes
If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/robusta-dev/homebrew-holmesgpt/issues

These open issues may also help:
Unable to install holmesgpt via brew https://github.com/robusta-dev/homebrew-holmesgpt/issues/1

And output of the log files if you need it:

$ cat /Users/elliott/Library/Logs/Homebrew/holmesgpt/00.options.out
robusta-dev/holmesgpt/holmesgpt%

$ cat /Users/elliott/Library/Logs/Homebrew/holmesgpt/01.holmes
2024-09-04 01:38:58 +0000

/usr/local/Cellar/holmesgpt/0.3.0/libexec/holmes
version

Failed to execute: /usr/local/Cellar/holmesgpt/0.3.0/libexec/holmes

HOMEBREW_VERSION: 4.3.19-16-g8f00fef
ORIGIN: https://github.com/Homebrew/brew
HEAD: 0b3d78aa0f5e136f1f43bf4a7bc0c9afc3c4e1d5
Last commit: 7 hours ago
Core tap HEAD: e4d506650a916ca8b356cbcc425079c171629a7f
Core tap last commit: 9 hours ago
Core tap JSON: 04 Sep 01:37 UTC
Core cask tap HEAD: 0743b15251d0f5a8ac92b3363998857c23bb1a84
Core cask tap last commit: 9 hours ago
Core cask tap JSON: 04 Sep 01:37 UTC
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.WaBe7Iha34/org.macosforge.xquartz:0
HOMEBREW_MAKE_JOBS: 16
HOMEBREW_NO_BOOTSNAP: set
HOMEBREW_SORBET_RUNTIME: set
Homebrew Ruby: 3.3.4 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.4_1/bin/ruby
CPU: 16-core 64-bit kabylake
Clang: 15.0.0 build 1500
Git: 2.46.0 => /usr/local/bin/git
Curl: 8.6.0 => /usr/bin/curl
macOS: 14.5-x86_64
CLT: 15.3.0.0.1.1708646388
Xcode: N/A

HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j16
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/14
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/bin:/bin:/usr/sbin:/sbin
aantn commented 2 months ago

Hmm, this is the key part

==> /usr/local/Cellar/holmesgpt/0.3.0/libexec/holmes version
Failed to execute: /usr/local/Cellar/holmesgpt/0.3.0/libexec/holmes

and it doesn't have any info to indicated why that failed to execute. Could you please run once more with --debug which should drop you into a shell if the install fails, that you can then use to check why the execution failed?

Thanks!

ebarrere commented 2 months ago

Ah here we go:

holmes % /usr/local/Cellar/holmesgpt/0.3.0/libexec/holmes version
zsh: bad CPU type in executable: /usr/local/Cellar/holmesgpt/0.3.0/libexec/holmes

I'm on an old Mac with an Intel processor.

On Sep 4, 2024, at 1:42 AM, Natan Yellin @.***> wrote:

Hmm, this is the key part

==> /usr/local/Cellar/holmesgpt/0.3.0/libexec/holmes version Failed to execute: /usr/local/Cellar/holmesgpt/0.3.0/libexec/holmes and it doesn't have any info to indicated why that failed to execute. Could you please run once more with --debug which should drop you into a shell if the install fails, that you can then use to check why the execution failed?

Thanks!

— Reply to this email directly, view it on GitHub https://github.com/robusta-dev/homebrew-holmesgpt/issues/1#issuecomment-2328144699, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJZZJBEK4MF75XMI26OTVLZU22XDAVCNFSM6AAAAABNKN6YY6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRYGE2DINRZHE. You are receiving this because you authored the thread.

aantn commented 2 months ago

Got it, thanks. We don't support this yet in the brew install (I think you got it working with the docker image though, right?)

I am going to leave this open and update the title accordingly.

ebarrere commented 2 months ago

Yup, I'm all good — docker is my preferred method anyway. Thanks for the help.

On Sep 4, 2024, at 11:15 AM, Natan Yellin @.***> wrote:

Got it, thanks. We don't support this yet in the brew install (I think you got it working with the docker image though, right?)

I am going to leave this open and update the title accordingly.

— Reply to this email directly, view it on GitHub https://github.com/robusta-dev/homebrew-holmesgpt/issues/1#issuecomment-2329594386, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJZZJAYJJU56YJKH5MHVPTZU452LAVCNFSM6AAAAABNKN6YY6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRZGU4TIMZYGY. You are receiving this because you authored the thread.