helium / miner

Miner for the helium blockchain
Apache License 2.0
607 stars 265 forks source link

Unable to compile miner on Gentoo Linux #1071

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hello, I am having issues compiling the miner from the git repo. I've followed all of the instructions as much as I can to get packages installed on Gentoo Linux. This happens when running make. Here is the log:

./rebar3 compile
===> Verifying dependencies...
make[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
make[1]: Entering directory '/home/ethan/helium-miner/miner/_build/default/lib/exor_filter/c_src'
make[1]: '/home/ethan/helium-miner/miner/_build/default/lib/exor_filter/c_src/../priv/exor_filter.so' is up to date.
make[1]: Leaving directory '/home/ethan/helium-miner/miner/_build/default/lib/exor_filter/c_src'
   Compiling rustler v0.22.0-rc.0 (https://github.com/rusterlium/rustler.git?branch=master#e1f2e022)
   Compiling bincode v1.3.1
   Compiling ff v0.6.0
   Compiling group v0.6.0
   Compiling pairing v0.16.0
   Compiling threshold_crypto v0.4.0 (https://github.com/vihu/threshold_crypto?branch=master#255e9efc)
error: failed to run custom build command for `rustler v0.22.0-rc.0 (https://github.com/rusterlium/rustler.git?branch=master#e1f2e022)`

Caused by:
  process didn't exit successfully: `/home/ethan/helium-miner/miner/_build/default/lib/erlang_tc/_build/native/release/build/rustler-3da2129da55d160a/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at 'Erlang version 2.16 not handled, please file a a bug report.', /home/ethan/.cargo/git/checkouts/rustler-5223b693dc68be50/e1f2e02/rustler/build.rs:37:13
  stack backtrace:
     0: rust_begin_unwind
     1: std::panicking::begin_panic_fmt
     2: build_script_build::activate_versions::{{closure}}
     3: core::option::Option<T>::unwrap_or_else
     4: build_script_build::activate_versions
     5: build_script_build::main
     6: core::ops::function::FnOnce::call_once
  note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
warning: build failed, waiting for other jobs to finish...
error: build failed
===> Hook for compile failed!

make: *** [Makefile:18: compile] Error 1
ghost commented 3 years ago

Here is what my emerge info looks like:

Portage 3.0.20 (python 3.9.6-final-0, default/linux/amd64/17.1/desktop, gcc-11.2.0, glibc-2.33-r1, 5.14.4-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-5.14.4-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i5-9300H_CPU_@_2.40GHz-with-glibc2.33
KiB Mem:     7981904 total,   4091628 free
KiB Swap:    4194300 total,   3821820 free
Timestamp of repository gentoo: Wed, 15 Sep 2021 16:30:01 +0000
Head commit of repository gentoo: 522cd6e89adee59ada33211f90ef0473d7a6aa0c
Head commit of repository Drauthius: 51b4abe93138651b280def0cf8452d737934af2b

Head commit of repository librewolf: 49f0934551e68b67bca2ba83bb67e7c6a7c9f7cf

Head commit of repository matrix: b16925786e2ccbe34b1011d9f123e8c1ca4ddd61

Timestamp of repository monero: Sat, 11 Sep 2021 09:06:21 +0000
Head commit of repository monero: a7814a2f6711ca18e1312c4f46267fea332c5a59

Timestamp of repository pf4public: Wed, 15 Sep 2021 15:36:22 +0000
Head commit of repository pf4public: d5ca8441e4c9893b436d56625ba1244fb40a02ca

Head commit of repository stha09: c15d79e39f060c9f43f606ddfa8423b3563f25e1

Head commit of repository steam-overlay: d90ce0627d7c30027f4971dce6f67f22abd71e6d

sh bash 5.1_p8
ld GNU ld (Gentoo 2.36.1 p5) 2.36.1
distcc 3.4 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.34.0::gentoo
dev-lang/python:          2.7.18_p13::gentoo, 3.9.6_p2::gentoo
dev-lang/rust:            1.53.0::gentoo
dev-util/cmake:           3.20.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.43.5::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.36.1-r2::gentoo
sys-devel/gcc:            11.2.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r1::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 

Drauthius
    location: /var/db/repos/drauthius
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/user/Drauthius.git
    masters: gentoo

librewolf
    location: /var/db/repos/librewolf
    sync-type: git
    sync-uri: https://gitlab.com/librewolf-community/browser/gentoo.git
    masters: gentoo

matrix
    location: /var/db/repos/matrix
    sync-type: git
    sync-uri: https://github.com/gentoo/matrix.git
    masters: gentoo

monero
    location: /var/db/repos/monero
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/monero.git
    masters: gentoo

pf4public
    location: /var/db/repos/pf4public
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/pf4public.git
    masters: gentoo

stha09
    location: /var/db/repos/stha09
    sync-type: git
    sync-uri: https://github.com/stha09/gpo-stha09.git
    masters: gentoo

apriluwu
    location: /var/lib/layman/apriluwu
    masters: gentoo
    priority: 50

jorgicio
    location: /var/lib/layman/jorgicio
    masters: gentoo
    priority: 50

steam-overlay
    location: /usr/local/portage/steam-overlay
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE NVIDIA-CUDA CUDPP google-chrome ValveSteamLicense NVIDIA-r2 RAR free-noncomm Canon-IJ bh-luxi linux-fw-redistributable no-source-code"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=8 --load-average=8"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe -march=native"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6 -l6"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvd dvdr elogind emboss encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg kde lcms libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline samba sdl seccomp spell split-usr ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xinerama xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="es-MX" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="nvidia intel i965 iris" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
evanmcc commented 3 years ago

You're trying to compile the miner on erlang 24, which we don't currently support. We've been working on it, but it hasn't been a high priority so far. I'll update this issue when we add support. In the mean time, you can downgrade to the latest otp23 to compile and it should work.

ghost commented 3 years ago

You're trying to compile the miner on erlang 24, which we don't currently support. We've been working on it, but it hasn't been a high priority so far. I'll update this issue when we add support. In the mean time, you can downgrade to the latest otp23 to compile and it should work.

Thank you! I'll try that right now.