ckolivas/cgminer — Issue #132: OSX XCode 4.3 problem
Author: mort666
Created: 2012-02-22 17:47:05+00:00
State: open

I'm trying to run a version of cgminer on OS X Lion built with the compiler tools from Xcode 4.3. Build is fine, however when running the built code I get the following error on execution.

[2012-02-22 17:42:56] Started cgminer 2.2.7
[2012-02-22 17:42:56] Probing for an alive pool
[2012-02-22 17:42:58] Long-polling activated for http://api2.bitcoin.cz:8407
[2012-02-22 17:42:58] Error -11: Building Program (clBuildProgram)
[2012-02-22 17:42:58] :745:8: error: can't convert between vector values of different size ('u' (aka '__uint2') and 'long')
Vals[7]+=0x15807AA98;
~~~~~~~^ ~~~~~~~~~~~

[2012-02-22 17:42:58] Failed to init GPU thread 0, disabling device 0
[2012-02-22 17:42:58] Restarting the GPU from the menu will not fix this.
[2012-02-22 17:42:58] Try restarting cgminer.
[2012-02-22 17:42:58] Error -11: Building Program (clBuildProgram)
[2012-02-22 17:42:58] :745:8: error: can't convert between vector values of different size ('u' (aka '__uint2') and 'long')
Vals[7]+=0x15807AA98;
~~~~~~~^ ~~~~~~~~~~~

[2012-02-22 17:42:58] Failed to init GPU thread 1, disabling device 0
[2012-02-22 17:42:58] Disabling extra threads due to dynamic mode.
[2012-02-22 17:42:58] Tune dynamic intensity with --gpu-dyninterval

Now this is on a brand new machine and an older iMac with a new install of OS X Lion and clean install of Xcode 4.3. On my old machine which is running Xcode 4.2 on Lion the build again is fine execution is fine and it happily runs. Any ideas?

The machines in question with the problem are a Late 2011 Macbook Pro 15inch and a Mid-2010 iMac (Both ATI cards). The machine it works find is a Late-2010 Macbook Pro 15inch (330M Nvidia).