Bitcoin Forum
May 12, 2024, 08:42:42 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to compile HBN for armv71?  (Read 646 times)
HCLivess (OP)
Legendary
*
Offline Offline

Activity: 2114
Merit: 1090


=== NODE IS OK! ==


View Profile WWW
June 01, 2015, 11:59:01 AM
Last edit: June 01, 2015, 12:46:25 PM by HCLivess
 #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

1715546562
Hero Member
*
Offline Offline

Posts: 1715546562

View Profile Personal Message (Offline)

Ignore
1715546562
Reply with quote  #2

1715546562
Report to moderator
1715546562
Hero Member
*
Offline Offline

Posts: 1715546562

View Profile Personal Message (Offline)

Ignore
1715546562
Reply with quote  #2

1715546562
Report to moderator
1715546562
Hero Member
*
Offline Offline

Posts: 1715546562

View Profile Personal Message (Offline)

Ignore
1715546562
Reply with quote  #2

1715546562
Report to moderator
"Bitcoin: mining our own business since 2009" -- Pieter Wuille
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715546562
Hero Member
*
Offline Offline

Posts: 1715546562

View Profile Personal Message (Offline)

Ignore
1715546562
Reply with quote  #2

1715546562
Report to moderator
HCLivess (OP)
Legendary
*
Offline Offline

Activity: 2114
Merit: 1090


=== NODE IS OK! ==


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

Here is the makefile:

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

elbandi
Hero Member
*****
Offline Offline

Activity: 525
Merit: 529


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 (OP)
Legendary
*
Offline Offline

Activity: 2114
Merit: 1090


=== NODE IS OK! ==


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?

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!