OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.11.1

Pages: << < (3289/3370) > >>

Brianna007:

I too am having the same problem after upgrading from Fedora 23 to Fedora 24 and trying to recompile CGMiner.   Some of the research I have done points to it being the newer gcc version 6 in Fedora 24 (was 5.3 in Fedora 23).   I have not found a work around though.   If I come up with something I will pass it along.

-Brianna007

Quote from: Rufus_Lenhador on June 20, 2016, 01:06:36 AM
--
Trying to compile latest cgminer on Arch Linux.
Getting lots of errors like these:

Code:
--
miner.h:228:21: error: storage size of 'bitforce_drv' isn't known
  DRIVER_ADD_COMMAND(bitforce) \
                     ^
miner.h:258:47: note: in definition of macro 'DRIVER_PROTOTYPE'
 #define DRIVER_PROTOTYPE(X) struct device_drv X##_drv;
                                               ^
miner.h:254:2: note: in expansion of macro 'FPGA_PARSE_COMMANDS'
  FPGA_PARSE_COMMANDS(DRIVER_ADD_COMMAND) \
  ^~~~~~~~~~~~~~~~~~~
miner.h:267:1: note: in expansion of macro 'DRIVER_PARSE_COMMANDS'
 DRIVER_PARSE_COMMANDS(DRIVER_PROTOTYPE)
 ^~~~~~~~~~~~~~~~~~~~~
miner.h:229:21: error: storage size of 'modminer_drv' isn't known
  DRIVER_ADD_COMMAND(modminer)
                     ^
miner.h:258:47: note: in definition of macro 'DRIVER_PROTOTYPE'
 #define DRIVER_PROTOTYPE(X) struct device_drv X##_drv;
                                               ^
miner.h:254:2: note: in expansion of macro 'FPGA_PARSE_COMMANDS'
  FPGA_PARSE_COMMANDS(DRIVER_ADD_COMMAND) \
  ^~~~~~~~~~~~~~~~~~~
miner.h:267:1: note: in expansion of macro 'DRIVER_PARSE_COMMANDS'
 DRIVER_PARSE_COMMANDS(DRIVER_PROTOTYPE)
--

Any help?

--


kano:

It's a new rule in the latest gcc that fails the DRIVER_ADD_COMMAND macro in miner.h

A quick work around so you can compile miner.h and usbutils.c is to change 2 places in miner.h and 1 place in usbutils.c

Firstly:
https://github.com/ckolivas/cgminer/blob/master/miner.h#L236
Code:
--
#define FPGA_PARSE_COMMANDS(DRIVER_ADD_COMMAND) \
        DRIVER_ADD_COMMAND(bitforce) \
        DRIVER_ADD_COMMAND(modminer)

--

change the above #define to just be:
Code:
--
#define FPGA_PARSE_COMMANDS(DRIVER_ADD_COMMAND)

--
(note remove the '\' on the end also)

and Secondly:
https://github.com/ckolivas/cgminer/blob/master/miner.h#L236
Code:
--
#define ASIC_PARSE_COMMANDS(DRIVER_ADD_COMMAND) \
.
.
.

--
remove all the driver lines below it that you didn't include in your ./configure command.

e.g. if you
CFLAGS="-O2 -Wall -march=native" ./configure --enable-icarus

Then the changed result would just be:
Code:
--
#define ASIC_PARSE_COMMANDS(DRIVER_ADD_COMMAND) \
        DRIVER_ADD_COMMAND(icarus)


--
(a '\' after every line but the last line)

Thirdly in usbutils.c
https://github.com/ckolivas/cgminer/blob/master/usbutils.c#L3744

Remove all the "case DRIVER_*" lines but the ones you compiled in e.g. for only icarus, change it to just be:
Code:
--
               switch (cgpu->drv->drv_id) {
                        case DRIVER_icarus:
                                DEVWLOCK(cgpu, pstate);
                                release_cgpu(cgpu);
                                DEVWUNLOCK(cgpu, pstate);
                                count++;
                                break;
                        default:
                                break;
                }

--


Polyatomic:

Could also try building with clang its available in EPEL.
Code:
--
milton@milton:~/temp/cgminer$ clang --version
clang version 3.8.0 (tags/RELEASE_380/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

--
buildlog here: http://dpaste.com/3Z7962Z
got it going with some old gear here:
 Code:
--
cgminer version 4.9.2 - Started: [2016-07-16 12:24:27.338]
--------------------------------------------------------------------------------
 (5s):37.26G (1m):37.85G (5m):24.31G (15m):11.01G (avg):37.62Gh/s
 A:2000  R:0  HW:2  WU:525.1/m
 Connected to stratum.ckpool.org diff 1K with stratum as user 1PKN98VN2z5gwSGZvGKS2bj8aADZBkyhkZ.0
 Block: 4454ec80...  Diff:213G  Started: [12:25:55.222]  Best share: 1.71K
--------------------------------------------------------------------------------
 [U]SB management [P]ool management [S]ettings [D]isplay options [Q]uit
  0: ANU 0       : 250MHz                  | 3.301G / 1.926Gh/s WU:26.9/m
  1: ANU 1       : 250MHz                  | 3.030G / 2.105Gh/s WU:29.4/m
  2: ANU 2       : 250MHz                  | 1.461G / 2.270Gh/s WU:31.7/m
  3: ANU 3       : 250MHz                  | 2.177G / 1.678Gh/s WU:23.5/m
  4: ANU 4       : 250MHz                  | 2.614G / 2.174Gh/s WU:30.4/m
  5: ANU 5       : 250MHz                  | 1.917G / 1.912Gh/s WU:26.7/m
  6: ANU 6       : 250MHz                  | 2.579G / 2.022Gh/s WU:28.3/m
  7: ANU 7       : 250MHz                  | 1.733G / 1.555Gh/s WU:21.7/m
  8: ANU 8       : 250MHz                  | 950.8M / 1.926Gh/s WU:26.9/m
  9: ANU 9       : 250MHz                  | 3.413G / 1.857Gh/s WU:26.0/m
 10: ANU 10      : 250MHz                  | 2.224G / 2.174Gh/s WU:30.4/m
 11: ANU 11      : 250MHz                  | 2.550G / 2.022Gh/s WU:28.3/m
 12: ANU 12      : 250MHz                  | 1.348G / 1.857Gh/s WU:26.0/m
 13: ANU 13      : 250MHz                  | 5.615G / 2.201Gh/s WU:30.8/m
 14: ANU 14      : 250MHz                  | 2.573G / 2.009Gh/s WU:28.1/m
 15: ANU 15      : 250MHz                  | 2.950G / 1.775Gh/s WU:24.8/m
 16: ANU 16      : 250MHz                  | 2.231G / 1.981Gh/s WU:27.7/m
 17: ANU 17      : 250MHz                  | 2.598G / 1.981Gh/s WU:27.7/m
 18: ANU 18      : 250MHz                  | 2.181G / 2.174Gh/s WU:30.0/m
--------------------------------------------------------------------------------
 [2016-07-16 12:24:05.797] Started cgminer 4.9.2
 [2016-07-16 12:24:26.338] Probing for an alive pool
 [2016-07-16 12:24:26.912] Pool 0 difficulty changed to 1000
 [2016-07-16 12:24:27.182] Pool 0 message: Authorised, welcome to solo.ckpool.org 1PKN98VN2z5gwSGZvGKS2bj8aADZBkyhkZ!
 [2016-07-16 12:24:27.339] Network diff set to 213G
 [2016-07-16 12:25:55.222] Stratum from pool 0 detected new block at height 420910
 [2016-07-16 12:27:14.942] Pool 0 message: New best ever share for user: 1100.238928
 [2016-07-16 12:27:14.942] Stratum reconnect requested from pool 0 to stratum.ckpool.org:443
 [2016-07-16 12:27:15.873] Pool 0 difficulty changed to 1000
 [2016-07-16 12:27:16.100] Stratum from pool 0 requested work restart
 [2016-07-16 12:27:16.101] Pool 0 message: Authorised, welcome to solo.ckpool.org 1PKN98VN2z5gwSGZvGKS2bj8aADZBkyhkZ!
 [2016-07-16 12:27:50.230] Accepted 400ca180 Diff 1.02K/1000 ANU 13
 [2016-07-16 12:28:58.395] Pool 0 message: New best ever share for user: 1713.233558
 [2016-07-16 12:28:58.395] Accepted 264091fc Diff 1.71K/1000 ANU 4

--


Buchi-88:

I have an problem with the cgminer and th U3, anyone have an idea?
Quote
--
cgminer version 4.9.2 - Started: [2016-07-30 23:57:50.402]
--------------------------------------------------------------------------------
 (5s):1.349M (1m):9.538G (5m):28.75G (15m):18.21G (avg):43.79Gh/s
 A:4898  R:0  HW:4  WU:612.0/m
 Connected to multiple pools with block change notify
 Block: 6084db13...  Diff:2.52M  Started: [00:03:33.486]  Best share: 16.1K
--------------------------------------------------------------------------------
 USB management Pool management Settings Display options Quit
 0: AU3 0       : 225MHz 775mV            | 1.349M / 43.79Gh/s WU:612.0/m
--------------------------------------------------------------------------------
 [2016-07-31 00:06:45.165] AU3 0: Idle for more than 60 seconds, declaring SICK!
 [2016-07-31 00:06:45.167] AU3 0: Attempting to restart
--

 ???


-ck:

Quote from: Buchi-88 on July 30, 2016, 10:37:30 PM
--
I have an problem with the cgminer and th U3, anyone have an idea?
Quote
--
cgminer version 4.9.2 - Started: [2016-07-30 23:57:50.402]
--------------------------------------------------------------------------------
 (5s):1.349M (1m):9.538G (5m):28.75G (15m):18.21G (avg):43.79Gh/s
 A:4898  R:0  HW:4  WU:612.0/m
 Connected to multiple pools with block change notify
 Block: 6084db13...  Diff:2.52M  Started: [00:03:33.486]  Best share: 16.1K
--------------------------------------------------------------------------------
 USB management Pool management Settings Display options Quit
 0: AU3 0       : 225MHz 775mV            | 1.349M / 43.79Gh/s WU:612.0/m
--------------------------------------------------------------------------------
 [2016-07-31 00:06:45.165] AU3 0: Idle for more than 60 seconds, declaring SICK!
 [2016-07-31 00:06:45.167] AU3 0: Attempting to restart
--

 ???


--
Looks typical of the U3, it's a steaming pile of shit and it's started failing for you.

Pages: << < (3289/3370) > >>