Bitcoin Forum
April 19, 2024, 05:50:08 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 [137] 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 ... 843 »
  Print  
Author Topic: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.11.1  (Read 5805205 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic. (3 posts by 1+ user deleted.)
-ck (OP)
Legendary
*
Offline Offline

Activity: 4088
Merit: 1630


Ruu \o/


View Profile WWW
January 05, 2012, 05:51:00 AM
 #2721

Donation site is completely down for the moment so if it works through this then all is well. I consider this bugfix big enough to warrant a new version entirely.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
1713505808
Hero Member
*
Offline Offline

Posts: 1713505808

View Profile Personal Message (Offline)

Ignore
1713505808
Reply with quote  #2

1713505808
Report to moderator
1713505808
Hero Member
*
Offline Offline

Posts: 1713505808

View Profile Personal Message (Offline)

Ignore
1713505808
Reply with quote  #2

1713505808
Report to moderator
1713505808
Hero Member
*
Offline Offline

Posts: 1713505808

View Profile Personal Message (Offline)

Ignore
1713505808
Reply with quote  #2

1713505808
Report to moderator
"If you don't want people to know you're a scumbag then don't be a scumbag." -- margaritahuyan
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713505808
Hero Member
*
Offline Offline

Posts: 1713505808

View Profile Personal Message (Offline)

Ignore
1713505808
Reply with quote  #2

1713505808
Report to moderator
BkkCoins
Hero Member
*****
Offline Offline

Activity: 784
Merit: 1009


firstbits:1MinerQ


View Profile WWW
January 05, 2012, 05:57:12 AM
 #2722

Just reporting, after upgrading to 2.1.0 my reject rate has been lower over the last 3 hours average. Now between 0.7% and 1.2% instead of 3%-7%. Much better. Thanks!

-ck (OP)
Legendary
*
Offline Offline

Activity: 4088
Merit: 1630


Ruu \o/


View Profile WWW
January 05, 2012, 05:59:54 AM
 #2723

Just reporting, after upgrading to 2.1.0 my reject rate has been lower over the last 3 hours average. Now between 0.7% and 1.2% instead of 3%-7%. Much better. Thanks!
Thanks for the feedback. This reject problem was a difficult bug to track and only affected people with multiple pools set up (which most of us do).

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
-ck (OP)
Legendary
*
Offline Offline

Activity: 4088
Merit: 1630


Ruu \o/


View Profile WWW
January 05, 2012, 06:19:58 AM
 #2724

Yes when the donation pool is down it leaks the failed work requests to other pools so that's the intended behaviour. Perhaps I should make it specifically use whatever is considered the current pool instead.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
-ck (OP)
Legendary
*
Offline Offline

Activity: 4088
Merit: 1630


Ruu \o/


View Profile WWW
January 05, 2012, 11:06:47 AM
 #2725

Done, updated git tree so the primary pool is not considered lagging if the donation pool falls over.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
meti
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
January 05, 2012, 01:25:13 PM
 #2726

Hi!

I'm just trying to build this on OsX 10.7.2 but get stuck in an error at
./configure if i'm using CFLAGS="-O2 -Wall -march=native" ./configure like in the Readme file.

Code:
noname:cgminer Matthias$ ./autogen.sh
configure.ac:52: installing `./compile'
configure.ac:17: installing `./config.guess'
configure.ac:17: installing `./config.sub'
configure.ac:22: installing `./install-sh'
configure.ac:22: installing `./missing'
ccan/Makefile.am: installing `./depcomp'
noname:cgminer Matthias$ CFLAGS="-O2 -Wall -march=native" ./configure
checking build system type... x86_64-apple-darwin11.2.0
checking host system type... x86_64-apple-darwin11.2.0
checking target system type... x86_64-apple-darwin11.2.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/Users/Matthias/Desktop/Coins/btc/cgminer':
configure: error: C compiler cannot create executables
See `config.log' for more details

If I use ./configure without CFLAGS i get an error at make:
./configure :
Code:
noname:cgminer Matthias$ ./configure
checking build system type... x86_64-apple-darwin11.2.0
checking host system type... x86_64-apple-darwin11.2.0
checking target system type... x86_64-apple-darwin11.2.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for ranlib... ranlib
checking whether gcc needs -traditional... no
checking whether gcc and cc understand -c and -o together... yes
checking for ranlib... (cached) ranlib
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for stdint.h... (cached) yes
checking for mprotect... yes
checking for sigaction... yes
checking for sigaltstack... yes
checking for siginterrupt... yes
checking for mmap... yes
checking for MAP_ANONYMOUS... yes
checking whether memchr works... yes
checking whether memmem is declared... yes
checking for memmem... yes
checking whether memmem works... no
checking for C/C++ restrict keyword... __restrict
checking for uid_t in sys/types.h... yes
checking for inline... inline
checking whether the preprocessor supports include_next... yes
checking whether system header files limit the line length... no
checking for wchar_t... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking whether stdint.h conforms to C99... no
checking sys/inttypes.h usability... no
checking sys/inttypes.h presence... no
checking for sys/inttypes.h... no
checking sys/bitypes.h usability... no
checking sys/bitypes.h presence... no
checking for sys/bitypes.h... no
checking for bit size of ptrdiff_t... 64
checking for bit size of size_t... 64
checking for bit size of sig_atomic_t... 32
checking for bit size of wchar_t... 32
checking for bit size of wint_t... 32
checking whether sig_atomic_t is signed... yes
checking whether wchar_t is signed... yes
checking whether wint_t is signed... yes
checking for ptrdiff_t integer literal suffix... l
checking for size_t integer literal suffix... ul
checking for sig_atomic_t integer literal suffix...
checking for wchar_t integer literal suffix...
checking for wint_t integer literal suffix...
checking whether memmem is declared without a macro... yes
checking whether mempcpy is declared without a macro... no
checking whether memrchr is declared without a macro... no
checking whether rawmemchr is declared without a macro... no
checking whether stpcpy is declared without a macro... yes
checking whether stpncpy is declared without a macro... yes
checking whether strchrnul is declared without a macro... no
checking whether strdup is declared without a macro... yes
checking whether strncat is declared without a macro... yes
checking whether strndup is declared without a macro... yes
checking whether strnlen is declared without a macro... yes
checking whether strpbrk is declared without a macro... yes
checking whether strsep is declared without a macro... yes
checking whether strcasestr is declared without a macro... yes
checking whether strtok_r is declared without a macro... yes
checking whether strerror_r is declared without a macro... yes
checking whether strsignal is declared without a macro... yes
checking whether strverscmp is declared without a macro... no
checking for memmem... (cached) yes
checking whether memmem works... (cached) no
checking for struct sigaction.sa_sigaction... yes
checking for volatile sig_atomic_t... yes
checking for sighandler_t... no
checking whether sigaction is declared without a macro... yes
checking whether sigaddset is declared without a macro... yes
checking whether sigdelset is declared without a macro... yes
checking whether sigemptyset is declared without a macro... yes
checking whether sigfillset is declared without a macro... yes
checking whether sigismember is declared without a macro... yes
checking whether sigpending is declared without a macro... yes
checking whether sigprocmask is declared without a macro... yes
checking for sigprocmask... yes
checking whether NULL can be used in arbitrary expressions... yes
checking for ANSI C header files... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for OpenCL... yes
checking for pthread_create in -lpthread... yes
checking for json_loads in -ljansson... no
checking for ADL_SDK/adl_sdk.h... no
checking for library containing addstr... -lncurses
checking for addstr in -lncurses... yes
checking for addstr in -lpdcurses... no
checking for yasm... /opt/local/bin/yasm
checking if yasm version is greater than 1.0.1... yes
checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBCURL... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating compat/Makefile
config.status: creating compat/jansson/Makefile
config.status: creating x86_64/Makefile
config.status: creating x86_32/Makefile
config.status: creating ccan/Makefile
config.status: creating lib/Makefile
config.status: creating config.h
config.status: executing depfiles commands



------------------------------------------------------------------------
cgminer 2.1.1
------------------------------------------------------------------------


Configuration Options Summary:

  OpenCL...............: FOUND. GPU mining support enabled
  ADL..................: SDK NOT found, GPU monitoring support DISABLED
  ASM.(for CPU mining).: true

Compilation............: make (or gmake)
  CPPFLAGS.............:
  CFLAGS...............: -g -O2
  LDFLAGS..............: 
  LDADD................:  -L/opt/local/lib -lcurl   compat/jansson/libjansson.a -lpthread -framework OpenCL -lncurses   -lm

Installation...........: make install (as root if needed, with 'su' or 'sudo')
  prefix...............: /usr/local


make :
Code:
noname:cgminer Matthias$ make
make  all-recursive
Making all in lib
  GEN    arg-nonnull.h
  GEN    c++defs.h
  GEN    warn-on-use.h
  GEN    signal.h
  GEN    stdint.h
  GEN    string.h
make  all-recursive
  CC     dummy.o
  CC     memmem.o
  AR     libgnu.a
/usr/bin/ranlib: file: libgnu.a(dummy.o) has no symbols
ranlib: file: libgnu.a(dummy.o) has no symbols
Making all in compat
Making all in jansson
  CC     dump.o
  CC     hashtable.o
  CC     load.o
  CC     strbuffer.o
  CC     utf.o
  CC     value.o
  CC     memory.o
  CC     error.o
  AR     libjansson.a
make[3]: Nothing to be done for `all-am'.
Making all in ccan
  CC     helpers.o
  CC     opt.o
  CC     parse.o
  CC     usage.o
  AR     libccan.a
Making all in x86_64
/opt/local/bin/yasm -f elf64 sha256_xmm_amd64.asm
/opt/local/bin/yasm -f elf64 sha256_sse4_amd64.asm
  AR     libx8664.a
ranlib: warning for library: libx8664.a the table of contents is empty (no object file members in the library define global symbols)
  CC     cgminer-main.o
  CC     cgminer-util.o
  CC     cgminer-ocl.o
  CC     cgminer-findnonce.o
  CC     cgminer-sha256_generic.o
  CC     cgminer-sha256_4way.o
  CC     cgminer-sha256_via.o
  CC     cgminer-sha256_cryptopp.o
  CC     cgminer-sha256_sse2_amd64.o
  CC     cgminer-sha256_sse4_amd64.o
  CC     cgminer-sha256_sse2_i386.o
  CC     cgminer-sha256_altivec_4way.o
  CC     cgminer-adl.o
  CC     cgminer-sha2.o
  CC     cgminer-api.o
api.c:140: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sock’
api.c:359: error: expected ‘)’ before ‘c’
api.c:452: error: expected ‘)’ before ‘c’
api.c:487: error: expected ‘)’ before ‘c’
api.c:520: error: expected ‘)’ before ‘c’
api.c:553: error: expected ‘)’ before ‘c’
api.c:615: error: expected ‘)’ before ‘c’
api.c:642: error: expected ‘)’ before ‘c’
api.c:688: error: expected ‘)’ before ‘c’
api.c:718: error: expected ‘)’ before ‘c’
api.c:743: error: expected ‘)’ before ‘c’
api.c:757: error: expected ‘)’ before ‘c’
api.c:771: error: expected ‘)’ before ‘c’
api.c:773: error: expected ‘)’ before ‘c’
api.c:788: error: expected ‘)’ before ‘char’
api.c:789: warning: no semicolon at end of struct or union
api.c:790: error: ‘apiversion’ undeclared here (not in a function)
api.c:790: warning: excess elements in struct initializer
api.c:790: warning: (near initialization for ‘cmds[0]’)
api.c:791: error: ‘devstatus’ undeclared here (not in a function)
api.c:791: warning: excess elements in struct initializer
api.c:791: warning: (near initialization for ‘cmds[1]’)
api.c:792: error: ‘poolstatus’ undeclared here (not in a function)
api.c:792: warning: excess elements in struct initializer
api.c:792: warning: (near initialization for ‘cmds[2]’)
api.c:793: error: ‘summary’ undeclared here (not in a function)
api.c:793: warning: excess elements in struct initializer
api.c:793: warning: (near initialization for ‘cmds[3]’)
api.c:794: error: ‘gpuenable’ undeclared here (not in a function)
api.c:794: warning: excess elements in struct initializer
api.c:794: warning: (near initialization for ‘cmds[4]’)
api.c:795: error: ‘gpudisable’ undeclared here (not in a function)
api.c:795: warning: excess elements in struct initializer
api.c:795: warning: (near initialization for ‘cmds[5]’)
api.c:796: error: ‘gpurestart’ undeclared here (not in a function)
api.c:796: warning: excess elements in struct initializer
api.c:796: warning: (near initialization for ‘cmds[6]’)
api.c:797: error: ‘gpudev’ undeclared here (not in a function)
api.c:797: warning: excess elements in struct initializer
api.c:797: warning: (near initialization for ‘cmds[7]’)
api.c:798: error: ‘cpudev’ undeclared here (not in a function)
api.c:798: warning: excess elements in struct initializer
api.c:798: warning: (near initialization for ‘cmds[8]’)
api.c:799: error: ‘gpucount’ undeclared here (not in a function)
api.c:799: warning: excess elements in struct initializer
api.c:799: warning: (near initialization for ‘cmds[9]’)
api.c:800: error: ‘cpucount’ undeclared here (not in a function)
api.c:800: warning: excess elements in struct initializer
api.c:800: warning: (near initialization for ‘cmds[10]’)
api.c:801: error: ‘doquit’ undeclared here (not in a function)
api.c:801: warning: excess elements in struct initializer
api.c:801: warning: (near initialization for ‘cmds[11]’)
api.c:805: error: expected ‘)’ before ‘c’
api.c: In function ‘tidyup’:
api.c:834: error: ‘sock’ undeclared (first use in this function)
api.c:834: error: (Each undeclared identifier is reported only once
api.c:834: error: for each function it appears in.)
api.c:834: error: ‘INVSOCK’ undeclared (first use in this function)
api.c: In function ‘api’:
api.c:856: error: ‘SOCKETTYPE’ undeclared (first use in this function)
api.c:856: error: expected ‘;’ before ‘c’
api.c:862: error: storage size of ‘serv’ isn’t known
api.c:863: error: storage size of ‘cli’ isn’t known
api.c:883: error: ‘sock’ undeclared (first use in this function)
api.c:884: error: ‘INVSOCK’ undeclared (first use in this function)
api.c:885: error: ‘SOCKERRMSG’ undeclared (first use in this function)
api.c:895: error: ‘INVINETADDR’ undeclared (first use in this function)
api.c:941: error: ‘c’ undeclared (first use in this function)
api.c:949: warning: assignment makes pointer from integer without a cast
api.c:954: warning: assignment makes pointer from integer without a cast
api.c:1029: error: ‘struct CMDS’ has no member named ‘func’
make[2]: *** [cgminer-api.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Here are the dependencies i installed previously (I hope there is nothing missing):
Code:
noname:cgminer Matthias$ port installed
The following ports are currently installed:
  autoconf @2.68_2 (active)
  automake @1.11.2_0 (active)
  curl @7.23.1_0+ssl (active)
  curl-ca-bundle @7.23.1_0 (active)
  expat @2.0.1_1 (active)
  gdbm @1.10_1 (active)
  gettext @0.18.1.1_2 (active)
  glib2 @2.30.2_2 (active)
  gperf @3.0.4_2 (active)
  help2man @1.40.4_1 (active)
  jansson @2.1_0 (active)
  libffi @3.0.10_2 (active)
  libiconv @1.14_0 (active)
  libidn @1.22_0 (active)
  m4 @1.4.16_0 (active)
  ncurses @5.9_1 (active)
  ncursesw @5.8_0 (active)
  openssl @1.0.0e_1 (active)
  p5.12-locale-gettext @1.50.0_6 (active)
  perl5 @5.12.3_1+perl5_12 (active)
  perl5.12 @5.12.3_3 (active)
  pkgconfig @0.26_1 (active)
  xz @5.0.3_0 (active)
  yasm @1.1.0_0 (active)
  zlib @1.2.5_0 (active)

Can anyone help me please? I'd really like to get this running.
slush
Legendary
*
Offline Offline

Activity: 1386
Merit: 1097



View Profile WWW
January 05, 2012, 01:36:38 PM
 #2727

ckolivas, if I'm reading source code correctly, only "data" and "target" fields are necessary in getwork request, right? The rest can be calculated directly by the miner.

I also see that you're requesting 128 bytes of "data", although only first 80 bytes is really used for hashing. Can you please modify the miner that 80 bytes (160 chars in hex in getwork stream) will be enough for hashing? I'm working on some pool update and found that both poclbm and phoenix will work with 80 bytes in data already, but I would like to support your miner with this extension as well...

BkkCoins
Hero Member
*****
Offline Offline

Activity: 784
Merit: 1009


firstbits:1MinerQ


View Profile WWW
January 05, 2012, 01:41:01 PM
 #2728

@meti
You will need to copy the SDK header files into the ADL_SDK subdir.
You should have files like this,

adl_defines.h
adl_sdk.h
adl_structures.h

usually found in ADL_SDK/includes from the SDK install.

meti
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
January 05, 2012, 01:48:15 PM
 #2729

@meti
You will need to copy the SDK header files into the ADL_SDK subdir.
You should have files like this,

adl_defines.h
adl_sdk.h
adl_structures.h

usually found in ADL_SDK/includes from the SDK install.


does this apply to nvidia graphics too?
-ck (OP)
Legendary
*
Offline Offline

Activity: 4088
Merit: 1630


Ruu \o/


View Profile WWW
January 05, 2012, 02:23:44 PM
 #2730

@meti
You will need to copy the SDK header files into the ADL_SDK subdir.
You should have files like this,

adl_defines.h
adl_sdk.h
adl_structures.h

usually found in ADL_SDK/includes from the SDK install.


does this apply to nvidia graphics too?
No, the ADL is the ATI Display Library, and it only works on linux and windows.

Your build failure is due to the new api code. I'll have to refer this to kano for him to fix the build problems in osx. 2.0.8 may be the last version that compiles on osx for now.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
-ck (OP)
Legendary
*
Offline Offline

Activity: 4088
Merit: 1630


Ruu \o/


View Profile WWW
January 05, 2012, 02:34:47 PM
 #2731

ckolivas, if I'm reading source code correctly, only "data" and "target" fields are necessary in getwork request, right? The rest can be calculated directly by the miner.

I also see that you're requesting 128 bytes of "data", although only first 80 bytes is really used for hashing. Can you please modify the miner that 80 bytes (160 chars in hex in getwork stream) will be enough for hashing? I'm working on some pool update and found that both poclbm and phoenix will work with 80 bytes in data already, but I would like to support your miner with this extension as well...
Should work already without midstate and smaller data type.

See this commit:
https://github.com/ckolivas/cgminer/commit/e8720b908428fabac59da161b0648091179688b1

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
slush
Legendary
*
Offline Offline

Activity: 1386
Merit: 1097



View Profile WWW
January 05, 2012, 02:45:23 PM
 #2732

Should work already without midstate and smaller data type.

Excellent, thanks!

meti
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
January 05, 2012, 02:57:11 PM
 #2733

@meti
You will need to copy the SDK header files into the ADL_SDK subdir.
You should have files like this,

adl_defines.h
adl_sdk.h
adl_structures.h

usually found in ADL_SDK/includes from the SDK install.


does this apply to nvidia graphics too?
No, the ADL is the ATI Display Library, and it only works on linux and windows.

Your build failure is due to the new api code. I'll have to refer this to kano for him to fix the build problems in osx. 2.0.8 may be the last version that compiles on osx for now.

Hm couldn't get to finish 2.0.8 either. But thanks for your reply! Maybe a future version will support osx again.
kano
Legendary
*
Offline Offline

Activity: 4466
Merit: 1798


Linux since 1997 RedHat 4


View Profile
January 05, 2012, 03:29:03 PM
 #2734

...
Can anyone help me please? I'd really like to get this running.
Firstly the fact that "configure" says "checking whether the C compiler works... no"
suggests that you need to fix your compile environment so it actually works normally.

Only Suggestion I have for api.c
(since I do not have OSX and the Apple license says that if I buy OSX, I must not install it on my Linux computer - Apple are a bunch of fags)
is that at line 24 it says "#if defined(unix)"
Now OSX is a "unix" OS (it's based on BSD) so I guess whatever compiler you are using doesn't know that Tongue
So if you just remove that line 24 and the matching "#endif" that may fix it?

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
mmortal03
Legendary
*
Offline Offline

Activity: 1762
Merit: 1010


View Profile
January 05, 2012, 05:22:45 PM
 #2735

One other thing, is anyone able to start cgminer from a remote desktop session and have it detect their gpus? I can monitor what cgminer is doing on my machine over remote desktop, but if I close cgminer remotely and then try to start it back up from the remote session, it doesn't detect the gpu.

I don't know about windows, but with linux you need DISPLAY=:0 before your launch string if starting over vnc/ssh to detect the GPU's. 

Is there anyone who knows if there is a Windows equivalent?
P4man
Hero Member
*****
Offline Offline

Activity: 518
Merit: 500



View Profile
January 05, 2012, 05:23:55 PM
 #2736

Dont use remote desktop. Try VNC.

-ck (OP)
Legendary
*
Offline Offline

Activity: 4088
Merit: 1630


Ruu \o/


View Profile WWW
January 05, 2012, 08:36:05 PM
Last edit: January 05, 2012, 08:48:33 PM by ckolivas
 #2737

...
Can anyone help me please? I'd really like to get this running.
Firstly the fact that "configure" says "checking whether the C compiler works... no"
suggests that you need to fix your compile environment so it actually works normally.
from FAQ:

Q: The build fails with gcc is unable to build a binary.
A: Remove the "-march=native" component of your CFLAGS as your version of gcc
does not support it.

His build problems are elsewhere though. I haven't had anyone who could help me on osx for a while so I've been unable to keep the osx build working.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
-ck (OP)
Legendary
*
Offline Offline

Activity: 4088
Merit: 1630


Ruu \o/


View Profile WWW
January 05, 2012, 08:54:19 PM
 #2738

Your build failure is due to the new api code. I'll have to refer this to kano for him to fix the build problems in osx. 2.0.8 may be the last version that compiles on osx for now.

Hm couldn't get to finish 2.0.8 either. But thanks for your reply! Maybe a future version will support osx again.
Try building 2.0.8 but without yasm installed. It looks like it's dying on the (useless) CPU mining assembly code. That is unless you want to do CPU mining...

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
os2sam
Legendary
*
Offline Offline

Activity: 3578
Merit: 1090


Think for yourself


View Profile
January 06, 2012, 03:03:50 AM
 #2739

One other thing, is anyone able to start cgminer from a remote desktop session and have it detect their gpus? I can monitor what cgminer is doing on my machine over remote desktop, but if I close cgminer remotely and then try to start it back up from the remote session, it doesn't detect the gpu.

I don't know about windows, but with linux you need DISPLAY=:0 before your launch string if starting over vnc/ssh to detect the GPU's. 

Is there anyone who knows if there is a Windows equivalent?

Remote desktop sessions don't have access to GPU hardware.

Yes there is a Windoze equivalent, its called VNC.  VNC works for me, usually, but it can be a little flaky.
Sam

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
dlasher
Sr. Member
****
Offline Offline

Activity: 467
Merit: 250



View Profile WWW
January 06, 2012, 04:51:29 AM
 #2740

First off, LOVE cgminer, amazing, thank you.. please never stop development!!

Card order/sorting...

Is there any way to get CGMiner to indicate the card type it has assigned to "CARD 0", "CARD 1" etc, or at least check it against the "list-adapters" list?

Case in point, what the ATI driver indicates as card 0,1,2 is backwards from what CG miner chooses... has bit me more than once.

Example?

Quote
[root@miners]# DISPLAY=:0 aticonfig --list-adapters
* 0. 08:00.0 AMD Radeon HD 6900 Series
  1. 04:00.0 ATI Radeon HD 5800 Series

* - Default adapter

but cgminer has the 5800 series as GPU 0, and 6900 Series as Card 1

Quote
GPU 0: 398.9 / 392.2 Mh/s | A:371  R:0  HW:0  U:5.29/m  I:9
80.0 C  F: 42% (1801 RPM)  E: 960 MHz  M: 300 Mhz  V: 1.088V  A: 99% P: 0%

GPU 1: 364.2 / 366.1 Mh/s | A:361  R:1  HW:0  U:5.15/m  I:9
78.0 C  F: 52% (2888 RPM)  E: 900 MHz  M: 1250 Mhz  V: 1.100V  A: 99% P: 0%


(now that I'm posting this, I'm wondering whether my DISPLAY order in xorg.conf doesn't match the adapter list, order wise, and whether I could fix it that way... but it would still be nice to see cgminer identify the card matching GPU)

Pages: « 1 ... 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 [137] 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 ... 843 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!