pooler / cpuminer

CPU miner for Litecoin and Bitcoin
https://bitcointalk.org/index.php?topic=55038.0
Other
2.79k stars 1.21k forks source link

Doesn't work on a Rock64 #177

Closed ab1jx closed 5 years ago

ab1jx commented 5 years ago

I'm not sure if it's because it's ARM v8 or if it's because it's 64 bits, but using the neon option to make it do the assembly gives this config.log. Without that it just compiles the C and works, but at 0.95 k hash/sec or so. Does 1.3 on my RPI 3B.

This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake.

It was created by cpuminer configure 2.5.0, which was generated by GNU Autoconf 2.69. Invocation command line was

$ ./configure CFLAGS=-O3 -mfpu=neon

---------

Platform.

---------

hostname = rock64 uname -m = aarch64 uname -r = 4.4.132-1083-rockchip-ayufan-gfd3f12ca5fae uname -s = Linux uname -v = #1 SMP Mon Aug 6 20:30:29 UTC 2018

/usr/bin/uname -p = unknown /bin/uname -X = unknown

/bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown

PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin PATH: /root/.cargo/bin PATH: /usr/local/llvm/llvm-project/bin

-----------

Core tests.

-----------

configure:2348: checking build system type configure:2362: result: aarch64-unknown-linux-gnu configure:2382: checking host system type configure:2395: result: aarch64-unknown-linux-gnu configure:2415: checking target system type configure:2428: result: aarch64-unknown-linux-gnu configure:2472: checking for a BSD-compatible install configure:2540: result: /usr/bin/install -c configure:2551: checking whether build environment is sane configure:2606: result: yes configure:2757: checking for a thread-safe mkdir -p configure:2796: result: /bin/mkdir -p configure:2803: checking for gawk configure:2819: found /usr/bin/gawk configure:2830: result: gawk configure:2841: checking whether make sets $(MAKE) configure:2863: result: yes configure:2892: checking whether make supports nested variables configure:2909: result: yes configure:3039: checking whether to enable maintainer-specific portions of Makefiles configure:3048: result: no configure:3074: checking for style of include used by make configure:3102: result: GNU configure:3173: checking for gcc configure:3189: found /usr/bin/gcc configure:3200: result: gcc configure:3429: checking for C compiler version configure:3438: gcc --version >&5 gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516 Copyright (C) 2016 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3449: $? = 0 configure:3438: gcc -v >&5 Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/6/lto-wrapper Target: aarch64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-18+deb9u1' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --enable-plugin --enable-default-pie --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-arm64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-arm64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-arm64 --with-arch-directory=aarch64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-multiarch --enable-fix-cortex-a53-843419 --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu Thread model: posix gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) configure:3449: $? = 0 configure:3438: gcc -V >&5 gcc: error: unrecognized command line option '-V' gcc: fatal error: no input files compilation terminated. configure:3449: $? = 1 configure:3438: gcc -qversion >&5 gcc: error: unrecognized command line option '-qversion'; did you mean '--version'? gcc: fatal error: no input files compilation terminated. configure:3449: $? = 1 configure:3469: checking whether the C compiler works configure:3491: gcc -O3 -mfpu=neon conftest.c >&5 gcc: error: unrecognized command line option '-mfpu=neon' configure:3495: $? = 1 configure:3533: result: no configure: failed program was: / confdefs.h / #define PACKAGE_NAME "cpuminer" #define PACKAGE_TARNAME "cpuminer" #define PACKAGE_VERSION "2.5.0" #define PACKAGE_STRING "cpuminer 2.5.0" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define PACKAGE "cpuminer" #define VERSION "2.5.0" / end confdefs.h. /
int
main ()
{
;
return 0;
}

configure:3538: error: in /usr/src/misc/litecoin/cpuminer2019/cpuminer-master': configure:3540: error: C compiler cannot create executables Seeconfig.log' for more details

----------------

Cache variables.

----------------

ac_cv_build=aarch64-unknown-linux-gnu ac_cv_env_CCASFLAGS_set= ac_cv_env_CCASFLAGS_value= ac_cv_env_CCAS_set= ac_cv_env_CCAS_value= ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value='-O3 -mfpu=neon' ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_host=aarch64-unknown-linux-gnu ac_cv_path_install='/usr/bin/install -c' ac_cv_path_mkdir=/bin/mkdir ac_cv_prog_AWK=gawk ac_cv_prog_ac_ct_CC=gcc ac_cv_prog_make_make_set=yes ac_cv_target=aarch64-unknown-linux-gnu am_cv_make_support_nested_variables=yes

-----------------

Output variables.

-----------------

ACLOCAL='${SHELL} /usr/src/misc/litecoin/cpuminer2019/cpuminer-master/missing aclocal-1.15' ALLOCA='' AMDEPBACKSLASH='\' AMDEP_FALSE='#' AMDEP_TRUE='' AMTAR='$${TAR-tar}' AM_BACKSLASH='\' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' AM_DEFAULT_VERBOSITY='1' AM_V='$(V)' ARCH_ARM_FALSE='' ARCH_ARM_TRUE='' ARCH_PPC_FALSE='' ARCH_PPC_TRUE='' ARCH_x86_64_FALSE='' ARCH_x86_64_TRUE='' ARCH_x86_FALSE='' ARCH_x86_TRUE='' AUTOCONF='${SHELL} /usr/src/misc/litecoin/cpuminer2019/cpuminer-master/missing autoconf' AUTOHEADER='${SHELL} /usr/src/misc/litecoin/cpuminer2019/cpuminer-master/missing autoheader' AUTOMAKE='${SHELL} /usr/src/misc/litecoin/cpuminer2019/cpuminer-master/missing automake-1.15' AWK='gawk' CC='gcc' CCAS='' CCASDEPMODE='' CCASFLAGS='' CCDEPMODE='' CFLAGS='-O3 -mfpu=neon' CPP='' CPPFLAGS='' CYGPATH_W='echo' DEFS='' DEPDIR='.deps' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='' EXEEXT='' GREP='' HAVE_WINDOWS_FALSE='' HAVE_WINDOWS_TRUE='' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' JANSSON_LIBS='' LDFLAGS='' LIBCURL='' LIBCURL_CPPFLAGS='' LIBOBJS='' LIBS='' LTLIBOBJS='' MAINT='#' MAINTAINER_MODE_FALSE='' MAINTAINER_MODE_TRUE='#' MAKEINFO='${SHELL} /usr/src/misc/litecoin/cpuminer2019/cpuminer-master/missing makeinfo' MKDIR_P='/bin/mkdir -p' OBJEXT='' PACKAGE='cpuminer' PACKAGE_BUGREPORT='' PACKAGE_NAME='cpuminer' PACKAGE_STRING='cpuminer 2.5.0' PACKAGE_TARNAME='cpuminer' PACKAGE_URL='' PACKAGE_VERSION='2.5.0' PATH_SEPARATOR=':' PTHREAD_FLAGS='' PTHREAD_LIBS='' RANLIB='' SET_MAKE='' SHELL='/bin/bash' STRIP='' USE_ASM_FALSE='' USE_ASM_TRUE='' VERSION='2.5.0' WANT_JANSSON_FALSE='' WANT_JANSSON_TRUE='' WS2_LIBS='' _libcurl_config='' ac_ct_CC='gcc' amEXEEXT_FALSE='' am__EXEEXT_TRUE='' amfastdepCCAS_FALSE='' amfastdepCCAS_TRUE='' am__fastdepCC_FALSE='' amfastdepCC_TRUE='' aminclude='include' amisrc='' amleading_dot='.' am__nodep='_no' amquote='' amtar='$${TAR-tar} chof - "$$tardir"' amuntar='$${TAR-tar} xf -' bindir='${exec_prefix}/bin' build='aarch64-unknown-linux-gnu' build_alias='' build_cpu='aarch64' build_os='linux-gnu' build_vendor='unknown' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix='NONE' host='aarch64-unknown-linux-gnu' host_alias='' host_cpu='aarch64' host_os='linux-gnu' host_vendor='unknown' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' install_sh='${SHELL} /usr/src/misc/litecoin/cpuminer2019/cpuminer-master/install-sh' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' mkdir_p='$(MKDIR_P)' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='NONE' program_transform_name='s,x,x,' psdir='${docdir}' runstatedir='${localstatedir}/run' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target='aarch64-unknown-linux-gnu' target_alias='' target_cpu='aarch64' target_os='linux-gnu' target_vendor='unknown'

-----------

confdefs.h.

-----------

/ confdefs.h /

define PACKAGE_NAME "cpuminer"

define PACKAGE_TARNAME "cpuminer"

define PACKAGE_VERSION "2.5.0"

define PACKAGE_STRING "cpuminer 2.5.0"

define PACKAGE_BUGREPORT ""

define PACKAGE_URL ""

define PACKAGE "cpuminer"

define VERSION "2.5.0"

configure: exit 77

pooler commented 5 years ago

cpuminer currently has no specialized code for AArch64.

The error you're getting is explained here.

ab1jx commented 5 years ago

OK, thanks.