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

Compiling on Raspbian 10 / Raspberry Pi 4 fails #13

Open
hostingnuggets opened this issue May 16, 2021 · 0 comments
Open

Compiling on Raspbian 10 / Raspberry Pi 4 fails #13

hostingnuggets opened this issue May 16, 2021 · 0 comments

Comments

@hostingnuggets
Copy link

Hello,

I am trying to compile on Raspbian 10 with Raspberry Pi 4 8 GB latest model but unfortunately it fails. Here is the output details:

$ git clone https://github.com/m-pays/m-cpuminer-v2.git
Cloning into 'm-cpuminer-v2'...
remote: Enumerating objects: 89, done.
remote: Total 89 (delta 0), reused 0 (delta 0), pack-reused 89
Unpacking objects: 100% (89/89), done.

$ ./autogen.sh 
configure.ac:13: installing './compile'
configure.ac:4: installing './config.guess'
configure.ac:4: installing './config.sub'
configure.ac:6: installing './missing'
Makefile.am:12: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
Makefile.am: installing './depcomp'

$ ./configure CFLAGS="-O3" CXXFLAGS="-O3" && make
checking build system type... aarch64-unknown-linux-gnu
checking host system type... aarch64-unknown-linux-gnu
checking target system type... aarch64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether gcc needs -traditional... no
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/endian.h usability... no
checking sys/endian.h presence... no
checking for sys/endian.h... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for sys/sysctl.h... yes
checking whether be32dec is declared... no
checking whether le32dec is declared... no
checking whether be32enc is declared... no
checking whether le32enc is declared... no
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for getopt_long... yes
checking for json_loads in -ljansson... yes
checking for pthread_create in -lpthread... yes
checking for __gmpz_init in -lgmp... yes
checking gmp.h usability... yes
checking gmp.h presence... yes
checking for gmp.h... yes
checking for gawk... (cached) mawk
checking for curl-config... /usr/bin/curl-config
checking for the version of libcurl... 7.64.0
checking for libcurl >= version 7.15.2... yes
checking whether libcurl is usable... yes
checking for curl_free... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating compat/Makefile
config.status: creating compat/jansson/Makefile
config.status: creating m7/Makefile
config.status: creating cpuminer-config.h
config.status: executing depfiles commands
make  all-recursive
make[1]: Entering directory '/home/pi/sw/m-cpuminer-v2'
Making all in compat
make[2]: Entering directory '/home/pi/sw/m-cpuminer-v2/compat'
make[3]: Entering directory '/home/pi/sw/m-cpuminer-v2/compat'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/pi/sw/m-cpuminer-v2/compat'
make[2]: Leaving directory '/home/pi/sw/m-cpuminer-v2/compat'
Making all in m7
make[2]: Entering directory '/home/pi/sw/m-cpuminer-v2/m7'
gcc -DHAVE_CONFIG_H -I. -I..     -O3 -MT haval.o -MD -MP -MF .deps/haval.Tpo -c -o haval.o haval.c
mv -f .deps/haval.Tpo .deps/haval.Po
gcc -DHAVE_CONFIG_H -I. -I..     -O3 -MT keccak.o -MD -MP -MF .deps/keccak.Tpo -c -o keccak.o keccak.c
mv -f .deps/keccak.Tpo .deps/keccak.Po
gcc -DHAVE_CONFIG_H -I. -I..     -O3 -MT ripemd.o -MD -MP -MF .deps/ripemd.Tpo -c -o ripemd.o ripemd.c
mv -f .deps/ripemd.Tpo .deps/ripemd.Po
gcc -DHAVE_CONFIG_H -I. -I..     -O3 -MT sha2.o -MD -MP -MF .deps/sha2.Tpo -c -o sha2.o sha2.c
mv -f .deps/sha2.Tpo .deps/sha2.Po
gcc -DHAVE_CONFIG_H -I. -I..     -O3 -MT sha2big.o -MD -MP -MF .deps/sha2big.Tpo -c -o sha2big.o sha2big.c
mv -f .deps/sha2big.Tpo .deps/sha2big.Po
gcc -DHAVE_CONFIG_H -I. -I..     -O3 -MT tiger.o -MD -MP -MF .deps/tiger.Tpo -c -o tiger.o tiger.c
mv -f .deps/tiger.Tpo .deps/tiger.Po
gcc -DHAVE_CONFIG_H -I. -I..     -O3 -MT whirlpool.o -MD -MP -MF .deps/whirlpool.Tpo -c -o whirlpool.o whirlpool.c
mv -f .deps/whirlpool.Tpo .deps/whirlpool.Po
rm -f libm7m.a
ar cru libm7m.a haval.o keccak.o ripemd.o sha2.o sha2big.o tiger.o whirlpool.o 
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib libm7m.a
make[2]: Leaving directory '/home/pi/sw/m-cpuminer-v2/m7'
make[2]: Entering directory '/home/pi/sw/m-cpuminer-v2'
gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing  -I./m7 -Im7 -Ofast -march=native -flto -fuse-linker-plugin   -O3 -MT m_minerd-cpu-miner.o -MD -MP -MF .deps/m_minerd-cpu-miner.Tpo -c -o m_minerd-cpu-miner.o `test -f 'cpu-miner.c' || echo './'`cpu-miner.c
mv -f .deps/m_minerd-cpu-miner.Tpo .deps/m_minerd-cpu-miner.Po
gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing  -I./m7 -Im7 -Ofast -march=native -flto -fuse-linker-plugin   -O3 -MT m_minerd-util.o -MD -MP -MF .deps/m_minerd-util.Tpo -c -o m_minerd-util.o `test -f 'util.c' || echo './'`util.c
mv -f .deps/m_minerd-util.Tpo .deps/m_minerd-util.Po
gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing  -I./m7 -Im7 -Ofast -march=native -flto -fuse-linker-plugin   -O3 -MT m_minerd-sha2.o -MD -MP -MF .deps/m_minerd-sha2.Tpo -c -o m_minerd-sha2.o `test -f 'sha2.c' || echo './'`sha2.c
mv -f .deps/m_minerd-sha2.Tpo .deps/m_minerd-sha2.Po
gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing  -I./m7 -Im7 -Ofast -march=native -flto -fuse-linker-plugin   -O3 -MT m_minerd-scrypt.o -MD -MP -MF .deps/m_minerd-scrypt.Tpo -c -o m_minerd-scrypt.o `test -f 'scrypt.c' || echo './'`scrypt.c
mv -f .deps/m_minerd-scrypt.Tpo .deps/m_minerd-scrypt.Po
gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing  -I./m7 -Im7 -Ofast -march=native -flto -fuse-linker-plugin   -O3 -MT m_minerd-m7mhash.o -MD -MP -MF .deps/m_minerd-m7mhash.Tpo -c -o m_minerd-m7mhash.o `test -f 'm7mhash.c' || echo './'`m7mhash.c
mv -f .deps/m_minerd-m7mhash.Tpo .deps/m_minerd-m7mhash.Po
gcc  -O3 -pthread -flto -fuse-linker-plugin -Ofast  -o m-minerd m_minerd-cpu-miner.o m_minerd-util.o m_minerd-sha2.o m_minerd-scrypt.o m_minerd-m7mhash.o    -lcurl -ljansson -lpthread  m7/libm7m.a -lgmp -lcurl -lm -lgmp 
/tmp/ccSz897S.s: Assembler messages:
/tmp/ccSz897S.s:1696: This coprocessor register access is deprecated in ARMv8
/tmp/ccSz897S.s:1923: This coprocessor register access is deprecated in ARMv8
/tmp/ccSz897S.s:1952: This coprocessor register access is deprecated in ARMv8
/tmp/ccSz897S.s:1994: This coprocessor register access is deprecated in ARMv8
/tmp/ccSz897S.s:2022: This coprocessor register access is deprecated in ARMv8
/tmp/ccSz897S.s:6199: This coprocessor register access is deprecated in ARMv8
/tmp/ccSz897S.s:6345: This coprocessor register access is deprecated in ARMv8
/tmp/ccSz897S.s:6466: This coprocessor register access is deprecated in ARMv8
/tmp/ccSz897S.s:6688: This coprocessor register access is deprecated in ARMv8
/tmp/ccSz897S.s:6799: This coprocessor register access is deprecated in ARMv8
/tmp/ccSz897S.s:6818: This coprocessor register access is deprecated in ARMv8
/tmp/ccSz897S.s:7153: This coprocessor register access is deprecated in ARMv8
/tmp/ccSz897S.s:7517: This coprocessor register access is deprecated in ARMv8
/tmp/ccSz897S.s:10146: This coprocessor register access is deprecated in ARMv8
/tmp/ccSz897S.s:10211: This coprocessor register access is deprecated in ARMv8
/tmp/ccSz897S.s:10363: This coprocessor register access is deprecated in ARMv8
/tmp/ccSz897S.s:11786: This coprocessor register access is deprecated in ARMv8
/tmp/ccSz897S.s:11883: This coprocessor register access is deprecated in ARMv8
/tmp/ccSz897S.s:12274: This coprocessor register access is deprecated in ARMv8
/tmp/ccSz897S.s:12323: This coprocessor register access is deprecated in ARMv8
/tmp/ccSz897S.s:12352: This coprocessor register access is deprecated in ARMv8
/tmp/ccSz897S.s:12364: This coprocessor register access is deprecated in ARMv8
/tmp/ccSz897S.s:12428: This coprocessor register access is deprecated in ARMv8
/tmp/ccSz897S.s:12443: This coprocessor register access is deprecated in ARMv8
/usr/bin/ld: /tmp/ccMRlgJe.ltrans0.ltrans.o: in function `sha256d':
<artificial>:(.text+0x33f8): undefined reference to `sha256_transform'
/usr/bin/ld: <artificial>:(.text+0x3680): undefined reference to `sha256_transform'
/usr/bin/ld: <artificial>:(.text+0x36c0): undefined reference to `sha256_transform'
/usr/bin/ld: /tmp/ccMRlgJe.ltrans0.ltrans.o: in function `miner_thread':
<artificial>:(.text+0x7630): undefined reference to `sha256_transform'
/usr/bin/ld: <artificial>:(.text+0x76b4): undefined reference to `sha256_transform'
/usr/bin/ld: /tmp/ccMRlgJe.ltrans0.ltrans.o:<artificial>:(.text+0x77ac): more undefined references to `sha256_transform' follow
/usr/bin/ld: /tmp/ccMRlgJe.ltrans0.ltrans.o: in function `miner_thread':
<artificial>:(.text+0x798c): undefined reference to `scrypt_core'
/usr/bin/ld: <artificial>:(.text+0x799c): undefined reference to `sha256_transform'
/usr/bin/ld: <artificial>:(.text+0x79b0): undefined reference to `sha256_transform'
/usr/bin/ld: <artificial>:(.text+0x79c0): undefined reference to `sha256_transform'
/usr/bin/ld: <artificial>:(.text+0x7a00): undefined reference to `sha256_transform'
/usr/bin/ld: <artificial>:(.text+0x80e0): undefined reference to `sha256_transform'
/usr/bin/ld: <artificial>:(.text+0x8294): undefined reference to `sha256d_ms'
/usr/bin/ld: <artificial>:(.text+0x82e0): undefined reference to `sha256_transform'
/usr/bin/ld: <artificial>:(.text+0x82f8): undefined reference to `sha256_transform'
/usr/bin/ld: <artificial>:(.text+0x8330): undefined reference to `sha256_transform'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:529: m-minerd] Error 1
make[2]: Leaving directory '/home/pi/sw/m-cpuminer-v2'
make[1]: *** [Makefile:787: all-recursive] Error 1
make[1]: Leaving directory '/home/pi/sw/m-cpuminer-v2'
make: *** [Makefile:432: all] Error 2

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Raspbian
Description:	Raspbian GNU/Linux 10 (buster)
Release:	10
Codename:	buster

$ lscpu
Architecture:        aarch64
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           1
Vendor ID:           ARM
Model:               3
Model name:          Cortex-A72
Stepping:            r0p3
CPU max MHz:         1800.0000
CPU min MHz:         600.0000
BogoMIPS:            108.00
Flags:               fp asimd evtstrm crc32 cpuid

Let me know if you need more details, I am happy to help.

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

1 participant