Git-Jiro / homebrew-jiro

This repository contains homebrew formulae authored by me
26 stars 11 forks source link

Gridcoin does not run in MacOS Catalina 10.15.5 #78

Open chuckcoleman opened 4 years ago

chuckcoleman commented 4 years ago

After updating my Mac's OS, Gridcoin stopped running. It goes as far as to show the normal status screen briefly, then dies without warning or message. I can even mouse over the staking, connections, etc. icons and see the expected information. Within 15 seconds, Gridcoin closes.'

MacOS 10.15.5, Gridcoin 4.0.6.0

Git-Jiro commented 4 years ago

Hi, Did you install gridcoin via Homebrew or just use the app from the DMG file?

chuckcoleman commented 4 years ago

I used the dmg. On Monday, June 1, 2020, 11:49:59 AM EDT, Martin Schimandl notifications@github.com wrote:

Hi, Did you install gridcoin via Homebrew or just use the app from the DMG file?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Git-Jiro commented 4 years ago

I tested the DMG in my Catalina VM and it worked fine. Please try to install Gridcoin via Home brew and see if this improves the situation.

chuckcoleman commented 4 years ago

I had to turn my antivirus off so I could run the script.  I assume the correct command is "brew install ./gridcoin.rb".  It bombed.  I'm attaching the log. Another noteworthy message:

Error: A newer Command Line Tools release is available.

Update them from Software Update in System Preferences or run:

  softwareupdate --all --install --force

If that doesn't show you an update run:

  sudo rm -rf /Library/Developer/CommandLineTools   sudo xcode-select --install This occurred after I installed the new tools. Checking the Tools:

softwareupdate --all --install --force

Software Update Tool

Finding available software

No updates are available.

On Sunday, June 7, 2020, 06:31:38 AM EDT, Martin Schimandl <notifications@github.com> wrote:  

I tested the DMG in my Catalina VM and it worked fine. Please try to install Gridcoin via Home brew and see if this improves the situation.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

chuckcoleman commented 4 years ago

The attachment On Sunday, June 7, 2020, 03:56:44 PM EDT, Chuck Coleman chuckcoleman@yahoo.com wrote:

I had to turn my antivirus off so I could run the script.  I assume the correct command is "brew install ./gridcoin.rb".  It bombed.  I'm attaching the log. Another noteworthy message:

Error: A newer Command Line Tools release is available.

Update them from Software Update in System Preferences or run:

  softwareupdate --all --install --force

If that doesn't show you an update run:

  sudo rm -rf /Library/Developer/CommandLineTools   sudo xcode-select --install This occurred after I installed the new tools. Checking the Tools:

softwareupdate --all --install --force

Software Update Tool

Finding available software

No updates are available.

On Sunday, June 7, 2020, 06:31:38 AM EDT, Martin Schimandl <notifications@github.com> wrote:  

I tested the DMG in my Catalina VM and it worked fine. Please try to install Gridcoin via Home brew and see if this improves the situation.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Git-Jiro commented 4 years ago

Hi! You got the command almost right.

correct commands:

brew tap Git-Jiro/jiro

you probably already did this.

and then this:

brew install girdcoin

The messages regarding XCode come directly from home brew. I cannot do anything about them.

chuckcoleman commented 4 years ago

I followed the revised instructions and Gridcoin still died. BTW, as you can see, I have little experience with homebrew.  Thanks for the education! On Monday, June 8, 2020, 10:57:55 AM EDT, Martin Schimandl notifications@github.com wrote:

Hi! You got the command almost right.

correct commands:

brew tap Git-Jiro/jiro

you probably already did this.

and then this:

brew install girdcoin

The messages regarding XCode come directly from home brew. I cannot do anything about them.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

chuckcoleman commented 4 years ago

I just noticed this at the bottom of brew's messages:

==> make appbundle

==> Caveats

--HEAD uses Gridcoin's development branch.

--devel uses Gridcoin's staging branch.

Please refer to https://github.com/gridcoin/Gridcoin-Research/blob/master/README.md for Gridcoin's branching strategy

==> Summary

🍺  /usr/local/Cellar/gridcoin/4.0.6.0: 11 files, 6.9MB, built in 10 minutes 32 seconds

==> Caveats

==> gridcoin

--HEAD uses Gridcoin's development branch.

--devel uses Gridcoin's staging branch. Please refer to https://github.com/gridcoin/Gridcoin-Research/blob/master/README.md for Gridcoin's branching strategy On Monday, June 8, 2020, 10:57:55 AM EDT, Martin Schimandl notifications@github.com wrote:

Hi! You got the command almost right.

correct commands:

brew tap Git-Jiro/jiro

you probably already did this.

and then this:

brew install girdcoin

The messages regarding XCode come directly from home brew. I cannot do anything about them.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Git-Jiro commented 4 years ago

Hm..., since it still does not work I have a new theory: Maybe something is wrong with your gridcoin config files?

Backup your gridcoinsearch.conf, your wallet.dat and maybe the rest of the files in the Gridcoin config folder. Then try to start Gridcoin with all those files out of the way and see what happens.

The files are usually located here

/Users/YOURUSERNAME/Library/Application Support/GridcoinResearch

chuckcoleman commented 4 years ago

So far, so good.  After verifying that it would run, I jump-started it with the blockchain snapshot.  That's been running for several minutes. On Monday, June 8, 2020, 03:34:37 PM EDT, Martin Schimandl notifications@github.com wrote:

Hm..., since it still does not work I have a new theory: Maybe something is wrong with your gridcoin config files?

Backup your gridcoinsearch.conf, your wallet.dat and maybe the rest of the files in the Gridcoin config folder. Then try to start Gridcoin with all those files out of the way and see what happens.

The files are usually located here

/Users/YOURUSERNAME/Library/Application Support/GridcoinResearch

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

chuckcoleman commented 4 years ago

Gridcoin died overnight.  Now when I start it, it goes as far as "Loading Block Index", then dies. On Monday, June 8, 2020, 04:10:37 PM EDT, Chuck Coleman chuckcoleman@yahoo.com wrote:

So far, so good.  After verifying that it would run, I jump-started it with the blockchain snapshot.  That's been running for several minutes. On Monday, June 8, 2020, 03:34:37 PM EDT, Martin Schimandl notifications@github.com wrote:

Hm..., since it still does not work I have a new theory: Maybe something is wrong with your gridcoin config files?

Backup your gridcoinsearch.conf, your wallet.dat and maybe the rest of the files in the Gridcoin config folder. Then try to start Gridcoin with all those files out of the way and see what happens.

The files are usually located here

/Users/YOURUSERNAME/Library/Application Support/GridcoinResearch

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Git-Jiro commented 4 years ago

Hm ... that now sounds like a more general problem with the Gridcoin client and not something that is related to the MacOS port only.

Please try to reach someone in the greater Gridcoin community to help with this issue: A good start to reach the community is here: https://gridcoin.us/contact.htm

chuckcoleman commented 4 years ago

For the hell of it, I decided to reinstall gridcoin. After updating Xcode and Xcode command line tools, I got this:

$ brew reinstall gridcoin Warning: Calling 'devel' blocks in formulae is deprecated! Use 'head' blocks or @-versioned formulae instead. Please report this issue to the git-jiro/jiro tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it: /usr/local/Homebrew/Library/Taps/git-jiro/homebrew-jiro/gridcoin.rb:40

==> Downloading https://github.com/gridcoin/Gridcoin-Research/archive/4.0.6.0.ta Already downloaded: /Users/Common 1/Library/Caches/Homebrew/downloads/35608aee62c85e90ff6309de22cd7359ad3dea0bb19db01fda97c9f5f0fe0cbd--Gridcoin-Research-4.0.6.0.tar.gz ==> Reinstalling git-jiro/jiro/gridcoin Warning: Calling 'devel' blocks in formulae is deprecated! Use 'head' blocks or @-versioned formulae instead. Please report this issue to the git-jiro/jiro tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it: /usr/local/Homebrew/Library/Taps/git-jiro/homebrew-jiro/gridcoin.rb:40

==> Patching (Patch is indented 6 spaces.) patching file configure.ac Hunk #1 succeeded at 863 with fuzz 2 (offset 40 lines). Hunk #2 succeeded at 1278 with fuzz 2 (offset 113 lines). ==> ./autogen.sh ==> unset OBJCXX ; ./configure ==> make appbundle Last 15 lines from /Users/Common 1/Library/Logs/Homebrew/gridcoin/03.make: QPainterPath p; ^ /usr/local/Cellar/qt/5.15.0/lib/QtGui.framework/Headers/qmatrix.h:54:7: note: forward declaration of 'QPainterPath' class QPainterPath; ^ qt/trafficgraphwidget.cpp:106:22: error: variable has incomplete type 'QPainterPath' QPainterPath p; ^ /usr/local/Cellar/qt/5.15.0/lib/QtGui.framework/Headers/qmatrix.h:54:7: note: forward declaration of 'QPainterPath' class QPainterPath; ^ 5 errors generated. make[1]: [qt/libgridcoinqt_a-trafficgraphwidget.o] Error 1 make[1]: Waiting for unfinished jobs.... make: *** [src/qt/gridcoinresearch] Error 2

Git-Jiro commented 4 years ago

Hm ... at first glance that looks like either the new xcode is not compatible with Qt anymore or homebrew upgraded your version of Qt that is not compatible with Gridcoin anymore.

I will try to reproduce this issue.

Git-Jiro commented 4 years ago

I was able to reproduce the issue in my macOS 10.15.5. VM. Here is what i did:

brew upgrade brew reinstall gridcoin I didn't change my XCode version (VM just uses XCode command line tools) and still got the problem. So it looks like it is indeed a problem with the newer version of Qt in Homebrew.

Git-Jiro commented 4 years ago

Problem fixed, please try again to install gridcoin

wilkart commented 3 years ago

Possibly there will be more coming. At least on macOS 10.15.6 does not build. First error I have

  CXX      qt/libgridcoinqt_a-diagnosticsdialog.o
qt/clientmodel.cpp:273:100: error: use of undeclared identifier '_1'
18 errors generated.
make[1]: *** [qt/libgridcoinqt_a-clientmodel.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [src/qt/gridcoinresearch] Error 2

==> Formula
Tap: git-jiro/jiro
Path: /usr/local/Homebrew/Library/Taps/git-jiro/homebrew-jiro/gridcoin.rb
==> Configuration
HOMEBREW_VERSION: 2.4.9
ORIGIN: https://github.com/Homebrew/brew
HEAD: e6b066a3d9fc5435009428fcd2855fddf9b455c0
Last commit: 7 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 4dd70f5094ae30ba6e00f30184445cbfc725a127
Core tap last commit: 2 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_MAKE_JOBS: 8
CPU: octa-core 64-bit ivybridge
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
Clang: 11.0 build 1103
Git: 2.28.0 => /usr/local/bin/git
Curl: 7.64.1 => /usr/bin/curl
Java: 1.8.0_45
macOS: 10.15.6-x86_64
CLT: N/A
Xcode: 11.6
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /usr/local/opt/icu4c:/usr/local/opt/berkeley-db@4:/usr/local/opt/openssl@1.1:/usr/local/opt/qt:/usr/local
CMAKE_INCLUDE_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/apache2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
CMAKE_FRAMEWORK_PATH: /usr/local/opt/qt/Frameworks:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks
PKG_CONFIG_PATH: /usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/gperftools/lib/pkgconfig:/usr/local/opt/openssl@1.1/lib/pkgconfig:/usr/local/opt/miniupnpc/lib/pkgconfig:/usr/local/opt/libzip/lib/pkgconfig:/usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/qrencode/lib/pkgconfig:/usr/local/opt/qt/lib/pkgconfig:/usr/local/opt/librsvg/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.15
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/local/opt/icu4c/bin:/usr/local/opt/berkeley-db@4/bin:/usr/local/opt/gperftools/bin:/usr/local/opt/leveldb/bin:/usr/local/opt/openssl@1.1/bin:/usr/local/opt/miniupnpc/bin:/usr/local/opt/libzip/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/libpng/bin:/usr/local/opt/qrencode/bin:/usr/local/opt/qt/bin:/usr/local/opt/autoconf/bin:/usr/local/opt/automake/bin:/usr/local/opt/libtool/bin:/usr/local/opt/librsvg/bin:/usr/bin:/bin:/usr/sbin:/sbin
ZigzagoonBalloon commented 3 years ago

I've encountered the same error message as Chuck in 10.15.7 about the outdated dev tools. Ran the recommended commands to reinstall them and got these errors afterwards.

brew install gridcoin ... make appbundle Last 15 lines from /Users/ziggy/Library/Logs/Homebrew/gridcoin/05.make: mkdir: gridcoinresearch.app/Contents: File exists mkdir: gridcoinresearch.app: File exists mkdir: gridcoinresearch.app/Contents: File exists mkdir: gridcoinresearch.app/Contents/Resources: File exists mkdir: gridcoinresearch.app: File exists mkdir: gridcoinresearch.app/Contents: File exists mkdir: gridcoinresearch.app/Contents/Resources: File exists /usr/bin/install -c -m 644 src/qt/res/icons/gridcoin.icns gridcoinresearch.app/Contents/Resources/gridcoin.icns echo '{ CFBundleDisplayName = "Gridcoin"; CFBundleName = "Gridcoin"; }' > gridcoinresearch.app/Contents/Resources/Base.lproj/InfoPlist.strings /usr/bin/install -c -m 644 share/qt/Info.plist gridcoinresearch.app/Contents/Info.plist fatal: not a git repository (or any of the parent directories): .git build-aux/install-sh -c -d gridcoinresearch.app/Contents/MacOS STRIPPROG="/usr/bin/strip" /bin/sh /private/tmp/gridcoin-20201202-26027-xzfg2h/Gridcoin-Research-5.1.0.0/build-aux/install-sh -c -s src/qt/gridcoinresearch gridcoinresearch.app/Contents/MacOS/gridcoinresearch cp: src/qt/gridcoinresearch: Permission denied make: *** [gridcoinresearch.app/Contents/MacOS/gridcoinresearch] Error 1

ldhacker commented 2 years ago

Getting the following error after updating to xcode 13 beta 5 and installing the associated command line tools. I also manually installed the boost system libraries in /usr/local/lib/ to no avail.

dustinhacker@Dustins-Mac-mini ~ % brew install gridcoin

Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
==> Updated Casks
Updated 3 casks.

Warning: Treating gridcoin as a formula. For the cask, use git-jiro/jiro-casks/gridcoin
Warning: You are using macOS 12.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
pre-release version.

==> Downloading https://github.com/gridcoin-community/Gridcoin-Research/archive/
Already downloaded: /Users/dustinhacker/Library/Caches/Homebrew/downloads/536008266067345a2b9b03e58d761d7c75b51a03599e5946e5828fb3b3f54507--Gridcoin-Research-5.3.2.0.tar.gz
==> Installing gridcoin from git-jiro/jiro
==> Patching
==> cd src ; ../contrib/nomacro.pl
==> ./autogen.sh
==> ./configure
Last 15 lines from /Users/dustinhacker/Library/Logs/Homebrew/gridcoin/03.configure:
checking for lrelease-qt5... no
checking for lrelease5... no
checking for lrelease... /opt/homebrew/Cellar/qt@5/5.15.2/bin/lrelease
checking for lupdate-qt5... no
checking for lupdate5... no
checking for lupdate... /opt/homebrew/Cellar/qt@5/5.15.2/bin/lupdate
checking for lconvert-qt5... no
checking for lconvert5... no
checking for lconvert... /opt/homebrew/Cellar/qt@5/5.15.2/bin/lconvert
checking whether the linker accepts -framework Foundation -framework AppKit... yes
checking whether to build Gridcoin GUI... yes (Qt5)
checking for Qt5Gui >= 5.12... yes
checking for boostlib >= 1.58.0... yes
checking whether the Boost::System library is available... yes
configure: error: Could not find a version of the boost_system library!

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

These open issues may also help:
Gridcoin does not run in MacOS Catalina 10.15.5 https://github.com/Git-Jiro/homebrew-jiro/issues/78
Gridcoin 5.1.0.0 build seems to be having issues with Big Sur https://github.com/Git-Jiro/homebrew-jiro/issues/86

Error: You are using macOS 12.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
pre-release version.
Git-Jiro commented 2 years ago

Hi! I personally do not have a MacOS 12 installation. So at the moment I am not able to reproduce the issue. But since the log output has so many warnings about your system running macOS 12, it looks like Homebrew itself is not yet fully supporting macOS 12 yet.

Git-Jiro commented 2 years ago

Other question: Instead of building Gridcoin yourself, have you tried the cask / compiled version already? https://github.com/Git-Jiro/homebrew-jiro-casks