Bitcoin Forum
November 07, 2024, 11:22:47 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: Cgminer compiling on windows - fail  (Read 10918 times)
rav3n_pl (OP)
Legendary
*
Offline Offline

Activity: 1361
Merit: 1003


Don`t panic! Organize!


View Profile WWW
November 07, 2012, 01:07:55 AM
 #21

When compiling
http://ck.kolivas.org/apps/cgminer/cgminer-2.8.7.tar.bz2
it is ok:
Code:
Rafal@doomek ~/cgminer-2.8.7
$ autoreconf -fvi && CFLAGS="-O2 -msse2" ./configure --enable-scrypt --without-libudev && make
autoreconf-2.68: Entering directory `.'
autoreconf-2.68: configure.ac: not using Gettext
autoreconf-2.68: running: aclocal --force -I m4
autoreconf-2.68: configure.ac: tracing
autoreconf-2.68: configure.ac: not using Libtool
autoreconf-2.68: running: /mingw/bin/autoconf-2.68 --force
autoreconf-2.68: running: /mingw/bin/autoheader-2.68 --force
autoreconf-2.68: running: automake --add-missing --copy --force-missing
autoreconf-2.68: Leaving directory `.'
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking target system type... i686-pc-mingw32
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
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.exe
checking for suffix of executables... .exe
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... /bin/grep
checking for egrep... /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... no
checking sys/mman.h presence... no
checking for sys/mman.h... no
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... no
checking for sigaltstack... no
checking for siginterrupt... no
checking for mmap... no
checking whether memchr works... yes
checking whether memmem is declared... no
checking for memmem... no
checking for C/C++ restrict keyword... __restrict
checking for uid_t in sys/types.h... no
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... yes
checking whether memmem is declared without a macro... no
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... no
checking whether stpncpy is declared without a macro... no
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... no
checking whether strnlen is declared without a macro... no
checking whether strpbrk is declared without a macro... yes
checking whether strsep is declared without a macro... no
checking whether strcasestr is declared without a macro... no
checking whether strtok_r is declared without a macro... no
checking whether strerror_r is declared without a macro... no
checking whether strsignal is declared without a macro... no
checking whether strverscmp is declared without a macro... no
checking for memmem... (cached) no
checking for siginfo_t... no
checking for volatile sig_atomic_t... yes
checking for sighandler_t... no
checking whether sigaction is declared without a macro... no
checking whether sigaddset is declared without a macro... no
checking whether sigdelset is declared without a macro... no
checking whether sigemptyset is declared without a macro... no
checking whether sigfillset is declared without a macro... no
checking whether sigismember is declared without a macro... no
checking whether sigpending is declared without a macro... no
checking whether sigprocmask is declared without a macro... no
checking for sigset_t... yes
checking whether NULL can be used in arbitrary expressions... yes
checking for ANSI C header files... (cached) yes
checking syslog.h usability... no
checking syslog.h presence... no
checking for syslog.h... no
checking for size_t... yes
checking for working alloca.h... no
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... -lpdcurses
checking for yasm... /mingw/bin/yasm
checking if yasm version is greater than 1.0.1... yes
checking for pkg-config... /mingw/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.8.7
------------------------------------------------------------------------


Configuration Options Summary:

  curses.TUI...........: FOUND: pdcurses
  OpenCL...............: FOUND. GPU mining support enabled
  scrypt...............: Enabled
  ADL..................: SDK NOT found, GPU monitoring support DISABLED

  BitForce.FPGAs.......: Disabled
  Icarus.FPGAs.........: Disabled
  ModMiner.FPGAs.......: Disabled
  Ztex.FPGAs...........: Disabled

Compilation............: make (or gmake)
  CPPFLAGS.............:
  CFLAGS...............: -O2 -msse2
  LDFLAGS..............:
  LDADD................:  -LC:/MinGW/lib -lcurl -lcurldll   compat/jansson/libja
nsson.a -lpthread -lOpenCL   -lws2_32 -lm

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

make  all-recursive
make[1]: Entering directory `/home/Rafal/cgminer-2.8.7'
Making all in lib
make[2]: Entering directory `/home/Rafal/cgminer-2.8.7/lib'
  GEN    arg-nonnull.h
  GEN    c++defs.h
  GEN    warn-on-use.h
  GEN    signal.h
  GEN    string.h
make  all-recursive
make[3]: Entering directory `/home/Rafal/cgminer-2.8.7/lib'
make[4]: Entering directory `/home/Rafal/cgminer-2.8.7/lib'
  CC     dummy.o
  CC     memmem.o
  CC     sigaction.o
  CC     sigprocmask.o
  AR     libgnu.a
make[4]: Leaving directory `/home/Rafal/cgminer-2.8.7/lib'
make[3]: Leaving directory `/home/Rafal/cgminer-2.8.7/lib'
make[2]: Leaving directory `/home/Rafal/cgminer-2.8.7/lib'
Making all in compat
make[2]: Entering directory `/home/Rafal/cgminer-2.8.7/compat'
Making all in jansson
make[3]: Entering directory `/home/Rafal/cgminer-2.8.7/compat/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]: Leaving directory `/home/Rafal/cgminer-2.8.7/compat/jansson'
make[3]: Entering directory `/home/Rafal/cgminer-2.8.7/compat'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/Rafal/cgminer-2.8.7/compat'
make[2]: Leaving directory `/home/Rafal/cgminer-2.8.7/compat'
Making all in ccan
make[2]: Entering directory `/home/Rafal/cgminer-2.8.7/ccan'
  CC     helpers.o
  CC     opt.o
  CC     parse.o
  CC     usage.o
  AR     libccan.a
make[2]: Leaving directory `/home/Rafal/cgminer-2.8.7/ccan'
make[2]: Entering directory `/home/Rafal/cgminer-2.8.7'
  CC     cgminer-cgminer.o
  CC     cgminer-util.o
  CC     cgminer-sha2.o
  CC     cgminer-api.o
  CC     cgminer-logging.o
  CC     cgminer-driver-opencl.o
  CC     cgminer-ocl.o
  CC     cgminer-findnonce.o
  CC     cgminer-adl.o
  CC     cgminer-scrypt.o
  CCLD   cgminer.exe
make[2]: Leaving directory `/home/Rafal/cgminer-2.8.7'
make[1]: Leaving directory `/home/Rafal/cgminer-2.8.7'

1Rav3nkMayCijuhzcYemMiPYsvcaiwHni  Bitcoin stuff on my OneDrive
My RPC CoinControl for any coin https://bitcointalk.org/index.php?topic=929954
Some stuff on https://github.com/Rav3nPL/
-ck
Legendary
*
Offline Offline

Activity: 4284
Merit: 1645


Ruu \o/


View Profile WWW
November 07, 2012, 01:46:10 AM
 #22

Ok, latest git 2.9.0 is compiling again Smiley
? if 2.9.0 compiled, when did it break?

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

Activity: 1361
Merit: 1003


Don`t panic! Organize!


View Profile WWW
November 07, 2012, 07:40:50 AM
 #23

Ok, latest git 2.9.0 is compiling again Smiley
? if 2.9.0 compiled, when did it break?
This is funniest part, I get 2.9.0 from git and after compilation version tells 2.8.5...
Something break after 2.8.7-1.
Bad that git now tells me "-master" not "version-commit" like it was earlier. I have deleted earlier downloaded sources.

1Rav3nkMayCijuhzcYemMiPYsvcaiwHni  Bitcoin stuff on my OneDrive
My RPC CoinControl for any coin https://bitcointalk.org/index.php?topic=929954
Some stuff on https://github.com/Rav3nPL/
-ck
Legendary
*
Offline Offline

Activity: 4284
Merit: 1645


Ruu \o/


View Profile WWW
November 07, 2012, 10:48:04 AM
 #24

Okay I don't understand that one bit, but I assume that the build fixes that went in for BSD to compile broke windows. Meh.

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

Activity: 1361
Merit: 1003


Don`t panic! Organize!


View Profile WWW
November 07, 2012, 02:32:10 PM
 #25

Okay I don't understand that one bit, but I assume that the build fixes that went in for BSD to compile broke windows. Meh.
I blame this commit:
https://github.com/ckolivas/cgminer/commit/dc7c57d9c398e7c0e2471cf05ad4b6272171ae8a
Reverted that lines and it works Smiley

1Rav3nkMayCijuhzcYemMiPYsvcaiwHni  Bitcoin stuff on my OneDrive
My RPC CoinControl for any coin https://bitcointalk.org/index.php?topic=929954
Some stuff on https://github.com/Rav3nPL/
-ck
Legendary
*
Offline Offline

Activity: 4284
Merit: 1645


Ruu \o/


View Profile WWW
November 11, 2012, 10:40:27 AM
 #26

I have tried to reproduce this bug and cannot, on mingw while building on windows and on mingw cross compiled on linux. The fact that your version numbers are screwy suggests something is wrong with your git repository and this may have nothing to do with cgminer. The correct way to build from git is to ./autogen.sh first, and not to manually use autoreconf (yes I know the docs are outdated). Testing a tarball release version instead of build from git should tell us whether that's the case.

This is funniest part, I get 2.9.0 from git and after compilation version tells 2.8.5...
Something break after 2.8.7-1.
Bad that git now tells me "-master" not "version-commit" like it was earlier. I have deleted earlier downloaded sources.

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

Activity: 1361
Merit: 1003


Don`t panic! Organize!


View Profile WWW
November 11, 2012, 01:52:49 PM
 #27

Current git also fails. In Makefile.am I change only
Code:
cgminer_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib @OPENCL_FLAGS@ @LIBCURL_CFLAGS@
to
Code:
cgminer_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib @OPENCL_FLAGS@ 
and it is ok.

1Rav3nkMayCijuhzcYemMiPYsvcaiwHni  Bitcoin stuff on my OneDrive
My RPC CoinControl for any coin https://bitcointalk.org/index.php?topic=929954
Some stuff on https://github.com/Rav3nPL/
Pages: « 1 [2]  All
  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!