Bitcoin Forum
April 27, 2024, 07:46:52 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 [682] 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 ... 843 »
  Print  
Author Topic: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.11.1  (Read 5805212 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic. (3 posts by 1+ user deleted.)
evolvia31
Member
**
Offline Offline

Activity: 74
Merit: 10


View Profile
December 05, 2013, 11:29:33 AM
 #13621

Hi,

I have problem to compile cgminer Sad
Could you help me.

My system is FreeBSD 8.x

I have install all dependencies.
When i execute "./configure --with-system-libusb --enable-icarus", all works fine., i obtain this output:
Code:
------------------------------------------------------------------------
cgminer 3.8.4
------------------------------------------------------------------------


Configuration Options Summary:

  libcurl(GBT+getwork).: Enabled: -L/usr/local/lib -lcurl
  curses.TUI...........: FOUND: -lncurses

  Avalon.ASICs.........: Disabled
  BlackArrow.ASICs.....: Disabled
  BFL.ASICs............: Disabled
  BitForce.FPGAs.......: Disabled
  BitFury.ASICs........: Disabled
  Hashfast.ASICs.......: Disabled
  Icarus.ASICs/FPGAs...: Enabled
  Klondike.ASICs.......: Disabled
  KnC.ASICs............: Disabled
  ModMiner.FPGAs.......: Disabled

Compilation............: make (or gmake)
  CPPFLAGS.............:
  CFLAGS...............: -g -O2
  LDFLAGS..............:  -lpthread
  LDADD................: -ldl -L/usr/local/lib -lcurl  compat/jansson-2.5/src/.libs/libjansson.a -lpthread    -lm -lusb -lrt

Installation...........: make install (as root if needed, with 'su' or 'sudo')
  prefix...............: /usr/local

But, when i execute make, i have this error:
Code:
xxxxx# make
make  all-recursive
Making all in lib
  GEN    signal.h
  GEN    string.h
make  all-recursive
  CC     memmem.o
  AR     libgnu.a
Making all in compat
Making all in jansson-2.5
"Makefile", line 825: Need an operator
make: fatal errors encountered -- cannot continue
*** Error code 1

Stop in /tmp/cgminer-3.8.4/compat.
*** Error code 1

Stop in /tmp/cgminer-3.8.4.
*** Error code 1

Stop in /tmp/cgminer-3.8.4.
1714204012
Hero Member
*
Offline Offline

Posts: 1714204012

View Profile Personal Message (Offline)

Ignore
1714204012
Reply with quote  #2

1714204012
Report to moderator
Bitcoin mining is now a specialized and very risky industry, just like gold mining. Amateur miners are unlikely to make much money, and may even lose money. Bitcoin is much more than just mining, though!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714204012
Hero Member
*
Offline Offline

Posts: 1714204012

View Profile Personal Message (Offline)

Ignore
1714204012
Reply with quote  #2

1714204012
Report to moderator
-ck (OP)
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
December 05, 2013, 11:32:11 AM
 #13622

Hi,

I have problem to compile cgminer Sad
Could you help me.

My system is FreeBSD 8.x

I have install all dependencies.
When i execute "./configure --with-system-libusb --enable-icarus", all works fine., i obtain this output:
Code:
------------------------------------------------------------------------
cgminer 3.8.4
------------------------------------------------------------------------


Configuration Options Summary:

  libcurl(GBT+getwork).: Enabled: -L/usr/local/lib -lcurl
  curses.TUI...........: FOUND: -lncurses

  Avalon.ASICs.........: Disabled
  BlackArrow.ASICs.....: Disabled
  BFL.ASICs............: Disabled
  BitForce.FPGAs.......: Disabled
  BitFury.ASICs........: Disabled
  Hashfast.ASICs.......: Disabled
  Icarus.ASICs/FPGAs...: Enabled
  Klondike.ASICs.......: Disabled
  KnC.ASICs............: Disabled
  ModMiner.FPGAs.......: Disabled

Compilation............: make (or gmake)
  CPPFLAGS.............:
  CFLAGS...............: -g -O2
  LDFLAGS..............:  -lpthread
  LDADD................: -ldl -L/usr/local/lib -lcurl  compat/jansson-2.5/src/.libs/libjansson.a -lpthread    -lm -lusb -lrt

Installation...........: make install (as root if needed, with 'su' or 'sudo')
  prefix...............: /usr/local

But, when i execute make, i have this error:
Code:
"Makefile", line 825: Need an operator
It will only build with gcc. Are you trying to build with a different compiler?

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
evolvia31
Member
**
Offline Offline

Activity: 74
Merit: 10


View Profile
December 05, 2013, 11:37:27 AM
 #13623

No,
I use gcc:

Code:
xxxxx# gcc --version
gcc (GCC) 4.2.1 20070719  [FreeBSD]
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

-ck (OP)
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
December 05, 2013, 11:38:54 AM
 #13624

No,
I use gcc:

Code:
xxxxx# gcc --version
gcc (GCC) 4.2.1 20070719  [FreeBSD]
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

No idea then sorry.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
xyzzy099
Legendary
*
Offline Offline

Activity: 1062
Merit: 1041



View Profile
December 05, 2013, 12:00:04 PM
 #13625

No,
I use gcc:

Code:
xxxxx# gcc --version
gcc (GCC) 4.2.1 20070719  [FreeBSD]
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


It's been a lot of years since I ran FreeBSD, but as I recall, the default 'make' command they use is BSD-specific and not compatible in all ways with the Gnu make that comes with GCC, so you typically have to tell it to use gmake explicitly when using some Gnu make makefiles.  I think if you type 'MAKE=gmake; gmake' it will probably work.

Libertarians:  Diligently plotting to take over the world and leave you alone.
evolvia31
Member
**
Offline Offline

Activity: 74
Merit: 10


View Profile
December 05, 2013, 12:25:50 PM
 #13626

Hi, thanks to your help Smiley

I try with gmake compilation some files are compiled but i have this error now:

Code:
gcc: -lpthread: linker input file unused because linking not done
  CC     cgminer-logging.o
In file included from logging.c:16:
miner.h:50:1: warning: "alloca" redefined
In file included from ./compat/jansson-2.5/src/jansson.h:12,
                 from miner.h:10,
                 from logging.c:16:
/usr/include/stdlib.h:237:1: warning: this is the location of the previous definition
gcc: -lpthread: linker input file unused because linking not done
  CCLD   cgminer
/usr/bin/ld: cannot find -ldl
gmake[2]: *** [cgminer] Error 1
gmake[2]: Leaving directory `/tmp/cgminer-3.8.4'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/tmp/cgminer-3.8.4'
gmake: *** [all] Error 2

/usr/local/ld exist and works fine on the system Sad
xyzzy099
Legendary
*
Offline Offline

Activity: 1062
Merit: 1041



View Profile
December 05, 2013, 12:38:26 PM
 #13627

Hi, thanks to your help Smiley

I try with gmake compilation some files are compiled but i have this error now:

Code:
gcc: -lpthread: linker input file unused because linking not done
  CC     cgminer-logging.o
In file included from logging.c:16:
miner.h:50:1: warning: "alloca" redefined
In file included from ./compat/jansson-2.5/src/jansson.h:12,
                 from miner.h:10,
                 from logging.c:16:
/usr/include/stdlib.h:237:1: warning: this is the location of the previous definition
gcc: -lpthread: linker input file unused because linking not done
  CCLD   cgminer
/usr/bin/ld: cannot find -ldl
gmake[2]: *** [cgminer] Error 1
gmake[2]: Leaving directory `/tmp/cgminer-3.8.4'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/tmp/cgminer-3.8.4'
gmake: *** [all] Error 2

/usr/local/ld exist and works fine on the system Sad

It seems cgminer wants to link against libdl, which does not exist on FreeBSD.  Usually programs that use libdl are looking for functions that are built into libc on FreeBSD, so if you just remove the references to libdl from the makefile it will probably compile and run just fine.


Libertarians:  Diligently plotting to take over the world and leave you alone.
evolvia31
Member
**
Offline Offline

Activity: 74
Merit: 10


View Profile
December 05, 2013, 01:20:28 PM
 #13628

Hi,

I try to delete -ldl switch to Makefile.
But now i have an other problem during compilation on the same object:
Code:
 CCLD   cgminer
cgminer-cgminer.o(.text+0x18b4): In function `libusb_poll_thread':
/tmp/cgminer-3.8.4/cgminer.c:7801: undefined reference to `libusb_handle_events_timeout_completed'
cgminer-cgminer.o(.text+0x18da):/tmp/cgminer-3.8.4/cgminer.c:7809: undefined reference to `libusb_handle_events_timeout_completed'
cgminer-util.o(.text+0x17bc): In function `nanosleep_abstime':
/tmp/cgminer-3.8.4/util.c:1001: undefined reference to `clock_nanosleep'
cgminer-usbutils.o(.text+0x1b37): In function `usb_all':
/tmp/cgminer-3.8.4/usbutils.c:999: undefined reference to `libusb_error_name'
cgminer-usbutils.o(.text+0x1cc4):/tmp/cgminer-3.8.4/usbutils.c:903: undefined reference to `libusb_error_name'
cgminer-usbutils.o(.text+0x1cf7):/tmp/cgminer-3.8.4/usbutils.c:899: undefined reference to `libusb_error_name'
cgminer-usbutils.o(.text+0x1d6e):/tmp/cgminer-3.8.4/usbutils.c:979: undefined reference to `libusb_error_name'
cgminer-usbutils.o(.text+0x6988): In function `resource_process':
/tmp/cgminer-3.8.4/usbutils.c:3547: undefined reference to `semtimedop'
cgminer-usbutils.o(.text+0x88f3): In function `_usb_transfer_read':
/tmp/cgminer-3.8.4/usbutils.c:2899: undefined reference to `libusb_error_name'
cgminer-usbutils.o(.text+0x8cec): In function `__usb_transfer':
/tmp/cgminer-3.8.4/usbutils.c:2830: undefined reference to `libusb_error_name'
cgminer-usbutils.o(.text+0x9b74): In function `_usb_write':
/tmp/cgminer-3.8.4/usbutils.c:2732: undefined reference to `libusb_error_name'
cgminer-usbutils.o(.text+0xa181): In function `_usb_read':
/tmp/cgminer-3.8.4/usbutils.c:2641: undefined reference to `libusb_error_name'
gmake[2]: *** [cgminer] Error 1
gmake[2]: Leaving directory `/tmp/cgminer-3.8.4'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/tmp/cgminer-3.8.4'
gmake: *** [all] Error 2
you have an idea ?
xyzzy099
Legendary
*
Offline Offline

Activity: 1062
Merit: 1041



View Profile
December 05, 2013, 02:49:22 PM
 #13629

Hi,

I try to delete -ldl switch to Makefile.
But now i have an other problem during compilation on the same object:
Code:
 CCLD   cgminer
cgminer-cgminer.o(.text+0x18b4): In function `libusb_poll_thread':
/tmp/cgminer-3.8.4/cgminer.c:7801: undefined reference to `libusb_handle_events_timeout_completed'
cgminer-cgminer.o(.text+0x18da):/tmp/cgminer-3.8.4/cgminer.c:7809: undefined reference to `libusb_handle_events_timeout_completed'
cgminer-util.o(.text+0x17bc): In function `nanosleep_abstime':
/tmp/cgminer-3.8.4/util.c:1001: undefined reference to `clock_nanosleep'
cgminer-usbutils.o(.text+0x1b37): In function `usb_all':
/tmp/cgminer-3.8.4/usbutils.c:999: undefined reference to `libusb_error_name'
cgminer-usbutils.o(.text+0x1cc4):/tmp/cgminer-3.8.4/usbutils.c:903: undefined reference to `libusb_error_name'
cgminer-usbutils.o(.text+0x1cf7):/tmp/cgminer-3.8.4/usbutils.c:899: undefined reference to `libusb_error_name'
cgminer-usbutils.o(.text+0x1d6e):/tmp/cgminer-3.8.4/usbutils.c:979: undefined reference to `libusb_error_name'
cgminer-usbutils.o(.text+0x6988): In function `resource_process':
/tmp/cgminer-3.8.4/usbutils.c:3547: undefined reference to `semtimedop'
cgminer-usbutils.o(.text+0x88f3): In function `_usb_transfer_read':
/tmp/cgminer-3.8.4/usbutils.c:2899: undefined reference to `libusb_error_name'
cgminer-usbutils.o(.text+0x8cec): In function `__usb_transfer':
/tmp/cgminer-3.8.4/usbutils.c:2830: undefined reference to `libusb_error_name'
cgminer-usbutils.o(.text+0x9b74): In function `_usb_write':
/tmp/cgminer-3.8.4/usbutils.c:2732: undefined reference to `libusb_error_name'
cgminer-usbutils.o(.text+0xa181): In function `_usb_read':
/tmp/cgminer-3.8.4/usbutils.c:2641: undefined reference to `libusb_error_name'
gmake[2]: *** [cgminer] Error 1
gmake[2]: Leaving directory `/tmp/cgminer-3.8.4'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/tmp/cgminer-3.8.4'
gmake: *** [all] Error 2
you have an idea ?

It looks like compiling cgminer on FreeBSD is not going to be a trivial task.  I would be glad to help you through it, but I haven't had a FreeBSD box in some years, so I really can't.  I think your options are these:

1) There may actually be a FreeBSD port for CGMiner that already exists.  If so, that is clearly the best way to build it.

2) If not, download the Linux binary and run it.  The FreeBSD Linux emulation is very good, and I'd be surprised if it didn't work just fine.

3) Get onto the FreeBSD ports mailing lists/forums and ask around.  I would be surprised if no FreeBSD users are using cgminer, and some of them can probably help you get it compiled.  Maybe you can inspire someone to create a port and add it to the ports tree.

Libertarians:  Diligently plotting to take over the world and leave you alone.
CustomDesigned
Newbie
*
Offline Offline

Activity: 35
Merit: 0


View Profile
December 05, 2013, 03:07:06 PM
 #13630

Code:
Making all in compat
Making all in jansson-2.5
"Makefile", line 825: Need an operator
make: fatal errors encountered -- cannot continue

line 825 of compat/jansson-2.5
Code:
# These flags are gcc specific
export AM_CFLAGS = -Wall -Wextra -Wdeclaration-after-statement
Your version of make does not understand the 'export' statement.
The jansson-2.5 directory is the only Makefile that uses it, so perhaps
you can disable jansson or find an equivalent to 'export' in bsd make.
evolvia31
Member
**
Offline Offline

Activity: 74
Merit: 10


View Profile
December 05, 2013, 03:51:05 PM
 #13631

Ok thank you to your help.
I can't compile it.

there are too many code incompatibility.

I try to compile bfgminer i can have more chance Smiley

There isn't any ports to miner software in FreeBSD ports Sad only one port to bitcoin software.
xyzzy099
Legendary
*
Offline Offline

Activity: 1062
Merit: 1041



View Profile
December 05, 2013, 03:55:13 PM
 #13632

Ok thank you to your help.
I can't compile it.

there are too many code incompatibility.

I try to compile bfgminer i can have more chance Smiley

There isn't any ports to miner software in FreeBSD ports Sad only one port to bitcoin software.

Why not just run a Linux binary?  FreeBSD has excellent Linux emulation.

Libertarians:  Diligently plotting to take over the world and leave you alone.
evolvia31
Member
**
Offline Offline

Activity: 74
Merit: 10


View Profile
December 05, 2013, 03:58:26 PM
 #13633

i don't find the cgminer linux binary 32 bits on the website Sad
xyzzy099
Legendary
*
Offline Offline

Activity: 1062
Merit: 1041



View Profile
December 05, 2013, 04:17:25 PM
 #13634

i don't find the cgminer linux binary 32 bits on the website Sad

Well, hell, I guess you're right Sad

Libertarians:  Diligently plotting to take over the world and leave you alone.
evolvia31
Member
**
Offline Offline

Activity: 74
Merit: 10


View Profile
December 05, 2013, 04:23:05 PM
 #13635

bfgminer compilation works fine Smiley

I can install it and launch it but it didn't detect my usb erupter Sad

I'm very damned Sad Sad Sad

if you have any idea

https://bitcointalk.org/index.php?topic=168174.msg3824128#msg3824128
CustomDesigned
Newbie
*
Offline Offline

Activity: 35
Merit: 0


View Profile
December 05, 2013, 06:56:17 PM
 #13636

i don't find the cgminer linux binary 32 bits on the website Sad
To run the binary on a foreign system, it probably needs to be statically linked.
xyzzy099
Legendary
*
Offline Offline

Activity: 1062
Merit: 1041



View Profile
December 05, 2013, 07:17:31 PM
 #13637

i don't find the cgminer linux binary 32 bits on the website Sad
To run the binary on a foreign system, it probably needs to be statically linked.

The FreeBSD Linux compatibility layer includes dynamic libraries.  A given binary may require that you also install any non-standard dynamic libraries required by that binary, of course.

Libertarians:  Diligently plotting to take over the world and leave you alone.
infofront
Legendary
*
Offline Offline

Activity: 2632
Merit: 2780


Shitcoin Minimalist


View Profile
December 06, 2013, 01:55:18 PM
 #13638

cgminer will only recognize  one of my GPUs. Going on a suggestion from someone, I used the --no-adl argument. Now, it seems adl is permanently disabled. How can I re-enable it?
erk
Hero Member
*****
Offline Offline

Activity: 826
Merit: 500



View Profile
December 06, 2013, 04:26:57 PM
 #13639

Is there any way to disable the 5min pool stability check that was introduced in 3.5.1? It's playing havoc with multi pools that auto switch to the most profitable coin periodically, as the switch interrupts the stratum for 15-20sec which invokes the 5min stability check.
mdude77
Legendary
*
Offline Offline

Activity: 1540
Merit: 1001



View Profile
December 07, 2013, 12:12:18 AM
 #13640

cgminer will only recognize  one of my GPUs. Going on a suggestion from someone, I used the --no-adl argument. Now, it seems adl is permanently disabled. How can I re-enable it?

GPU support is not available for cgminer, and the authors only support the newest version of cgminer.

M

I mine at Kano's Pool because it pays the best and is completely transparent!  Come join me!
Pages: « 1 ... 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 [682] 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 ... 843 »
  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!