nwoolls / homebrew-xgminer

Homebrew formulas for CGMiner and BFGMiner
35 stars 28 forks source link

Error while installing cgminer #17

Open Jonathan-Rosewood opened 7 years ago

Jonathan-Rosewood commented 7 years ago

jonathan@iMac-Jonathan  ~  brew install cgminer Updating Homebrew... ==> Auto-updated Homebrew! Updated 2 taps (homebrew/core, homebrew/php). ==> New Formulae bitcoin iamy docker2aci insect erlang@19 jose faas-cli libopusenc freedink mruby-cli gradle-completion neovim homebrew/php/php72-mongodb pycodestyle ==> Updated Formulae afflib homebrew/php/php72-opcache afl-fuzz homebrew/php/php72-pcntl amazon-ecs-cli homebrew/php/php72-pdo-dblib amqp-cpp homebrew/php/php72-pdo-pgsql angular-cli homebrew/php/phpdox ansifilter homebrew/php/psysh ansiweather httpflow antigen huexpress app-engine-go-64 hugo app-engine-java hyperscan appscale-tools ideviceinstaller arangodb influxdb archi-steam-farm jboss-forge artifactory jenkins automake jenkins-lts aws-sdk-cpp jetty awscli jetty-runner bluepill jhipster cairo jruby camlp4 jsonnet chakra kibana checkstyle kitchen-sync chronograf knot cimg knot-resolver cjdns kops cmocka kotlin collector-sidecar kubernetes-cli compcert kubernetes-helm conan languagetool convox latexila couchdb leaps csmith libgosu dar libhttpseverywhere dcos-cli libnfs dhall-json libphonenumber dieharder libqalculate docker-compose libtensorflow docker-compose-completion libzip docker-credential-helper llnode docker-machine-driver-vultr logstash ebook-tools lsdvd eigen luvit elasticsearch macvim elixir mapcrafter erlang mcabber etcd menhir expat meson fabric metricbeat feedgnuplot mgba fibjs minisat ficy mockserver filebeat msgpack fio n fits ndpi flatbuffers neofetch flowgrind ocaml fluent-bit ocamlbuild folly ocamlsdl format-udf openh264 freetds openrct2 fsql openttd fuse-zip openvpn fuseki opus gammu orientdb gauge oscats gegl osquery getdns osrm-backend ghostscript packer git packetbeat git-annex paket git-ftp parallel gitlab-ci-multi-runner passenger gjs pdf-redact-tools glib pdftoedn gmic pegtl gnome-recipes perl gnuradio pike gsl planck gsmartcontrol pmd gtk+3 postgrest gtkmm3 ppsspp gtksourceview3 prest gucharmap presto haproxy pwntools heroku pyenv hg-fast-export pyinvoke highlight qt homebrew/php/phan@0.8 rabbitmq homebrew/php/php-code-sniffer rbenv homebrew/php/php53-timecop rex homebrew/php/php54-imagick rmlint homebrew/php/php54-timecop roswell homebrew/php/php55-imagick rustup-init homebrew/php/php55-timecop scipy homebrew/php/php56-imagick securefs homebrew/php/php56-timecop source-to-image homebrew/php/php70 sourcery homebrew/php/php70-ast srtp homebrew/php/php70-gmp subversion homebrew/php/php70-imagick svgcleaner homebrew/php/php70-intl swiftformat homebrew/php/php70-mcrypt swiftlint homebrew/php/php70-opcache syncthing-inotify homebrew/php/php70-pcntl tee-clc homebrew/php/php70-pdo-dblib teleport homebrew/php/php70-pdo-pgsql terragrunt homebrew/php/php70-pspell texinfo homebrew/php/php70-snmp tinyxml2 homebrew/php/php70-tidy tldr homebrew/php/php70-timecop translate-toolkit homebrew/php/php71 ttyd homebrew/php/php71-gmp twarc homebrew/php/php71-imagick unrar homebrew/php/php71-intl valgrind homebrew/php/php71-mcrypt vert.x homebrew/php/php71-opcache vim homebrew/php/php71-pcntl vim@7.4 homebrew/php/php71-pdo-dblib wartremover homebrew/php/php71-pdo-pgsql webpack homebrew/php/php71-pspell yaws homebrew/php/php71-snmp ykneomgr homebrew/php/php71-tidy yle-dl homebrew/php/php71-timecop youtube-dl homebrew/php/php72 zsh ✔ ==> Renamed Formulae osh -> etsh

Error: No available formula with the name "cgminer" ==> Searching for a previously deleted formula... Warning: homebrew/core is shallow clone. To get complete history run: git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found. ==> Searching for similarly named formulae... Error: No similarly named formulae found. ==> Searching taps... Error: No formulae found in taps. ✘ jonathan@iMac-Jonathan  ~  brew update Already up-to-date. jonathan@iMac-Jonathan  ~  brew upgrade ==> Upgrading 3 outdated packages, with result: node 8.1.2, sqlite 3.19.3, zsh 5.3.1_1 ==> Upgrading sqlite ==> Downloading https://homebrew.bintray.com/bottles/sqlite-3.19.3.sierra.bottle ==> Downloading from https://akamai.bintray.com/19/196672a2e3e23b53f0237b200959f ######################################################################## 100,0% ==> Pouring sqlite-3.19.3.sierra.bottle.tar.gz ==> Using the sandbox ==> Caveats This formula is keg-only, which means it was not symlinked into /usr/local, because macOS provides an older sqlite3.

If you need to have this software first in your PATH run: echo 'export PATH="/usr/local/opt/sqlite/bin:$PATH"' >> ~/.zshrc

For compilers to find this software you may need to set: LDFLAGS: -L/usr/local/opt/sqlite/lib CPPFLAGS: -I/usr/local/opt/sqlite/include

==> Summary 🍺 /usr/local/Cellar/sqlite/3.19.3: 12 files, 2.9MB ==> Upgrading node ==> Downloading https://homebrew.bintray.com/bottles/node-8.1.2.sierra.bottle.ta ==> Downloading from https://akamai.bintray.com/9b/9bd39ffe728cdab31708cbb0a9b1f ######################################################################## 100,0% ==> Pouring node-8.1.2.sierra.bottle.tar.gz ==> Caveats Bash completion has been installed to: /usr/local/etc/bash_completion.d ==> Summary 🍺 /usr/local/Cellar/node/8.1.2: 3,782 files, 45.9MB ==> Upgrading zsh ==> Downloading https://homebrew.bintray.com/bottles/zsh-5.3.1_1.sierra.bottle.t ==> Downloading from https://akamai.bintray.com/d2/d2d06b18e4d6daccc5d2e344ecc6c ######################################################################## 100,0% ==> Pouring zsh-5.3.1_1.sierra.bottle.tar.gz 🍺 /usr/local/Cellar/zsh/5.3.1_1: 1,202 files, 8.5MB jonathan@iMac-Jonathan  ~  brew tap nwoolls/xgminer ==> Tapping nwoolls/xgminer Cloning into '/usr/local/Homebrew/Library/Taps/nwoolls/homebrew-xgminer'... remote: Counting objects: 6, done. remote: Compressing objects: 100% (6/6), done. remote: Total 6 (delta 1), reused 2 (delta 0), pack-reused 0 Unpacking objects: 100% (6/6), done. Tapped 3 formulae (32 files, 26.9KB) jonathan@iMac-Jonathan  ~  brew install cgminer ==> Installing cgminer from nwoolls/xgminer ==> Installing dependencies for nwoolls/xgminer/cgminer: autoconf, automake, libtool, pkg-config, coreutils, curl ==> Installing nwoolls/xgminer/cgminer dependency: autoconf ==> Downloading https://homebrew.bintray.com/bottles/autoconf-2.69.sierra.bottle ==> Downloading from https://akamai.bintray.com/a7/a76fca79a00f733c1c9f75600b906 ######################################################################## 100,0% ==> Pouring autoconf-2.69.sierra.bottle.4.tar.gz ==> Using the sandbox ==> Caveats Emacs Lisp files have been installed to: /usr/local/share/emacs/site-lisp/autoconf ==> Summary 🍺 /usr/local/Cellar/autoconf/2.69: 70 files, 3.0MB ==> Installing nwoolls/xgminer/cgminer dependency: automake ==> Downloading https://homebrew.bintray.com/bottles/automake-1.15.1.sierra.bott ==> Downloading from https://akamai.bintray.com/d2/d2b27ce7782a966eb7c8570f7855c ######################################################################## 100,0% ==> Pouring automake-1.15.1.sierra.bottle.tar.gz 🍺 /usr/local/Cellar/automake/1.15.1: 131 files, 3.0MB ==> Installing nwoolls/xgminer/cgminer dependency: libtool ==> Downloading https://homebrew.bintray.com/bottles/libtool-2.4.6_1.sierra.bott ==> Downloading from https://akamai.bintray.com/78/78a1f6c6644eae01eb5c204ef705f ######################################################################## 100,0% ==> Pouring libtool-2.4.6_1.sierra.bottle.tar.gz ==> Caveats In order to prevent conflicts with Apple's own libtool we have prepended a "g" so, you have instead: glibtool and glibtoolize. ==> Summary 🍺 /usr/local/Cellar/libtool/2.4.6_1: 70 files, 3.7MB ==> Installing nwoolls/xgminer/cgminer dependency: pkg-config ==> Downloading https://homebrew.bintray.com/bottles/pkg-config-0.29.2.sierra.bo ==> Downloading from https://akamai.bintray.com/8e/8eb723bfc03cd468d779d54d015d4 ######################################################################## 100,0% ==> Pouring pkg-config-0.29.2.sierra.bottle.tar.gz 🍺 /usr/local/Cellar/pkg-config/0.29.2: 11 files, 627KB ==> Installing nwoolls/xgminer/cgminer dependency: coreutils ==> Downloading https://homebrew.bintray.com/bottles/coreutils-8.27.sierra.bottl ==> Downloading from https://akamai.bintray.com/a9/a951d21ffbf3407ca84356d369ed6 ######################################################################## 100,0% ==> Pouring coreutils-8.27.sierra.bottle.tar.gz ==> Caveats All commands have been installed with the prefix 'g'.

If you really need to use these commands with their normal names, you can add a "gnubin" directory to your PATH from your bashrc like:

PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"

Additionally, you can access their man pages with normal names if you add the "gnuman" directory to your MANPATH from your bashrc as well:

MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"

==> Summary 🍺 /usr/local/Cellar/coreutils/8.27: 430 files, 7.9MB ==> Installing nwoolls/xgminer/cgminer dependency: curl ==> Downloading https://homebrew.bintray.com/bottles/curl-7.54.1.sierra.bottle.t ==> Downloading from https://akamai.bintray.com/b6/b6c492bfdd98304a483536115266c ######################################################################## 100,0% ==> Pouring curl-7.54.1.sierra.bottle.tar.gz ==> Caveats This formula is keg-only, which means it was not symlinked into /usr/local, because macOS already provides this software and installing another version in parallel can cause all kinds of trouble.

If you need to have this software first in your PATH run: echo 'export PATH="/usr/local/opt/curl/bin:$PATH"' >> ~/.zshrc

For compilers to find this software you may need to set: LDFLAGS: -L/usr/local/opt/curl/lib CPPFLAGS: -I/usr/local/opt/curl/include For pkg-config to find this software you may need to set: PKG_CONFIG_PATH: /usr/local/opt/curl/lib/pkgconfig

==> Summary 🍺 /usr/local/Cellar/curl/7.54.1: 392 files, 2.8MB ==> Installing nwoolls/xgminer/cgminer ==> Downloading https://github.com/ckolivas/cgminer/archive/v4.9.1.tar.gz ==> Downloading from https://codeload.github.com/ckolivas/cgminer/tar.gz/v4.9.1 ######################################################################## 100,0% ==> autoreconf -fvi ==> ./autogen.sh --disable-debug --disable-dependency-tracking --prefix=/usr/loc ==> make install Last 15 lines from /Volumes/Storage/Users/jonathan/Library/Logs/Homebrew/cgminer/03.make: CC opt/libccan_a-usage.o AR libccan.a make[2]: Nothing to be done for install-exec-am'. make[2]: Nothing to be done forinstall-data-am'. CC cgminer-cgminer.o CC cgminer-util.o CC cgminer-sha2.o CC cgminer-api.o util.c:1434:42: error: use of undeclared identifier 'TIMER_ABSTIME' ret = clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, ts_end, NULL); ^ 1 error generated. make[1]: [cgminer-util.o] Error 1 make[1]: Waiting for unfinished jobs.... make: *** [install-recursive] Error 1

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

mradentz commented 6 years ago

same here

redvulps commented 6 years ago

tried today, got same error :c

NickRHR commented 6 years ago

same pb

nkamitaki commented 6 years ago

This seems to be a linux-specific function not implemented in Mac OSX:

https://stackoverflow.com/questions/11680461/monotonic-clock-on-osx

that was fixed as of cgminer v4.10.0:

https://github.com/ckolivas/cgminer/commit/a40cb506754171548681294a5a4f848bc6f0acc3

A quick and dirty fix to the existing v4.9.1 brew formula would be adding the following, which seems to compile correctly:

inreplace "util.c", "#if defined(CLOCK_MONOTONIC) && !defined(FreeBSD)", "#if defined(CLOCK_MONOTONIC) && !defined(FreeBSD) && !defined(APPLE)"

On the other hand it may be worthwhile to switch to v4.10.0 as it fixes this and more. However, while v4.10.0 compiles successfully, I get a segfault when writing to a cgminer config file with --enable-icarus. No trouble reading config files with or without --enable-icarus and everything else seems to work fine when enabled.

If I had to guess, possibly something with JSON parsing of --icarus-options and/or --icarus-timing, but haven't dug into it beyond confirming it as the problem setting. I assume it is widely used, so perhaps make it optional w/ segfault detail mentioned as caveat until someone identifies the cause or if it's something particular to my setup?