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

ERROR - key.cpp:144:9 #101

Open
ikseles opened this issue Sep 30, 2021 · 7 comments
Open

ERROR - key.cpp:144:9 #101

ikseles opened this issue Sep 30, 2021 · 7 comments

Comments

@ikseles
Copy link

ikseles commented Sep 30, 2021

received this message after trying to install Gridcoin today using the command: brew install gridcoin

the following was generated (note not all data included such as downloading, pouring, or installing which is represented by ".........." to conserve space)

Warning: Treating gridcoin as a formula. For the cask, use git-jiro/jiro-casks/gridcoin
==> Downloading https://ghcr.io/v2/homebrew/core/m4/manifests/1.4.19
######################################################################## 100.0% ............

.............==> Downloading https://github.com/gridcoin-community/Gridcoin-Research/archive/
==> Downloading from https://codeload.github.com/gridcoin-community/Gridcoin-Res
# -#O=- # #
==> Installing gridcoin from git-jiro/jiro
Warning: Your Xcode (12.5.1) is outdated.
Please update to Xcode 13.0 (or delete it).
Xcode can be updated from the App Store.

==> Installing dependencies for git-jiro/jiro/gridcoin: m4, autoconf, automake, libpng, freetype, fontconfig, gettext, libffi, pcre, gdbm, mpdecimal, openssl@1.1, readline, sqlite, xz, python@3.9, glib, pkg-config, libpthread-stubs, xorgproto, libxau, libxdmcp, libxcb, libx11, libxext, libxrender, lzo, pixman, cairo, jpeg, libtiff, gdk-pixbuf, fribidi, gobject-introspection, graphite2, icu4c, harfbuzz, pango, librsvg, libtool, berkeley-db@4, boost, gperftools, snappy, leveldb, zstd, libzip, miniupnpc, openssl, qt@5 and qrencode
==> Installing git-jiro/jiro/gridcoin dependency: m4
==> Pouring m4--1.4.19.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/m4/1.4.19: 13 files, 724.4KB ...........

...........==> Installing git-jiro/jiro/gridcoin
==> Patching
==> cd src ; ../contrib/nomacro.pl
==> ./autogen.sh
==> ./configure
==> make NO_UPGRADE=1 USE_UPNP=1 USE_QRCODE=1
Last 15 lines from /Users/USERNAME/Library/Logs/Homebrew/gridcoin/04.make:
CXX gridcoin/libgridcoin_util_a-superblock.o
CXX gridcoin/libgridcoin_util_a-tally.o
CXX gridcoin/libgridcoin_util_a-tx_message.o
CXX gridcoin/libgridcoin_util_a-upgrade.o
CXX libgridcoin_util_a-init.o
CXX libgridcoin_util_a-key.o
key.cpp:144:9: error: invalid argument type 'void' to unary expression
if (!BN_zero(zero)) { ret=-1; goto err; }
^~~~~~~~~~~~~~
CXX libgridcoin_util_a-keystore.o
1 error generated.
make[2]: *** [libgridcoin_util_a-key.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

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 #78

Error: Your Xcode (12.5.1) is outdated.
Please update to Xcode 13.0 (or delete it).
Xcode can be updated from the App Store.

and yes I am currently updated my Xcode since it is out of date

@Git-Jiro
Copy link
Owner

Git-Jiro commented Oct 1, 2021

Hi!
Which macOS version are you running on your machine?

As a quick fix you can also try if the cask 'git-jiro/jiro-casks/gridcoin' works fine for you instead.
Since the cask is a pre-compiled version of gridcoin there is no need to compile it yourself.

@ikseles
Copy link
Author

ikseles commented Oct 23, 2021

-running Big Sur v11.6
-I tried your suggestion 'git-jiro/jiro-casks/gridcoin' and grid coin installed
-when I attempt to run gridcoin I get the following message.

Error: Cannot read configuration file. Please check the path and format of the file

-when I look for the Gridcoin folder under "/users/USER/Library/Application Support/" there is no folder relating to gridcoin at all

@Git-Jiro
Copy link
Owner

The folder should be "/users/USER/Library/Application Support/GridcoinResearch" and the config file is "gridcoinresearch.conf"

a minimal configfile would look like:
email=your.email.address@here

@Git-Jiro
Copy link
Owner

here are the other details of the config file: https://gridcoin.us/wiki/config-file.html

@ikseles
Copy link
Author

ikseles commented Oct 23, 2021

The folder should be "/users/USER/Library/Application Support/GridcoinResearch" and the config file is "gridcoinresearch.conf"

a minimal configfile would look like: email=your.email.address@here

the folder is not located at the specified place you referenced. I searched my computer for the config file "gridcoinresearch.conf" and one is not found. I tried to add the gridcoin research folder manually (right click -> add new folder->...) to the application support file but the OS will not allow it.

Is there a command I can run in Terminal to build that file and everything that is suppose to be contained in it?

Please forgive me I'm new to programming.

@Git-Jiro
Copy link
Owner

Ok, then we just found the problem!
I just tried to create a random folder under "/users/USER/Library/Application Support/" via Finder and that worked without any issues.

As far as I know Girdcoin usually creates the folder itself, and since you are not allowed to create the folder, Gridcoin most probably is also not allowed to create the folder.

I am not yet sure how to fix that issue on your machine.

@Git-Jiro
Copy link
Owner

Maybe you can try to use "First Aid" function in "Disk Utility" to try to repair the file system permissions?
But make a system backup first, because you never know.

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

2 participants