sgravina
|
|
August 26, 2012, 07:30:18 PM |
|
I'm trying to compile cgminer on my mac. My card is a 6750M so I don't expect much performance. I'm just doing this to see if I can. I have MacOS 10.8. I installed XCode, XCode command line tools, MacPorts and the following from MacPorts: git yasm curl ncurses automake autoconf autogen. I copied adl_defines.h, adl_sdk.h and adl_structures.h from one of my linux machines into cgminer/ADL_SDK/. I had to modify adl_sdk.h to remove the #if defined (LINUX) condition. I was able to compile the code but it fails on the final linking of the executable, this command: gcc -g -O2 -o cgminer cgminer-cgminer.o cgminer-util.o cgminer-sha2.o cgminer-api.o cgminer-logging.o cgminer-driver-opencl.o cgminer-ocl.o cgminer-findnonce.o cgminer-adl.o -ldl -L/opt/local/lib -lcurl compat/jansson/libjansson.a -lpthread -framework OpenCL -lm lib/libgnu.a ccan/libccan.a -lncurses -lpthread
with this error: imac:cgminer sgravina$ make make all-recursive Making all in lib make all-recursive make[4]: Nothing to be done for `all-am'. Making all in compat Making all in jansson make[3]: Nothing to be done for `all'. make[3]: Nothing to be done for `all-am'. Making all in ccan make[2]: Nothing to be done for `all'. CCLD cgminer Undefined symbols for architecture x86_64: "_change_gpusettings", referenced from: _manage_gpu in cgminer-driver-opencl.o "_clear_adl", referenced from: _clean_up in cgminer-cgminer.o _print_ndevs_and_exit in cgminer-driver-opencl.o "_gpu_activity", referenced from: _watchdog_thread in cgminer-cgminer.o "_gpu_autotune", referenced from: _watchdog_thread in cgminer-cgminer.o "_gpu_fanpercent", referenced from: _get_opencl_statline_before in cgminer-driver-opencl.o "_gpu_fanspeed", referenced from: _get_opencl_statline_before in cgminer-driver-opencl.o "_gpu_stats", referenced from: _watchdog_thread in cgminer-cgminer.o _gpustatus in cgminer-api.o _manage_gpu in cgminer-driver-opencl.o "_gpu_temp", referenced from: _get_opencl_statline_before in cgminer-driver-opencl.o "_init_adl", referenced from: _opencl_detect in cgminer-driver-opencl.o "_set_engineclock", referenced from: _gpuengine in cgminer-api.o "_set_fanspeed", referenced from: _gpufan in cgminer-api.o "_set_memoryclock", referenced from: _gpumem in cgminer-api.o "_set_vddc", referenced from: _gpuvddc in cgminer-api.o ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make[2]: *** [cgminer] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
Obviously I am not finding some symbols in my link. Where do I find them on a Mac? Are they there? Can I put them there?
|
|
|
|
the_joey_o
Newbie
Offline
Activity: 40
Merit: 0
|
|
August 26, 2012, 08:15:34 PM |
|
I'm trying to compile cgminer on my Windows 7 Pro 64 bit desktop. I'm at the point where I need to start building cgminer, but I'm getting the following error: The Joey-O@Mr_Compy ~ $ cd cgminer-2.7.4
The Joey-O@Mr_Compy ~/cgminer-2.7.4 $ adl.sh /mingw/bin/adl.sh: /mingw/bin/adl.sh: cannot execute binary file
The Joey-O@Mr_Compy ~/cgminer-2.7.4 $ file adl.sh adl.sh: ERROR: cannot open `adl.sh' (No such file or directory) I made the adl.sh file with the following contents: cp -av ../ADL_SDK/*.h ADL_SDK Then I saved it in \MinGW\msys\1.0\bin. I also made the ADL_SDK directory and placed it in \MinGW\msys\1.0\home\The Joey-O\ with adl_defines.h, adl_sdk.h & adl_structures.h inside. Any idea on what I'm doing wrong?
|
|
|
|
blksith0
Newbie
Offline
Activity: 59
Merit: 0
|
|
August 26, 2012, 08:21:21 PM |
|
I'm trying to compile cgminer on my Windows 7 Pro 64 bit desktop. I'm at the point where I need to start building cgminer, but I'm getting the following error: The Joey-O@Mr_Compy ~ $ cd cgminer-2.7.4
The Joey-O@Mr_Compy ~/cgminer-2.7.4 $ adl.sh /mingw/bin/adl.sh: /mingw/bin/adl.sh: cannot execute binary file
The Joey-O@Mr_Compy ~/cgminer-2.7.4 $ file adl.sh adl.sh: ERROR: cannot open `adl.sh' (No such file or directory) I made the adl.sh file with the following contents: cp -av ../ADL_SDK/*.h ADL_SDK Then I saved it in \MinGW\msys\1.0\bin. I also made the ADL_SDK directory and placed it in \MinGW\msys\1.0\home\The Joey-O\ with adl_defines.h, adl_sdk.h & adl_structures.h inside. Any idea on what I'm doing wrong? Make sure you have the adl.sh file there. And the CGMiner source code in there somewhere. Not the CGminer already compiled, but you need the source.
|
|
|
|
-ck (OP)
Legendary
Offline
Activity: 4284
Merit: 1645
Ruu \o/
|
|
August 26, 2012, 09:29:42 PM |
|
I'm trying to compile cgminer on my mac. My card is a 6750M so I don't expect much performance. I'm just doing this to see if I can.
I have MacOS 10.8. I installed XCode, XCode command line tools, MacPorts and the following from MacPorts: git yasm curl ncurses automake autoconf autogen.
I copied adl_defines.h, adl_sdk.h and adl_structures.h from one of my linux machines into cgminer/ADL_SDK/. I had to modify adl_sdk.h to remove the #if defined (LINUX) condition.
Why did you do that then? There is no ADL support on macos.
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
sgravina
|
|
August 26, 2012, 09:32:58 PM |
|
I'm trying to compile cgminer on my mac. My card is a 6750M so I don't expect much performance. I'm just doing this to see if I can.
I have MacOS 10.8. I installed XCode, XCode command line tools, MacPorts and the following from MacPorts: git yasm curl ncurses automake autoconf autogen.
I copied adl_defines.h, adl_sdk.h and adl_structures.h from one of my linux machines into cgminer/ADL_SDK/. I had to modify adl_sdk.h to remove the #if defined (LINUX) condition.
Why did you do that then? There is no ADL support on macos. So is cgminer on MacOS possible? If not I will give up.
|
|
|
|
-ck (OP)
Legendary
Offline
Activity: 4284
Merit: 1645
Ruu \o/
|
|
August 26, 2012, 09:34:36 PM |
|
I'm trying to compile cgminer on my mac. My card is a 6750M so I don't expect much performance. I'm just doing this to see if I can.
I have MacOS 10.8. I installed XCode, XCode command line tools, MacPorts and the following from MacPorts: git yasm curl ncurses automake autoconf autogen.
I copied adl_defines.h, adl_sdk.h and adl_structures.h from one of my linux machines into cgminer/ADL_SDK/. I had to modify adl_sdk.h to remove the #if defined (LINUX) condition.
Why did you do that then? There is no ADL support on macos. So is cgminer on MacOS possible? If not I will give up. It is, without the adl support...
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
sgravina
|
|
August 26, 2012, 09:36:19 PM |
|
What is adl support? How do I compile without it?
|
|
|
|
sgravina
|
|
August 26, 2012, 09:37:34 PM |
|
I just found the --disable-adl switch. I'll try it.
|
|
|
|
-ck (OP)
Legendary
Offline
Activity: 4284
Merit: 1645
Ruu \o/
|
|
August 26, 2012, 09:38:05 PM Last edit: August 26, 2012, 09:49:22 PM by ckolivas |
|
I'm trying to compile cgminer on my mac. My card is a 6750M so I don't expect much performance. I'm just doing this to see if I can.
I have MacOS 10.8. I installed XCode, XCode command line tools, MacPorts and the following from MacPorts: git yasm curl ncurses automake autoconf autogen.
I copied adl_defines.h, adl_sdk.h and adl_structures.h from one of my linux machines into cgminer/ADL_SDK/. I had to modify adl_sdk.h to remove the #if defined (LINUX) condition.
Why did you do that then? There is no ADL support on macos. So is cgminer on MacOS possible? If not I will give up. DONT DO THAT.
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
sgravina
|
|
August 26, 2012, 09:53:48 PM Last edit: August 26, 2012, 10:08:17 PM by sgravina |
|
I got it to work. I removed the adl headers from ADL_SDK. The autogen.sh program is redundant with configure. So I ran autogen.sh, make and it works. cgminer version 2.7.4 - Started: [2012-08-26 17:47:06] -------------------------------------------------------------------------------- (5s):79.1 (avg):70.9 Mh/s | Q:16 A:2 R:0 HW:0 E:12% U:0.6/m TQ: 0 ST: 3 SS: 0 DW: 8 NB: 2 LW: 9 GF: 0 RF: 0 WU: 0.6 Connected to http://gpumax.com:8332 with LP as user f2e2a6747bcd818146e79c17f3f3112e Block: 000005a8796d4d93715005802e064906... Started: [17:49:30] -------------------------------------------------------------------------------- [P]ool management [G]PU management [S]ettings [D]isplay options [Q]uit GPU 0: | 71.6/ 71.9Mh/s | A:2 R:0 HW:0 U:0.65/m I: 8 --------------------------------------------------------------------------------
[2012-08-26 17:47:06] Started cgminer 2.7.4 [2012-08-26 17:47:06] Probing for an alive pool [2012-08-26 17:47:06] Long-polling activated for http://gpumax.com:8332/listenChannel [2012-08-26 17:47:06] Pool 0 http://gpumax.com:8332 alive [2012-08-26 17:47:07] Pool 1 http://us.ozco.in:8332 alive [2012-08-26 17:47:07] Pool 2 http://us.eclipsemc.com:8337 alive [2012-08-26 17:47:08] Pool 3 http://btcguild.com:8332 alive [2012-08-26 17:47:09] Pool 4 http://api.bitcoin.cz:8332 alive [2012-08-26 17:47:09] Pool 5 http://localhost:8332 alive [2012-08-26 17:48:07] Accepted d32f4f8b.20b20d72 GPU 0 pool 0 [2012-08-26 17:48:28] LONGPOLL from pool 0 requested work restart [2012-08-26 17:49:30] New block detected on network before longpoll [2012-08-26 17:49:59] Accepted fdb505b5.72d199e1 GPU 0 pool 0
At these settings it renders my Mac unusable. Plus it is not fast enough to make money. But it is faster than an old version of Diablo that I have which does 61 MH/s.
|
|
|
|
the_joey_o
Newbie
Offline
Activity: 40
Merit: 0
|
|
August 26, 2012, 10:10:36 PM |
|
I'm trying to compile cgminer on my Windows 7 Pro 64 bit desktop. I'm at the point where I need to start building cgminer, but I'm getting the following error: The Joey-O@Mr_Compy ~ $ cd cgminer-2.7.4
The Joey-O@Mr_Compy ~/cgminer-2.7.4 $ adl.sh /mingw/bin/adl.sh: /mingw/bin/adl.sh: cannot execute binary file
The Joey-O@Mr_Compy ~/cgminer-2.7.4 $ file adl.sh adl.sh: ERROR: cannot open `adl.sh' (No such file or directory) I made the adl.sh file with the following contents: cp -av ../ADL_SDK/*.h ADL_SDK Then I saved it in \MinGW\msys\1.0\bin. I also made the ADL_SDK directory and placed it in \MinGW\msys\1.0\home\The Joey-O\ with adl_defines.h, adl_sdk.h & adl_structures.h inside. Any idea on what I'm doing wrong? Make sure you have the adl.sh file there. And the CGMiner source code in there somewhere. Not the CGminer already compiled, but you need the source. Ok. I definitely have the adl.sh file where it's supposed to be according to the documentation. How do I know if what I downloaded is source or precompiled code?
|
|
|
|
kano
Legendary
Offline
Activity: 4620
Merit: 1851
Linux since 1997 RedHat 4
|
|
August 26, 2012, 10:22:21 PM |
|
FWIW, my 5850 (stock settings, SDK 2.1) has a 5 MH/s performance loss with the new kernels.
Looks worse than -5 ...
|
|
|
|
sharky112065
|
|
August 26, 2012, 11:04:39 PM Last edit: August 26, 2012, 11:31:34 PM by sharky112065 |
|
I'm trying to compile cgminer on my Windows 7 Pro 64 bit desktop. I'm at the point where I need to start building cgminer, but I'm getting the following error: The Joey-O@Mr_Compy ~ $ cd cgminer-2.7.4
The Joey-O@Mr_Compy ~/cgminer-2.7.4 $ adl.sh /mingw/bin/adl.sh: /mingw/bin/adl.sh: cannot execute binary file
The Joey-O@Mr_Compy ~/cgminer-2.7.4 $ file adl.sh adl.sh: ERROR: cannot open `adl.sh' (No such file or directory) I made the adl.sh file with the following contents: cp -av ../ADL_SDK/*.h ADL_SDK Then I saved it in \MinGW\msys\1.0\bin. I also made the ADL_SDK directory and placed it in \MinGW\msys\1.0\home\The Joey-O\ with adl_defines.h, adl_sdk.h & adl_structures.h inside. Any idea on what I'm doing wrong? Make sure you have the adl.sh file there. And the CGMiner source code in there somewhere. Not the CGminer already compiled, but you need the source. Ok. I definitely have the adl.sh file where it's supposed to be according to the documentation. How do I know if what I downloaded is source or precompiled code? Pre-Compiled code will have cgminer.exe in the folder. I wrote that documentation. I just followed it step by step and it still works. Are you sure the adl.sh file does not have .txt on the end? Make sure you have a cr/lf after "cp -av ../ADL_SDK/*.h ADL_SDK". You could also try putting the file in \MinGW\bin.
|
Donations welcome: 12KaKtrK52iQjPdtsJq7fJ7smC32tXWbWr
|
|
|
-ck (OP)
Legendary
Offline
Activity: 4284
Merit: 1645
Ruu \o/
|
|
August 27, 2012, 12:20:01 AM |
|
On network delays 2.7.4 seems to not bleed shares to my backup pool. I am showing 600Mhahs on pool 0 with pool not providing work fast enough. Using a BFL single with 864 bitstream. Not throttling and no HW errors. If the pool it is on is able to handle the load then it will hit 860 and stay at greater then or equal to 859. What can I do to help track it down as an issue with eclipsemc seems to be causing it and it will likely get fixed fast enough?
This is confirmed not working in 2.7.4 now. It should be fixed in git.
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
Askit2
|
|
August 27, 2012, 01:45:31 AM |
|
Thank You! Any chance of a binary of it? MingW seems to disagree with me in the past. If not I will try building one later tonight.
|
|
|
|
blksith0
Newbie
Offline
Activity: 59
Merit: 0
|
|
August 27, 2012, 02:08:42 AM |
|
So anyone else crashing when they try to write the config?
But now there's another issue, no keypresses will go to to the window, or the cgminer doesn't respond to any.
|
|
|
|
kano
Legendary
Offline
Activity: 4620
Merit: 1851
Linux since 1997 RedHat 4
|
|
August 27, 2012, 02:33:56 AM Last edit: August 27, 2012, 11:51:10 PM by kano |
|
On network delays 2.7.4 seems to not bleed shares to my backup pool. I am showing 600Mhahs on pool 0 with pool not providing work fast enough. Using a BFL single with 864 bitstream. Not throttling and no HW errors. If the pool it is on is able to handle the load then it will hit 860 and stay at greater then or equal to 859. ...
Just a small note about BFLs The actual MH/s value is slightly affected by difficulty change. The change is very small, but it is big enough to see in the screen display (and the API) Firstly as everyone probably knows, you lose on average 1/2 a nonce range per LP. With an LP average time of 10mins, on the 864MH/s bitstream: Nonce range time is ~4.971 seconds so on average you lose (half that) ~2.4855 seconds per LP or ~2.4855 / 600 = ~0.414%So 864 - 0.414% = 864 - 3.58MH/s or a max expected average hash rate of 860.4MH/sHowever, if the difficulty is increasing - e.g. last difficulty increased 11.4% - that means you got the LP's 11.4% faster, on average, for the entire 2016 blocks (almost 2 weeks) Thus the above ~0.414% increases to ~2.4855 / ~531.6 = ~0.468% which is 4.04MH/sSo the maximum average expected hash rate was actually 860.0MH/s for those 2016 blocks. Now that's not much different, but it is enough to actually see the difference on the screen and in the API and also explain where that tiny 0.4 MH/s disappeared to
|
|
|
|
Askit2
|
|
August 27, 2012, 02:37:50 AM |
|
What OS? On windows I did experience an issue where the command window was unable to be selected. When Clicked on there is a generic windows "bing" as though a popup was called for but was not in the foreground like if you on IE right click and on the options click print preview and before the print preview came up tried selecting a different tab or to click refresh button. I am unsure what happened. CGMiner did keep functioning. I did kill it manually and restart giving me access to the options again. This happened to me once about 6 hours maybe into my second run. It did not happen in the 12 hour first run and has not happened in my 30 plus hours on the current run. Crashing when trying to write a config file seems odd. I have 0 idea why it would happen. If the user didn't have write access a 0 byte file shouldn't even show up. You could use a previous config file. I am using one written by 2.6.5 and running 2.7.4. You could write one by hand or change some parts by hand from an older CGMiner. You may not be able to write one for 2.7.4. I have just tried on my win7 64bit machine and created with no crash test.conf. It is 1 KB in size and CGminer is still running. Possibly I could set one up by hand for you if you would like.
|
|
|
|
cuz0882
|
|
August 27, 2012, 07:05:41 AM |
|
What are you guys using when there is more then one COM in the double digits? This was my best idea and it's not working
-S COM8 -S COM9 -S \\.\COM10 -S \\.\COM11
|
|
|
|
farfie
Newbie
Offline
Activity: 63
Merit: 0
|
|
August 27, 2012, 07:40:45 AM |
|
What are you guys using when there is more then one COM in the double digits? This was my best idea and it's not working
-S COM8 -S COM9 -S \\.\COM10 -S \\.\COM11
cgminer should automatically see BFL devices by itself now, unless you're using something else. Also, I think 2.6.5 is in the spot for 2.6.6 @ "cgminer-2.6.6-x86_64-built.tar.bz2".
|
|
|
|
|