Post
Topic
Board Mining software (miners)
Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx
by
The00Dustin
on 20/07/2011, 20:24:07 UTC
I'm not having much luck compiling this on Fedora 15.  This is where make craps out:

make[2]: Entering directory `/usr/src/cgminer-1.3.1'
gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing  -I./lib -I./lib  -DHAS_YASM -g -O2 -MT cgminer-main.o -MD -MP -MF .deps/cgminer-main.Tpo -c -o cgminer-main.o `test -f 'main.c' || echo './'`main.c
main.c: In function âload_configâ:
main.c:605:2: error: too many arguments to function âjson_load_fileâ
/usr/include/jansson.h:162:9: note: declared here
make[2]: *** [cgminer-main.o] Error 1
make[2]: Leaving directory `/usr/src/cgminer-1.3.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/cgminer-1.3.1'
make: *** [all] Error 2


I looked at the MakeFile and if I edit it as follows:

-#JANSSON_INCLUDES =
-JANSSON_INCLUDES = -I$(top_srcdir)/compat/jansson
+JANSSON_INCLUDES =
+#JANSSON_INCLUDES = -I$(top_srcdir)/compat/jansson


then I can compile successfully, but will get this upon running cgminer:

[2011-07-20 12:41:07] Error: Getting Device IDs (num)


I am running an nVidia card at the moment, but poclbm and phoenix can each access it.  Also, for the record, 'rpm -qf /usr/include/jansson.h' returns these packages:

jansson-devel-1.2-1.fc13.x86_64
jansson-devel-1.2-1.fc13.i686


On a side note, cgminer seems to use a lot of CPU for GPU mining in Windows, and all found hashes get rejected.  Same nVidia card, and I know phoenix gets a lot of rejects too if I use BFI_INT.  I saw that BFI_INT is used in the original post, but I didn't see any way to disable it in the parameters.  Is it possible to disable it, or is this miner meant for ATI only?