Bitcoin Forum
May 11, 2024, 01:29:20 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Compiling pooler cpuminer  (Read 1392 times)
Lionel (OP)
Sr. Member
****
Offline Offline

Activity: 613
Merit: 305


View Profile
November 11, 2013, 11:31:15 AM
 #1

Hi guys i need to compile pooler's cpuminer for mining scome scrypt coins with the CPU.

I've almost managed to build it successfully except a linker error: it does not find references to the routines scrypto_core, sha256_use4way and the other ones defined in the assembly files scrypt-x64.S, scrypt-x86.S, etc.

I've already compiled successfully those assemblies with gac and i have the .o files: scrypt-x86.o and sha2-x86.o
I've told the linker to include those .o files as libraries for the linkage, but to no avail.

I've opened the scrypt-x86.o with Notepad++ to find the string "scrypt_core" and it is there, so i guess there *is* the definition of scrypt_core the linker does not see.

The only modification i've made to both scrypt-x86.S and sha2-x86.S is: i've added the line
Code:
.code32
at the top of the scripts, to tell the assembler to build 32-bit code (otherwise it would raise errors for pushl and popl instructions).
Can be that the problem?
1715390960
Hero Member
*
Offline Offline

Posts: 1715390960

View Profile Personal Message (Offline)

Ignore
1715390960
Reply with quote  #2

1715390960
Report to moderator
1715390960
Hero Member
*
Offline Offline

Posts: 1715390960

View Profile Personal Message (Offline)

Ignore
1715390960
Reply with quote  #2

1715390960
Report to moderator
"The nature of Bitcoin is such that once version 0.1 was released, the core design was set in stone for the rest of its lifetime." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715390960
Hero Member
*
Offline Offline

Posts: 1715390960

View Profile Personal Message (Offline)

Ignore
1715390960
Reply with quote  #2

1715390960
Report to moderator
bee7
Hero Member
*****
Offline Offline

Activity: 574
Merit: 523


View Profile
November 11, 2013, 11:49:38 AM
 #2

Did you follow the build instructions in the README file?
Pay attention that if you get the source from the git then you have to run autogen.sh

There are prebuild binaries (check the official support topic https://bitcointalk.org/index.php?topic=55038.0).

Your AV software may detect these as viruses or some other type of backdor/mailware.
This is not true (check the sha sigs of files to make sure the binaries are not tampered to be sure).
They marked minerd as a virus as it is often appears on virus-infected machines that where made a part of botnet that mines for some "smart" guy.

P.S. And remove .code32 form the files where you put it. It is not intended to be there.


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!