Author

Topic: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.11.0 - page 507. (Read 5805546 times)

sr. member
Activity: 451
Merit: 250
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
legendary
Activity: 4088
Merit: 1631
Ruu \o/
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.
newbie
Activity: 59
Merit: 0
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:
Code:
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:
Code:
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.
newbie
Activity: 40
Merit: 0
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:
Code:
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:
Code:
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?
sr. member
Activity: 451
Merit: 250
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:

Code:
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:

Code:
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?
newbie
Activity: 63
Merit: 0
Hard lock. Where the thing just locks at whatever it was doing and stops accepting input. Monitor continues to output video, but nothing is animated of course.

It's a video card freeze.
Are your video cards overclocked or undervolted?

If it happens again, try to ssh from another box if you can.

Quote
Have to hold down the power button to reset.

Didn't you try the magic sysrq keys (in Linux, of course)?
Sync first (S), then remount ro (U), then reboot (B).
http://en.wikipedia.org/wiki/Magic_SysRq_key
--
Bye

I guess your post does reveal my vagueness.

First off I don't GPU mine, and while I definitely expect Linux's GPU drivers to be flaky, I've never had a problem on my Windows machine... ever. And even with knowing that Linux has crap for GPU drivers, I've never had a problem on that machine before either. But then both freeze soon after 2.7.4?

Either way, both cards are on stock settings and are not being used to mine either. I have only BFL devices. Again, not trying to point fingers but it does seem pretty coincidental.

About your magic keys, no I didn't do that. I know nothing about Linux, and maybe a little more about coding. Took C, C++, Java, VB back in college, never went anywhere with it. But I do know that code gets extremely complex, and when you have someone (like ck here) that loves to hack at his code, I try to bring any possibility of problem along in here because it's a rare opportunity to have such a close, ongoing communication between the main developer of -any- widely used software. This is because that even if your problem doesn't bring any bug kill to fruition, you never quite know how you're poking his brain with your words Smiley

..not that I don't think you know all of this. But some here might find this useful.
I will wait for both machines to freeze in a similar manner, and if it happens go back to 2.6.6 and wait for another freeze.
legendary
Activity: 2576
Merit: 1186
FWIW, my 5850 (stock settings, SDK 2.1) has a 5 MH/s performance loss with the new kernels.
sr. member
Activity: 252
Merit: 250
Inactive

Other than that, only other thing that's off is that when I start 2.7.4 on the 60GH machine, I get a massive log full of "pool not providing work fast enough" right at the beginning. Like 16 lines, heh. Just an aesthetic thing if anything.

I get this, 20 or so at a time, from time to time on 2.7.4. 
sr. member
Activity: 451
Merit: 250
Sorry about this question if it is already answered but this thread is very long to look through.

Version 2.7.4 gives me faster hash rates if I increase the memory clock from 150 MHz to 300 MHz.  The previous version 2.6.4 does the same at 150 or 300.  Is this a known effect?  Is there anything else I should know without just experimenting.  My cards are 5870, 5850 and 5830.  The increase is about 2.5%.  This is significant and the fastest I've ever obtained with any cgminer version.
member
Activity: 266
Merit: 36
2.7.4 has been running for 24 hours now on my Ubuntu 3x5970 rig with p2pool. Previous version was 2.6.5. With worksize 128 (previous was default) and memclock 250 (previous was 200), the hash rate is 0.9% lower. That's not a serious concern, but is there anything I should tweak to see if the previous rate is attainable?
Lem
newbie
Activity: 78
Merit: 0
Hard lock. Where the thing just locks at whatever it was doing and stops accepting input. Monitor continues to output video, but nothing is animated of course.

It's a video card freeze.
Are your video cards overclocked or undervolted?

If it happens again, try to ssh from another box if you can.

Quote
Have to hold down the power button to reset.

Didn't you try the magic sysrq keys (in Linux, of course)?
Sync first (S), then remount ro (U), then reboot (B).
http://en.wikipedia.org/wiki/Magic_SysRq_key
--
Bye
newbie
Activity: 63
Merit: 0
Not trying to say cgminer caused this, but I had my Ubuntu machine freeze on me yesterday and that has literally never happened before... thought nothing of it at first, but now just tonight my Windows 7 machine just froze as well... that also hasn't happened, in probably a few YEARS. And they both just happen to be running 2.7.4 now.

Coincidence? Maybe..

Hard lock. Where the thing just locks at whatever it was doing and stops accepting input. Monitor continues to output video, but nothing is animated of course. Have to hold down the power button to reset. Both computers froze in the same fashion.

Again, no clue if cgminer is even capable of freezing a computer but this just seems way too coincidental to not mention.
The other thing is that they're both operating in very different environments. Both on their own electric circuit, one has an AMD card while the other nVidia, and on the Ubuntu machine cgminer is literally the only process running. I mean cgminer is the only common denominator, literally, outside of both pc's having an intel processor.
But you would think something like this would be reported already. I don't know, I'll keep an eye out.

Other than that, only other thing that's off is that when I start 2.7.4 on the 60GH machine, I get a massive log full of "pool not providing work fast enough" right at the beginning. Like 16 lines, heh. Just an aesthetic thing if anything.
legendary
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
Hey, whenever I try to write my config on CGMiner, it creates a 0 byte conf file then crashes.
Any reason why?
Nope
newbie
Activity: 59
Merit: 0
Hey, whenever I try to write my config on CGMiner, it creates a 0 byte conf file then crashes.
Any reason why?
sr. member
Activity: 274
Merit: 250
Just compiled 2.7.4 on my fpga rig.
5xztex + 3xbfl works nice ATM.
Lets see the speed now Smiley
hero member
Activity: 981
Merit: 500
DIV - Your "Virtual Life" Secured and Decentralize
Pool info says Stragetgy: failover.
Failover only disabled.
I wonder if the two got backwards.
I am going to try failover only and see if it helps.

Edit: With failover only When issues did come up cgminer more gracefully failed to backup pools. Yesterday when failing back even my local backup pool said it was providing work too slowly. I have tested it by using only that pool and it has always easily kept up. When failing back yesterday it seemed like pools that should and previously had been able to easily keep my one BFL single busy suddenly couldn't. I am unsure if that helps any. Restarting did help avoid the problem until another server error caused  failure. On restart suddenly all pools where alive and I was able to submit shares at a normal rate again. Since the third restart I have not had the issue arise again. Either EclipseMC didn't cut out as bad today or failover only worked far better. My average was still low with failover only, 844 instead of 848-850, but not as low. Test was overly short so it could be that the low average was just from the test being only about 12 hours.

Edit for a question addition:
What is ment by this line in the pool options dialog
0 Rejecting Alive Priority 0 pool user (I am specifically interested in the Rejecting part)?
12 sequential rejected shares.
Trying eclipsmc's difficulty 10 server maybe it will be less likely to reject out.
What would cause it to try that pool again?
Was rejecting when I went to sleep still rejecting when I got up. It is concievable that it came back alive and went rejecting again I don't know if  did.
member
Activity: 136
Merit: 10
tester
windows 7 SP1 x64
driver 12.8
DSK 12.7

cgminer 2.7.4 every 5 to 6 hours crash whit this error
Code:
Faulting application name: cgminer.exe, version: 0.0.0.0, time stamp: 0x50364c84
Faulting module name: aticaldd.dll, version: 6.14.10.1741, time stamp: 0x501340a0
Exception code: 0xc0000005
Fault offset: 0x0003bb48
Faulting process id: 0x9c0
Faulting application start time: 0x01cd82a9fc1e8960
Faulting application path: D:\mining\cgminer\cgminer.exe
Faulting module path: C:\Windows\system32\aticaldd.dll
Report Id: 50dd7a60-eede-11e1-8a7e-001d60c3d47b
back to 2.6.6
hero member
Activity: 591
Merit: 500
Do you have --failover-only enabled? If so, don't, if you want shares to leak.
I don't have failover only enabled and I'm not getting any leaked shares either.
newbie
Activity: 59
Merit: 0
Hey, whenever I try to write my config on CGMiner, it creates a 0 byte conf file then crashes.
Any reason why?
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Hello

I really like the new version, it is giving better hashrate a little bit on my 7970, now its ~ 685.

Sad thing is that with this new version i starting to see error about driver recovery, when using mozilla firefox with many tabs opened.

Any suggestions? Thanks

I think ckolivas has said many times that the latest iterations are more aggressive/efficient and hence the GPU is getting even less idling time.  This means any basic rendering it has to do even for web browsing or flash gets squeezed even more.  Either back down your clock rate while surfing or turn down intensity.

Thanks for the answer, i had suspicions about that by myself. Curently using intensity of 9. What is tipycal/best intensity for 7970 while doing something on PC (just web basicly, flash hardware acceleration is turned off) and what would be the best intensity if nothing else on computer is done?
Tried dynamic mode?
Jump to: