Git-Jiro / homebrew-jiro

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

5.2.0.0 do not work on MacOS 11.2.2 #88

Closed Shorty68DE closed 3 years ago

Shorty68DE commented 3 years ago

MacMini-Gross:~ michaelkurz$ brew upgrade ==> Upgrading 1 outdated package: git-jiro/jiro/gridcoin 5.1.0.0 -> 5.2.0.0 ==> Upgrading git-jiro/jiro/gridcoin 5.1.0.0 -> 5.2.0.0 ==> Downloading https://github.com/gridcoin-community/Gridcoin-Research/archive/ Already downloaded: /Users/michaelkurz/Library/Caches/Homebrew/downloads/f74f7e38630429b4f371c9c17c05adcdceb9e571dd796801b4b7a2e08d6a55b4--Gridcoin-Research-5.2.0.0.tar.gz ==> Patching ==> ./autogen.sh ==> ./configure --disable-asm ==> make NO_UPGRADE=1 USE_UPNP=1 USE_QRCODE=1 ==> make check ==> make appbundle Last 15 lines from /Users/michaelkurz/Library/Logs/Homebrew/gridcoin/05.make: gridcoinresearch.app/Contents: : mkdir: File exists File exists gridcoinresearch.app/Contentsmkdir: : gridcoinresearch.app/Contents: File exists File exists mkdir: gridcoinresearch.app/Contents/Resources: File exists /usr/bin/install -c -m 644 share/qt/Info.plist gridcoinresearch.app/Contents/Info.plist /usr/bin/install -c -m 644 src/qt/res/icons/gridcoin.icns gridcoinresearch.app/Contents/Resources/gridcoin.icns /Library/Developer/CommandLineTools/usr/bin/make -C src qt/gridcoinresearch build-aux/install-sh -c -d gridcoinresearch.app/Contents/Resources/Base.lproj echo '{ CFBundleDisplayName = "Gridcoin"; CFBundleName = "Gridcoin"; }' > gridcoinresearch.app/Contents/Resources/Base.lproj/InfoPlist.strings OBJCXXLD qt/gridcoinresearch ld: entry point (_main) undefined. for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: [qt/gridcoinresearch] Error 1 make: [src/qt/gridcoinresearch] Error 2

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

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

MacMini-Gross:~ michaelkurz$

Git-Jiro commented 3 years ago

That build was using QT 6. I changed the Formula so the QT version stays pinned at QT 5.

Please try to rebuild with the updated Formula and report back if it works again.

RoboticMind commented 3 years ago

@Git-Jiro I think you need to push the pin at QT 5 commit to the master branch

Shorty68DE commented 3 years ago

Thank you for your help!

The app can now be created, but the wallet does not finally synchronize.

RoboticMind commented 3 years ago

@Shorty68DE are you leaving the wallet running so it can sync? It can take a little bit of time to sync sometime especially if starting from block zero or if you were forked previously because the wallet has to get off the fork

Shorty68DE commented 3 years ago

Here a particular view from the debug protocol:

2021-03-04T21:55:05Z INFO AccrualDelta: CPID = 01f7a0f8b60fe3ebd799122ebe08043e, LastRewardHeight() = 2177938, accrual_timespan = 0, accrual = 0. 2021-03-04T21:55:10Z Received block 6ecb459cce899097148a132bf75d4cd6685fb79169160c228c825767c4c5e8b0; 2021-03-04T21:55:10Z ERROR: ReadStakedInput: tx index not found 2021-03-04T21:55:10Z ERROR: CheckProofOfStakeV8: read staked input failed 2021-03-04T21:55:10Z ERROR: AcceptBlock: invalid proof-of-stake for block 6ecb459cce899097148a132bf75d4cd6685fb79169160c228c825767c4c5e8b0, prev 8c3997405fc00be9beefd9e548114d93603eadd8d05c102e7cacd62a20d868cf 2021-03-04T21:55:10Z ERROR: ProcessBlock() : AcceptBlock FAILED 2021-03-04T21:55:20Z AddPortMapping(32749, 32749, 192.168.178.20) was not successful - code 403 (UnknownError) 2021-03-04T21:55:20Z Received block da5aba5a8b00baddf9bdc93ddfe0060eea19cdf85e19a17fd405994ceb931021; 2021-03-04T21:55:20Z ProcessBlock: ORPHAN BLOCK, prev=4c6c3fb5daddde107829e55980d98f385e8eb0f540033da8ffa4735956874513 2021-03-04T21:55:21Z Received block 6ecb459cce899097148a132bf75d4cd6685fb79169160c228c825767c4c5e8b0; 2021-03-04T21:55:21Z ERROR: ReadStakedInput: tx index not found 2021-03-04T21:55:21Z ERROR: CheckProofOfStakeV8: read staked input failed 2021-03-04T21:55:21Z ERROR: AcceptBlock: invalid proof-of-stake for block 6ecb459cce899097148a132bf75d4cd6685fb79169160c228c825767c4c5e8b0, prev 8c3997405fc00be9beefd9e548114d93603eadd8d05c102e7cacd62a20d868cf 2021-03-04T21:55:21Z ERROR: ProcessBlock() : AcceptBlock FAILED 2021-03-04T21:55:35Z INFO AccrualDelta: CPID = 01f7a0f8b60fe3ebd799122ebe08043e, LastRewardHeight() = 2177938, accrual_timespan = 0, accrual = 0. 2021-03-04T21:55:39Z Received block a8d49f2adad15559d0c52d024baa850ab6946daa75b10e7b257563b2237eff23; 2021-03-04T21:55:39Z ProcessBlock: ORPHAN BLOCK, prev=80f50a0d13e134ec96cc5cc900e5fe64c5c7ee5cb4c25eb382bedfb249318175 2021-03-04T21:55:46Z Received block 6ecb459cce899097148a132bf75d4cd6685fb79169160c228c825767c4c5e8b0; 2021-03-04T21:55:46Z ERROR: ReadStakedInput: tx index not found 2021-03-04T21:55:46Z ERROR: CheckProofOfStakeV8: read staked input failed 2021-03-04T21:55:46Z ERROR: AcceptBlock: invalid proof-of-stake for block 6ecb459cce899097148a132bf75d4cd6685fb79169160c228c825767c4c5e8b0, prev 8c3997405fc00be9beefd9e548114d93603eadd8d05c102e7cacd62a20d868cf 2021-03-04T21:55:46Z ERROR: ProcessBlock() : AcceptBlock FAILED 2021-03-04T21:56:05Z INFO AccrualDelta: CPID = 01f7a0f8b60fe3ebd799122ebe08043e, LastRewardHeight() = 2177938, accrual_timespan = 0, accrual = 0.

Shorty68DE commented 3 years ago

Recently a new version of Gridcoin was released: 5.2.1.0

Can you please also make this version available for macOS here?

Thank you!

RoboticMind commented 3 years ago

@Shorty68DE your log is what a lot of people are seeing. There's a bunch of forked v5.1 nodes that are sending a bunch of bad blocks. It's unrelated to the upgrade. If you want to speed up the wallet getting back in sync, you can either use a snapshot (File -> Snapshot) or sync from zero

Also I created a PR to update the version on here to v5.2.1.0

jamescowens commented 3 years ago

This should be closed as it was relating to a previous Mandatory.