evolvia31
Member
Offline
Activity: 74
Merit: 10
|
|
December 05, 2013, 11:29:33 AM |
|
Hi, I have problem to compile cgminer 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: ------------------------------------------------------------------------ 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: 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.
|
|
|
|
-ck (OP)
Legendary
Offline
Activity: 4242
Merit: 1644
Ruu \o/
|
|
December 05, 2013, 11:32:11 AM |
|
Hi, I have problem to compile cgminer 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: ------------------------------------------------------------------------ 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: "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
Activity: 74
Merit: 10
|
|
December 05, 2013, 11:37:27 AM |
|
No, I use gcc: 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
Activity: 4242
Merit: 1644
Ruu \o/
|
|
December 05, 2013, 11:38:54 AM |
|
No, I use gcc: 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
Activity: 1065
Merit: 1077
|
|
December 05, 2013, 12:00:04 PM |
|
No, I use gcc: 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
Activity: 74
Merit: 10
|
|
December 05, 2013, 12:25:50 PM |
|
Hi, thanks to your help I try with gmake compilation some files are compiled but i have this error now: 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
|
|
|
|
xyzzy099
Legendary
Offline
Activity: 1065
Merit: 1077
|
|
December 05, 2013, 12:38:26 PM |
|
Hi, thanks to your help I try with gmake compilation some files are compiled but i have this error now: 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 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
Activity: 74
Merit: 10
|
|
December 05, 2013, 01:20:28 PM |
|
Hi, I try to delete -ldl switch to Makefile. But now i have an other problem during compilation on the same object: 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
Activity: 1065
Merit: 1077
|
|
December 05, 2013, 02:49:22 PM |
|
Hi, I try to delete -ldl switch to Makefile. But now i have an other problem during compilation on the same object: 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
Activity: 35
Merit: 0
|
|
December 05, 2013, 03:07:06 PM |
|
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 # 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
Activity: 74
Merit: 10
|
|
December 05, 2013, 03:51:05 PM |
|
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 There isn't any ports to miner software in FreeBSD ports only one port to bitcoin software.
|
|
|
|
xyzzy099
Legendary
Offline
Activity: 1065
Merit: 1077
|
|
December 05, 2013, 03:55:13 PM |
|
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 There isn't any ports to miner software in FreeBSD ports 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
Activity: 74
Merit: 10
|
|
December 05, 2013, 03:58:26 PM |
|
i don't find the cgminer linux binary 32 bits on the website
|
|
|
|
xyzzy099
Legendary
Offline
Activity: 1065
Merit: 1077
|
|
December 05, 2013, 04:17:25 PM |
|
i don't find the cgminer linux binary 32 bits on the website Well, hell, I guess you're right
|
Libertarians: Diligently plotting to take over the world and leave you alone.
|
|
|
|
CustomDesigned
Newbie
Offline
Activity: 35
Merit: 0
|
|
December 05, 2013, 06:56:17 PM |
|
i don't find the cgminer linux binary 32 bits on the website To run the binary on a foreign system, it probably needs to be statically linked.
|
|
|
|
xyzzy099
Legendary
Offline
Activity: 1065
Merit: 1077
|
|
December 05, 2013, 07:17:31 PM |
|
i don't find the cgminer linux binary 32 bits on the website 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
Activity: 2646
Merit: 2793
Shitcoin Minimalist
|
|
December 06, 2013, 01:55:18 PM |
|
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
|
|
December 06, 2013, 04:26:57 PM |
|
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
Activity: 1540
Merit: 1001
|
|
December 07, 2013, 12:12:18 AM |
|
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!
|
|
|
|