Bitcoin Forum
October 16, 2018, 09:44:22 PM *
News: Make sure you are not using versions of Bitcoin Core other than 0.17.0 [Torrent], 0.16.3, 0.15.2, or 0.14.3. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: How to compile HBN for armv71?  (Read 595 times)
HCLivess
Legendary
*
Offline Offline

Activity: 1526
Merit: 1062


[[[],[]],[[],[]]]


View Profile WWW
June 01, 2015, 11:59:01 AM
 #1

Hello. I am a Linux and compilation noob. Let me ask you for help. I am trying to compile Qt5 client of HBN for Linux armv71, but I have been unsuccessful so far.

The procedure is to remove

Code:
-msse2 from Makefile
#include <xmmintrin.h> from scrypt_mine.cpp

because arm has no support for sse
and then to compile using

Code:
qmake
make

However, I get stuck on the following error:

Code:
build/scrypt_mine.o: In function `scrypt(void const*, unsigned int, unsigned int*, void*)':
scrypt_mine.cpp:(.text+0x4e): undefined reference to `scrypt_core'
collect2: error: ld returned 1 exit status
make: *** [HoboNickels-qt] Error 1
linaro@allwinner:~/Downloads/HoboNickels-1.5.0.0$ scrypt_mine.cpp:(.text+0x4e): undefined reference to `scrypt_core'
-bash: syntax error near unexpected token `.text+0x4e'

I believe this is because I deleted #include <xmmintrin.h> from scrypt_mine.cpp from scrypt_mine.cpp

If anyone wants to try on Pi2 or the like, I would be grateful

here is the repo: https://github.com/Tranz5/HoboNickels
https://github.com/Tranz5/HoboNickels/blob/master/src/scrypt_mine.cpp

Bismuth - New Language, Interpretation Engines, Free Set of DAPPs https://bitcointalk.org/index.php?topic=1896497
Bitrated user: HCLivess.
1539726262
Hero Member
*
Offline Offline

Posts: 1539726262

View Profile Personal Message (Offline)

Ignore
1539726262
Reply with quote  #2

1539726262
Report to moderator
1539726262
Hero Member
*
Offline Offline

Posts: 1539726262

View Profile Personal Message (Offline)

Ignore
1539726262
Reply with quote  #2

1539726262
Report to moderator
1539726262
Hero Member
*
Offline Offline

Posts: 1539726262

View Profile Personal Message (Offline)

Ignore
1539726262
Reply with quote  #2

1539726262
Report to moderator
If you see garbage posts (off-topic, trolling, spam, no point, etc.), use the "report to moderator" links. All reports are investigated, though you will rarely be contacted about your reports.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1539726262
Hero Member
*
Offline Offline

Posts: 1539726262

View Profile Personal Message (Offline)

Ignore
1539726262
Reply with quote  #2

1539726262
Report to moderator
1539726262
Hero Member
*
Offline Offline

Posts: 1539726262

View Profile Personal Message (Offline)

Ignore
1539726262
Reply with quote  #2

1539726262
Report to moderator
1539726262
Hero Member
*
Offline Offline

Posts: 1539726262

View Profile Personal Message (Offline)

Ignore
1539726262
Reply with quote  #2

1539726262
Report to moderator
HCLivess
Legendary
*
Offline Offline

Activity: 1526
Merit: 1062


[[[],[]],[[],[]]]


View Profile WWW
June 01, 2015, 12:45:30 PM
 #2

Here is the makefile:

http://pastebin.ubuntu.com/11496402/

Bismuth - New Language, Interpretation Engines, Free Set of DAPPs https://bitcointalk.org/index.php?topic=1896497
Bitrated user: HCLivess.
elbandi
Hero Member
*****
Offline Offline

Activity: 516
Merit: 503


View Profile
June 01, 2015, 03:02:50 PM
 #3

i havent arm machine, try change this line:
https://github.com/Tranz5/HoboNickels/blob/master/src/scrypt-arm.S#L10
to this:
Code:
#if defined(__arm__)

and you your changes.
HCLivess
Legendary
*
Offline Offline

Activity: 1526
Merit: 1062


[[[],[]],[[],[]]]


View Profile WWW
June 01, 2015, 09:49:46 PM
 #4

Hello, thank you for the answer. I changed the line as you advised, but unfortunately after make clean && make, there is still the same error.
There was this issue with BTC also but it somehow got fixed. Do you have any other ideas?

Bismuth - New Language, Interpretation Engines, Free Set of DAPPs https://bitcointalk.org/index.php?topic=1896497
Bitrated user: HCLivess.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!