Bitcoin Forum
May 02, 2024, 06:20:33 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin forks from source on ARM7  (Read 959 times)
CryptInvest (OP)
Legendary
*
Offline Offline

Activity: 2156
Merit: 1132


View Profile
July 16, 2014, 07:57:28 AM
Last edit: July 16, 2014, 09:55:39 PM by grue
 #1

Hello everybody! I want to compile one of the forks under armhs. (Tegra 250 - arm7). Maybe someone had the experience of compiling for ARM. Which version of the GCC compiler is needed? Which flags should be specified in the makefile? Thank you for your attention.
1714674033
Hero Member
*
Offline Offline

Posts: 1714674033

View Profile Personal Message (Offline)

Ignore
1714674033
Reply with quote  #2

1714674033
Report to moderator
1714674033
Hero Member
*
Offline Offline

Posts: 1714674033

View Profile Personal Message (Offline)

Ignore
1714674033
Reply with quote  #2

1714674033
Report to moderator
1714674033
Hero Member
*
Offline Offline

Posts: 1714674033

View Profile Personal Message (Offline)

Ignore
1714674033
Reply with quote  #2

1714674033
Report to moderator
In order to achieve higher forum ranks, you need both activity points and merit points.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714674033
Hero Member
*
Offline Offline

Posts: 1714674033

View Profile Personal Message (Offline)

Ignore
1714674033
Reply with quote  #2

1714674033
Report to moderator
RedDiamond
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250


View Profile
July 16, 2014, 09:25:21 AM
 #2

Bitcoin-qt has been compiled at least for Raspberry Pi having ARM processor. Here is one tutorial:
http://coincafe.net/2013/07/06/how-to-run-bitcoin-qt-on-the-raspberry-pi/
CryptInvest (OP)
Legendary
*
Offline Offline

Activity: 2156
Merit: 1132


View Profile
July 16, 2014, 10:20:16 AM
 #3

Already read the manual. When data manipulation I have an error.

src / scrypt_mine.cpp: 32:23: fatal error: xmmintrin.h: No such file or directory
compilation terminated.
make: *** [build / scrypt_mine.o] Error 1


Compile from source without a flag mmse2, use flags march = native,
-flto
RedDiamond
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250


View Profile
July 16, 2014, 03:25:33 PM
 #4

Already read the manual. When data manipulation I have an error.

src / scrypt_mine.cpp: 32:23: fatal error: xmmintrin.h: No such file or directory
compilation terminated.
make: *** [build / scrypt_mine.o] Error 1


Compile from source without a flag mmse2, use flags march = native,
-flto

Have you tried to run the 'autogen.sh ' script? Something like this:

cd bitcoin
./autogen.sh
./configure
make

RedDiamond
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250


View Profile
July 16, 2014, 06:28:46 PM
 #5

I just compiled bitcoin-cli from latest source:

src/bitcoin-cli --version
Bitcoin Core RPC client version v0.9.99.0-87e4079

file src/bitcoin-cli
src/bitcoin-cli: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, BuildID[sha1]=0x1c56f3c90ca0af63f98b7666a6b55907f765125d, not stripped

CryptInvest (OP)
Legendary
*
Offline Offline

Activity: 2156
Merit: 1132


View Profile
July 16, 2014, 08:07:24 PM
 #6

I just compiled bitcoin-cli from latest source:

src/bitcoin-cli --version
Bitcoin Core RPC client version v0.9.99.0-87e4079

file src/bitcoin-cli
src/bitcoin-cli: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, BuildID[sha1]=0x1c56f3c90ca0af63f98b7666a6b55907f765125d, not stripped



Know i know what problem with build-in miner for x86, but unknown how disable it (ver 0.8.5). Absurd of situation what this fork only POS.
RedDiamond
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250


View Profile
July 17, 2014, 04:43:13 AM
 #7

Here are my compiler settings (generated automagically by autogen and configure):

build_triplet = armv6l-unknown-linux-gnueabihf
host_triplet = armv6l-unknown-linux-gnueabihf
build = armv6l-unknown-linux-gnueabihf
build_cpu = armv6l
host = armv6l-unknown-linux-gnueabihf
host_cpu = armv6l
CC = gcc
CCACHE =
CCDEPMODE = depmode=gcc3
CFLAGS = -g -O2
CPP = gcc -E
CPPFLAGS =  -DBOOST_SPIRIT_THREADSAFE -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS -D_FILE_OFFSET_BITS=64  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
CRYPTO_CFLAGS = 
CRYPTO_LIBS = -lcrypto 
CXX = g++
CXXCPP = g++ -E
CXXDEPMODE = depmode=gcc3
CXXFLAGS = -g -O2 -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter  -Wstack-protector -fstack-protector-all -fPIE

Miner is complied like this:

$(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbitcoin_server_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbitcoin_server_a-miner.o -MD -MP -MF $(DEPDIR)/libbitcoin_server_a-miner.Tpo -c -o libbitcoin_server_a-miner.o
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!