Pages:
Author

Topic: Ufasoft Miner - Windows/Linux, x86/x64, SSE2/OpenCL, Open Source - page 45. (Read 630787 times)

sr. member
Activity: 404
Merit: 251
ufasoft - so many of us are having trouble compiling the Linux sources, how about just posting a link to binaries for core2duo on linux.

There are problems with -static building of application.
Without -static it will work only on system, where it was compiled.
newbie
Activity: 40
Merit: 0
 Sad Sad Sad
ufasoft - so many of us are having trouble compiling the Linux sources, how about just posting a link to binaries for core2duo on linux.

I am having the same JWASM problems as mentioned in a few posts before.
I am trying to compile on a machine which i don't have root on too.

Please just post a linux binary.

Thanks,

thedrs
sr. member
Activity: 404
Merit: 251
Пocтaвил нa CentOS 5.5 в кaчecтвe aльтepнaтивнoгo gcc-4.6.0, нo нe пoлyчaeтcя cкoмпилиpoвaть, чтo peкoмeндyeтe?

I guess the code compatible with g++ 4.5, but not with 4.6 yet.
Thank you, I will improve it soon.
newbie
Activity: 32
Merit: 0

Пocтaвил нa CentOS 5.5 в кaчecтвe aльтepнaтивнoгo gcc-4.6.0, нo нe пoлyчaeтcя cкoмпилиpoвaть, чтo peкoмeндyeтe?

 make
g++460 -DPACKAGE_NAME=\"ufasoft_bitcoin-miner\" -DPACKAGE_TARNAME=\"ufasoft_bitcoin-miner\" -DPACKAGE_VERSION=\"0.8\" -DPACKAGE_STRING=\"ufasoft_bitcoin-miner\ 0.8\" -DPACKAGE_BUGREPORT=\"[email protected]\" -DPACKAGE_URL=\"http://ufasoft.com/open/bitcoin\" -DPACKAGE=\"ufasoft_bitcoin-miner\" -DVERSION=\"0.8\" -DHAVE_LIBPCRE=1 -DHAVE_LIBPTHREAD=1 -DHAVE_LIBCURL=1 -DHAVE_LIBDL=1 -DHAVE_LIBRT=1 -I.    -std=c++0x -funsigned-char -fno-stack-protector -Wno-invalid-offsetof -I . -I el/inc -g -O2 -MT bitcoin-miner.o -MD -MP -MF .deps/bitcoin-miner.Tpo -c -o bitcoin-miner.o bitcoin-miner.cpp
In file included from el/inc/../libext/ext-cpp.h:75:0,
                 from el/inc/libext.h:1660,
                 from el/inc/ext.h:28,
                 from bitcoin-miner.cpp:19:
el/inc/../libext/cpp-old.h:64:22: error: expected unqualified-id before ‘nullptr’
In file included from /opt/gcc460/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/utility:69:0,
                 from /opt/gcc460/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/algorithm:61,
                 from el/inc/../libext/ext-cpp.h:119,
                 from el/inc/libext.h:1660,
                 from el/inc/ext.h:28,
                 from bitcoin-miner.cpp:19:
/opt/gcc460/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/x86_64-unknown-linux-gnu/bits/c++config.h:159:29: error: conflicting declaration ‘typedefstd::nullptr_t std::nullptr_t’
el/inc/../libext/cpp-old.h:52:7: error: ‘class std::nullptr_t’ has a previous declaration as ‘class std::nullptr_t’
In file included from el/inc/../libext/ext-cpp.h:537:0,
                 from el/inc/libext.h:1660,
                 from el/inc/ext.h:28,
                 from bitcoin-miner.cpp:19:
el/inc/../libext/ext-string.h: In member function ‘Ext::String& Ext::String::TrimLeft()’:
el/inc/../libext/ext-string.h:220:48: error: conversion from ‘std::nullptr_t’ to ‘const Ext::String’ is ambiguous
el/inc/../libext/ext-string.h:220:48: note: candidates are:
el/inc/../libext/ext-string.h:137:2: note: Ext::String::String(const Char*)
el/inc/../libext/ext-string.h:136:2: note: Ext::String::String(const char*)
el/inc/../libext/ext-string.h:218:9: error: in passing argument 1 of ‘Ext::String Ext::String::TrimStart(Ext::RCString) const’
el/inc/../libext/ext-string.h: In member function ‘Ext::String& Ext::String::TrimRight()’:
el/inc/../libext/ext-string.h:221:47: error: conversion from ‘std::nullptr_t’ to ‘const Ext::String’ is ambiguous
el/inc/../libext/ext-string.h:221:47: note: candidates are:
el/inc/../libext/ext-string.h:137:2: note: Ext::String::String(const Char*)
el/inc/../libext/ext-string.h:136:2: note: Ext::String::String(const char*)
el/inc/../libext/ext-string.h:219:9: error: in passing argument 1 of ‘Ext::String Ext::String::TrimEnd(Ext::RCString) const’
el/inc/../libext/ext-string.h: In member function ‘Ext::String Ext::String::Trim() const’:
el/inc/../libext/ext-string.h:222:41: error: conversion from ‘std::nullptr_t’ to ‘const Ext::String’ is ambiguous
el/inc/../libext/ext-string.h:222:41: note: candidates are:
el/inc/../libext/ext-string.h:137:2: note: Ext::String::String(const Char*)
el/inc/../libext/ext-string.h:136:2: note: Ext::String::String(const char*)
el/inc/../libext/ext-string.h:218:9: error: in passing argument 1 of ‘Ext::String Ext::String::TrimStart(Ext::RCString) const’
el/inc/../libext/ext-string.h:222:51: error: conversion from ‘std::nullptr_t’ to ‘const Ext::String’ is ambiguous
el/inc/../libext/ext-string.h:222:51: note: candidates are:
el/inc/../libext/ext-string.h:137:2: note: Ext::String::String(const Char*)
el/inc/../libext/ext-string.h:136:2: note: Ext::String::String(const char*)
el/inc/../libext/ext-string.h:219:9: error: in passing argument 1 of ‘Ext::String Ext::String::TrimEnd(Ext::RCString) const’
In file included from el/inc/../libext/ext-cpp.h:823:0,
                 from el/inc/libext.h:1660,
                 from el/inc/ext.h:28,
                 from bitcoin-miner.cpp:19:
el/inc/../libext/ext-fw.h: In member function ‘Ext::String Ext::NameValueCollection::Get(Ext::RCString)’:
el/inc/../libext/ext-fw.h:874:65: error: operands to ?: have different types ‘Ext::String’ and ‘std::nullptr_t’
In file included from el/inc/../libext/ext-cpp.h:824:0,
                 from el/inc/libext.h:1660,
                 from el/inc/ext.h:28,
                 from bitcoin-miner.cpp:19:
el/inc/../libext/ext-net.h: In copy constructor ‘Ext::IPAddress::IPAddress(const Ext::IPAddress&)’:
el/inc/../libext/ext-net.h:151:25: error: call of overloaded ‘String(std::nullptr_t)’ is ambiguous
el/inc/../libext/ext-net.h:151:25: note: candidates are:
el/inc/../libext/ext-string.h:138:10: note: Ext::String::String(const string&)
el/inc/../libext/ext-string.h:137:2: note: Ext::String::String(const Char*)
el/inc/../libext/ext-string.h:136:2: note: Ext::String::String(const char*)
el/inc/../libext/ext-string.h:108:2: note: Ext::String::String(Ext::RCString)
In file included from el/inc/../libext/ext-cpp.h:827:0,
                 from el/inc/libext.h:1660,
                 from el/inc/ext.h:28,
                 from bitcoin-miner.cpp:19:
el/inc/../libext/ext-http.h: In constructor ‘Ext::WebRequest::WebRequest()’:
el/inc/../libext/ext-http.h:246:17: error: conversion from ‘std::nullptr_t’ to ‘const Ext::String’ is ambiguous
el/inc/../libext/ext-http.h:246:17: note: candidates are:
el/inc/../libext/ext-string.h:137:2: note: Ext::String::String(const Char*)
el/inc/../libext/ext-string.h:136:2: note: Ext::String::String(const char*)
el/inc/../libext/ext-http.h:231:2: error: in passing argument 1 of ‘Ext::NetworkCredentials::NetworkCredentials(Ext::RCString, Ext::RCString)’
el/inc/../libext/ext-http.h:246:17: error: conversion from ‘std::nullptr_t’ to ‘const Ext::String’ is ambiguous
el/inc/../libext/ext-http.h:246:17: note: candidates are:
el/inc/../libext/ext-string.h:137:2: note: Ext::String::String(const Char*)
el/inc/../libext/ext-string.h:136:2: note: Ext::String::String(const char*)
el/inc/../libext/ext-http.h:231:2: error: in passing argument 2 of ‘Ext::NetworkCredentials::NetworkCredentials(Ext::RCString, Ext::RCString)’
el/inc/../libext/ext-http.h: In constructor ‘Ext::WebClient::WebClient()’:
el/inc/../libext/ext-http.h:506:34: error: conversion from ‘std::nullptr_t’ to ‘const Ext::String’ is ambiguous
el/inc/../libext/ext-http.h:506:34: note: candidates are:
el/inc/../libext/ext-string.h:137:2: note: Ext::String::String(const Char*)
el/inc/../libext/ext-string.h:136:2: note: Ext::String::String(const char*)
el/inc/../libext/ext-http.h:231:2: error: in passing argument 1 of ‘Ext::NetworkCredentials::NetworkCredentials(Ext::RCString, Ext::RCString)’
el/inc/../libext/ext-http.h:506:34: error: conversion from ‘std::nullptr_t’ to ‘const Ext::String’ is ambiguous
el/inc/../libext/ext-http.h:506:34: note: candidates are:
el/inc/../libext/ext-string.h:137:2: note: Ext::String::String(const Char*)
el/inc/../libext/ext-string.h:136:2: note: Ext::String::String(const char*)
el/inc/../libext/ext-http.h:231:2: error: in passing argument 2 of ‘Ext::NetworkCredentials::NetworkCredentials(Ext::RCString, Ext::RCString)’
el/inc/../libext/ext-http.h:506:34: error: call of overloaded ‘String(std::nullptr_t)’ is ambiguous
el/inc/../libext/ext-http.h:506:34: note: candidates are:
el/inc/../libext/ext-string.h:138:10: note: Ext::String::String(const string&)
el/inc/../libext/ext-string.h:137:2: note: Ext::String::String(const Char*)
el/inc/../libext/ext-string.h:136:2: note: Ext::String::String(const char*)
el/inc/../libext/ext-string.h:108:2: note: Ext::String::String(Ext::RCString)
el/inc/../libext/ext-http.h:506:34: error: conversion from ‘std::nullptr_t’ to ‘const Ext::String’ is ambiguous
el/inc/../libext/ext-http.h:506:34: note: candidates are:
el/inc/../libext/ext-string.h:137:2: note: Ext::String::String(const Char*)
el/inc/../libext/ext-string.h:136:2: note: Ext::String::String(const char*)
el/inc/../libext/ext-http.h:439:2: error: in passing argument 1 of ‘Ext::HttpWebRequest::HttpWebRequest(Ext::RCString)’
In file included from bitcoin-miner.cpp:23:0:
bitcoin-client.h: In member function ‘virtual Ext::String WorkerThreadBase::GetDeviceName()’:
bitcoin-client.h:78:43: error: conversion from ‘std::nullptr_t’ to ‘Ext::String’ is ambiguous
bitcoin-client.h:78:43: note: candidates are:
el/inc/../libext/ext-string.h:137:2: note: Ext::String::String(const Char*)
el/inc/../libext/ext-string.h:136:2: note: Ext::String::String(const char*)
make: *** [bitcoin-miner.o] Error 1

sr. member
Activity: 404
Merit: 251
It's seems to be using my GPU too... how can I turn that off? I want to see how fast it is with sse2 compared to like 4way

Code:
bitcoin-miner  ... -g no


member
Activity: 138
Merit: 11
Exchange BTC in Telegram https://bit.ly/2MEfiw8
I love you OP

My mining went from ~14mhash/s with 4way on my phenom ll x6 1055T

to ~40-50mhash/s!! Desktop is unusable, but I'll use it when i'm not using the computer


(and thanks thedrs for showing a usable command line, i was clueless on it's use)

I've sent you a tiny donation to ya OP. I'm bitcoin poor but it's something.

EDIT: It's seems to be using my GPU too... how can I turn that off? I want to see how fast it is with sse2 compared to like 4way
full member
Activity: 546
Merit: 101
I tried commenting out the if X64 non-declaration of language like others have and can confirm Error 80004001
full member
Activity: 546
Merit: 101
I got jwasm installed but I have to modify the generated Makefile to add -Gc or -Gz to the flags in order for jwasm to run happily, and then I get:

Code:
g++-4.5 -std=c++0x -funsigned-char -fno-stack-protector -Wno-invalid-offsetof -I . -I el/inc -g -O2   -o bitcoin-miner bitcoin-miner.o bitcoin-client.o bitcoin-sha256.o bitcoin-sha256-x86x64.o sha256sse.o sha256x86.o ext-text.o ext-protocols.o ext-handlers.o ext-encoding.o threader.o regex.o ext-file.o ext-fw.o datetime.o ext-base.o ext-os.o ext-app.o ext-string.o ext-blob.o ext-stream.o ext-core.o http.o  -lrt -ldl -lcurl -lpthread -lpcre
bitcoin-sha256-x86x64.o: In function `SseBitcoinSha256::FindNonce(unsigned int&)':
/home/singpolyma/.bitcoin/ufasoft_bitcoin-miner-0.8/bitcoin-sha256-x86x64.cpp:63: undefined reference to `CalcSha256Sse'
sha256sse.o: In function `_CalcSha256Sse@48':
sha256sse.asm:(.text+0x161): undefined reference to `_g_4sha256_k'
sha256sse.asm:(.text+0x2be): undefined reference to `_g_sha256_hinit'
sha256sse.asm:(.text+0x2cb): undefined reference to `_g_sha256_hinit'
sha256x86.o: In function `_CalcSha256@40':
sha256x86.asm:(.text+0x96): undefined reference to `_g_sha256_k'
sha256x86.asm:(.text+0x183): undefined reference to `_g_sha256_hinit'
sha256x86.asm:(.text+0x18e): undefined reference to `_g_sha256_hinit'
collect2: ld returned 1 exit status
make: *** [bitcoin-miner] Error 1

help?
sr. member
Activity: 362
Merit: 250
Code:
checking for gcc 4.5... configure: error: requires gcc 4.5 or later

I need precompiled Linux binary (32 and 64 bit versions).
newbie
Activity: 36
Merit: 0
Under 32 bit linux the program appears to compile without any problems, but I get "Error 80004001" when I try to actually use it. Any chance of a precompiled working binary? I have had no problems with the program in windows.
newbie
Activity: 40
Merit: 0
After some work with luke-jr, I can now say that ufasoft now works with his pool (Eligius).

Typical command line

bitcoin-miner.exe -a 5 -o http://pool.bitcoin.dashjr.org:8337 -u -p

what i like about luke's pool is that you can use port 80 too (great for NATs) and you don't need to register on a website,
you just send the payment address in the user and you receive payments when they go above 1 BTC.

I saw there were posts here having problems with bitpenny pool too so i will write what solved the issue here (it might be the same problem there).

The problem used to be:  Shocked
after running bitcoin-miner.exe, it would just get stuck on 0 MH/sec.

the problem was with the pool because it didn't obey this requirement:
"The response MUST include a WWW-Authenticate header field (section 14.47) containing a challenge applicable to the requested resource."

This was fixed.
 Smiley Smiley Smiley


newbie
Activity: 6
Merit: 0
LOL this miner runs times better in my Win7 VM than my native official client on Mac OS. Is there a way to run it native on Mac OS?

I'd like to second this.  I'm having one heck of a time getting this compiled and running on Mac OS.  Ver 10.6.x with xcode tools installed.

It keeps hanging on jwasm, but that doesn't seem to be set to run a make that OSX could handle.
Code:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
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 for style of include used by make... GNU
checking dependency style of gcc... gcc3
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 g++... /usr/bin/g++
checking build system type... i386-apple-darwin10.7.0
checking for jwasm... no
configure: error: Cannot find jwasm.
newbie
Activity: 17
Merit: 0
No, ROTR is cyclic right shift. There are no such operation in C language.
_rotr intrinsic function available on GCC 4.5 for Intel x86/x64 platform.

For those of you on Linux encountering this problem, configure with CC=gcc-4.5 and CXX=g++-4.5

For example,
CC=gcc-4.5 CXX=g++-4.5 ./configure ...[rest goes here]...

You will need to install gcc and g++ 4.5 for this to work, and you should be able to confirm the right gcc used in compile output scrolling by.

Thanks, this was helpful, it compiled, but when i run it, it does nothing.

The following is what i've done so far,
Code:
sudo aptitude install gcc-4.5
sudo aptitude install g++-4.5
sudo cp JWASM /usr/bin/jwasm
sudo chmod +x /usr/bin/jwasm
sudo aptitude install libpcre++-dev
sudo aptitude install libcurl4-dev
CC=gcc-4.5 CXX=g++-4.5 ./configure
make
sr. member
Activity: 294
Merit: 250
я не ламер, я java-прогаммер :-)
Any chance for some support for SSH Tunnels or SOCKS proxy?

for proxy try with Proxifier

Proxifier is not free software  Undecided
hero member
Activity: 698
Merit: 500
Any chance for some support for SSH Tunnels or SOCKS proxy?

for proxy try with Proxifier
fix
newbie
Activity: 4
Merit: 0
Error 80004001 for me, too. What does it mean?

thanks!
sr. member
Activity: 361
Merit: 250
LOL this miner runs times better in my Win7 VM than my native official client on Mac OS. Is there a way to run it native on Mac OS?
newbie
Activity: 3
Merit: 0
Any chance for some support for SSH Tunnels or SOCKS proxy?
eck
newbie
Activity: 18
Merit: 0
Having some trouble compiling this on Ubuntu 11.04 x64:

Code:
jwasm -DX64=1 -10 -elf64 -zcw -c -Fosha256sse.o sha256sse.asm
JWasm v2.05, Mar  2 2011, Masm-compatible assembler.
Portions Copyright (c) 1992-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.

sha256sse.asm(48) : Error A2091: Language type must be specified
sha256sse.asm(314) : Error A2142: Unmatched block nesting: CalcSha256Sse
sha256sse.asm: 316 lines, 1 passes, 0 ms, 0 warnings, 2 errors
make: *** [sha256sse.o] Error 1

I checked the sha256sse.asm file and found that a language type was declared on x86, but not on x64. I removed the if statement, and did the same on the other ASM file, which allows it to compile but then I get "error 80004001" if I try to use it. Obviously the language type isn't declared on x64 for a reason, but I'm just not certain what it should be on x64 (since it obviously has to be something).

This also happened with the latest version of JWASM - I'm using the older one since that's what most others here are using though.

Thanks in advance!
Pages:
Jump to: