Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gridcoin does not run in MacOS Catalina 10.15.5 #78

Open
chuckcoleman opened this issue May 31, 2020 · 21 comments
Open

Gridcoin does not run in MacOS Catalina 10.15.5 #78

chuckcoleman opened this issue May 31, 2020 · 21 comments

Comments

@chuckcoleman
Copy link

chuckcoleman commented May 31, 2020

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
Copy link
Owner

Git-Jiro commented Jun 1, 2020

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

@chuckcoleman
Copy link
Author

chuckcoleman commented Jun 1, 2020 via email

@Git-Jiro
Copy link
Owner

Git-Jiro commented Jun 7, 2020

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
Copy link
Author

chuckcoleman commented Jun 7, 2020 via email

@chuckcoleman
Copy link
Author

chuckcoleman commented Jun 7, 2020 via email

@Git-Jiro
Copy link
Owner

Git-Jiro commented Jun 8, 2020

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
Copy link
Author

chuckcoleman commented Jun 8, 2020 via email

@chuckcoleman
Copy link
Author

chuckcoleman commented Jun 8, 2020 via email

@Git-Jiro
Copy link
Owner

Git-Jiro commented Jun 8, 2020

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
Copy link
Author

chuckcoleman commented Jun 8, 2020 via email

@chuckcoleman
Copy link
Author

chuckcoleman commented Jun 9, 2020 via email

@Git-Jiro
Copy link
Owner

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
Copy link
Author

chuckcoleman commented Jul 2, 2020

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
Copy link
Owner

Git-Jiro commented Jul 5, 2020

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
Copy link
Owner

Git-Jiro commented Jul 5, 2020

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
Copy link
Owner

Git-Jiro commented Jul 5, 2020

Problem fixed, please try again to install gridcoin

@wilkart
Copy link

wilkart commented Aug 4, 2020

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
Copy link

ZigzagoonBalloon commented Dec 2, 2020

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
Copy link

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
Copy link
Owner

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants