Pages:
Author

Topic: Cgminer compiling on windows - fail (Read 10922 times)

legendary
Activity: 1361
Merit: 1003
Don`t panic! Organize!
November 11, 2012, 08:52:49 AM
#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.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
November 11, 2012, 05: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.
legendary
Activity: 1361
Merit: 1003
Don`t panic! Organize!
November 07, 2012, 09:32:10 AM
#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
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
November 07, 2012, 05: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.
legendary
Activity: 1361
Merit: 1003
Don`t panic! Organize!
November 07, 2012, 02: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.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
November 06, 2012, 08:46:10 PM
#22
Ok, latest git 2.9.0 is compiling again Smiley
? if 2.9.0 compiled, when did it break?
legendary
Activity: 1361
Merit: 1003
Don`t panic! Organize!
November 06, 2012, 08:07:55 PM
#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'
legendary
Activity: 1361
Merit: 1003
Don`t panic! Organize!
November 06, 2012, 08:04:26 PM
#20
Same thing when download
http://ck.kolivas.org/apps/cgminer/cgminer-2.9.1.tar.bz2
Code:
Rafal@doomek ~/cgminer-2.9.1
$ 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... yes
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.9.1
------------------------------------------------------------------------


Configuration Options Summary:

  curses.TUI...........: FOUND: -lpdcurses
  OpenCL...............: FOUND. GPU mining support enabled
  scrypt...............: Enabled
  ADL..................: SDK found, GPU monitoring support enabled

  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.9.1'
Making all in lib
make[2]: Entering directory `/home/Rafal/cgminer-2.9.1/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.9.1/lib'
make[4]: Entering directory `/home/Rafal/cgminer-2.9.1/lib'
  CC     dummy.o
  CC     memmem.o
  CC     sigaction.o
  CC     sigprocmask.o
  AR     libgnu.a
make[4]: Leaving directory `/home/Rafal/cgminer-2.9.1/lib'
make[3]: Leaving directory `/home/Rafal/cgminer-2.9.1/lib'
make[2]: Leaving directory `/home/Rafal/cgminer-2.9.1/lib'
Making all in compat
make[2]: Entering directory `/home/Rafal/cgminer-2.9.1/compat'
Making all in jansson
make[3]: Entering directory `/home/Rafal/cgminer-2.9.1/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.9.1/compat/jansson'
make[3]: Entering directory `/home/Rafal/cgminer-2.9.1/compat'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/Rafal/cgminer-2.9.1/compat'
make[2]: Leaving directory `/home/Rafal/cgminer-2.9.1/compat'
Making all in ccan
make[2]: Entering directory `/home/Rafal/cgminer-2.9.1/ccan'
  CC     helpers.o
  CC     opt.o
  CC     parse.o
  CC     usage.o
  AR     libccan.a
make[2]: Leaving directory `/home/Rafal/cgminer-2.9.1/ccan'
make[2]: Entering directory `/home/Rafal/cgminer-2.9.1'
  CC     cgminer-cgminer.o
gcc.exe: error: @CPPFLAG_CURL_STATICLIB@: No such file or directory
make[2]: *** [cgminer-cgminer.o] Error 1
make[2]: Leaving directory `/home/Rafal/cgminer-2.9.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Rafal/cgminer-2.9.1'
make: *** [all] Error 2
legendary
Activity: 1361
Merit: 1003
Don`t panic! Organize!
November 06, 2012, 07:53:37 PM
#19
lol which git checkout did build then since it's pretty much identical?
I have no idea.
Trying to compile commit dd671baaa1
Code:
$ ./autogen.sh && autoreconf -fvi && CFLAGS="-O2 -msse2" ./configure --enable-scrypt --without-libudev && make
Running autoreconf -if...
Configuring...
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... yes
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.9.1
------------------------------------------------------------------------


Configuration Options Summary:

  curses.TUI...........: FOUND: -lpdcurses
  OpenCL...............: FOUND. GPU mining support enabled
  scrypt...............: Disabled
  ADL..................: SDK found, GPU monitoring support enabled

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

Compilation............: make (or gmake)
  CPPFLAGS.............:
  CFLAGS...............: -g -O2
  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

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... yes
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.9.1
------------------------------------------------------------------------


Configuration Options Summary:

  curses.TUI...........: FOUND: -lpdcurses
  OpenCL...............: FOUND. GPU mining support enabled
  scrypt...............: Enabled
  ADL..................: SDK found, GPU monitoring support enabled

  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'
Making all in lib
make[2]: Entering directory `/home/Rafal/cgminer/lib'
  GEN    signal.h
  GEN    string.h
make  all-recursive
make[3]: Entering directory `/home/Rafal/cgminer/lib'
make[4]: Entering directory `/home/Rafal/cgminer/lib'
  CC     memmem.o
  CC     sigaction.o
  CC     sigprocmask.o
  AR     libgnu.a
make[4]: Leaving directory `/home/Rafal/cgminer/lib'
make[3]: Leaving directory `/home/Rafal/cgminer/lib'
make[2]: Leaving directory `/home/Rafal/cgminer/lib'
Making all in compat
make[2]: Entering directory `/home/Rafal/cgminer/compat'
Making all in jansson
make[3]: Entering directory `/home/Rafal/cgminer/compat/jansson'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/Rafal/cgminer/compat/jansson'
make[3]: Entering directory `/home/Rafal/cgminer/compat'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/Rafal/cgminer/compat'
make[2]: Leaving directory `/home/Rafal/cgminer/compat'
Making all in ccan
make[2]: Entering directory `/home/Rafal/cgminer/ccan'
  CC     helpers.o
  CC     opt.o
  CC     parse.o
  CC     usage.o
  AR     libccan.a
make[2]: Leaving directory `/home/Rafal/cgminer/ccan'
make[2]: Entering directory `/home/Rafal/cgminer'
  CC     cgminer-cgminer.o
gcc.exe: error: @CPPFLAG_CURL_STATICLIB@: No such file or directory
make[2]: *** [cgminer-cgminer.o] Error 1
make[2]: Leaving directory `/home/Rafal/cgminer'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Rafal/cgminer'
make: *** [all] Error 2
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
November 06, 2012, 03:11:35 PM
#18
lol which git checkout did build then since it's pretty much identical?
legendary
Activity: 1361
Merit: 1003
Don`t panic! Organize!
November 06, 2012, 02:10:00 PM
#17
And current git again failing :/
Code:
$ make
make  all-recursive
make[1]: Entering directory `/home/Rafal/cgminer-master'
Making all in lib
make[2]: Entering directory `/home/Rafal/cgminer-master/lib'
  GEN    signal.h
  GEN    string.h
make  all-recursive
make[3]: Entering directory `/home/Rafal/cgminer-master/lib'
make[4]: Entering directory `/home/Rafal/cgminer-master/lib'
  CC     memmem.o
  CC     sigaction.o
  CC     sigprocmask.o
  AR     libgnu.a
make[4]: Leaving directory `/home/Rafal/cgminer-master/lib'
make[3]: Leaving directory `/home/Rafal/cgminer-master/lib'
make[2]: Leaving directory `/home/Rafal/cgminer-master/lib'
Making all in compat
make[2]: Entering directory `/home/Rafal/cgminer-master/compat'
Making all in jansson
make[3]: Entering directory `/home/Rafal/cgminer-master/compat/jansson'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/Rafal/cgminer-master/compat/jansson'
make[3]: Entering directory `/home/Rafal/cgminer-master/compat'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/Rafal/cgminer-master/compat'
make[2]: Leaving directory `/home/Rafal/cgminer-master/compat'
Making all in ccan
make[2]: Entering directory `/home/Rafal/cgminer-master/ccan'
  CC     helpers.o
  CC     opt.o
  CC     parse.o
  CC     usage.o
  AR     libccan.a
make[2]: Leaving directory `/home/Rafal/cgminer-master/ccan'
make[2]: Entering directory `/home/Rafal/cgminer-master'
  CC     cgminer-cgminer.o
gcc.exe: error: @CPPFLAG_CURL_STATICLIB@: No such file or directory
make[2]: *** [cgminer-cgminer.o] Error 1
make[2]: Leaving directory `/home/Rafal/cgminer-master'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Rafal/cgminer-master'
make: *** [all] Error 2
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
November 05, 2012, 08:48:26 PM
#16
Ok, latest git 2.9.0 is compiling again Smiley
Smiley
legendary
Activity: 1361
Merit: 1003
Don`t panic! Organize!
November 05, 2012, 08:35:53 PM
#15
Ok, latest git 2.9.0 is compiling again Smiley
legendary
Activity: 1361
Merit: 1003
Don`t panic! Organize!
November 05, 2012, 10:33:44 AM
#14
ADL detection bug is fixed.

I step into another one right now. No errors on .configure but make fails:
Code:
Leszek@domowy ~/cgminer-master
$ make
make  all-recursive
make[1]: Entering directory `/home/Leszek/cgminer-master'
Making all in lib
make[2]: Entering directory `/home/Leszek/cgminer-master/lib'
  GEN    signal.h
  GEN    string.h
make  all-recursive
make[3]: Entering directory `/home/Leszek/cgminer-master/lib'
make[4]: Entering directory `/home/Leszek/cgminer-master/lib'
  CC     memmem.o
  CC     sigaction.o
  CC     sigprocmask.o
  AR     libgnu.a
make[4]: Leaving directory `/home/Leszek/cgminer-master/lib'
make[3]: Leaving directory `/home/Leszek/cgminer-master/lib'
make[2]: Leaving directory `/home/Leszek/cgminer-master/lib'
Making all in compat
make[2]: Entering directory `/home/Leszek/cgminer-master/compat'
Making all in jansson
make[3]: Entering directory `/home/Leszek/cgminer-master/compat/jansson'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/Leszek/cgminer-master/compat/jansson'
make[3]: Entering directory `/home/Leszek/cgminer-master/compat'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/Leszek/cgminer-master/compat'
make[2]: Leaving directory `/home/Leszek/cgminer-master/compat'
Making all in ccan
make[2]: Entering directory `/home/Leszek/cgminer-master/ccan'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/Leszek/cgminer-master/ccan'
make[2]: Entering directory `/home/Leszek/cgminer-master'
  CC     cgminer-cgminer.o
gcc.exe: error: @CPPFLAG_CURL_STATICLIB@: No such file or directory
make[2]: *** [cgminer-cgminer.o] Error 1
make[2]: Leaving directory `/home/Leszek/cgminer-master'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Leszek/cgminer-master'
make: *** [all] Error 2
I made no changes to my compiling config, just loaded fresh code from git  "latest commit ab1fa25344"
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
October 16, 2012, 02:56:20 AM
#13
ckolivas
I've just checked:  2.7.6 and 2.7.7 don't compile but 2.7.5 and before does
So from 2.7.6 it doesn't compile
Thanks, that helps a lot.
member
Activity: 125
Merit: 10
October 16, 2012, 01:44:22 AM
#12
ckolivas
I've just checked:  2.7.6 and 2.7.7 don't compile but 2.7.5 and before does
So from 2.7.6 it doesn't compile
This is key configure changes:
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
October 15, 2012, 10:28:54 PM
#11
This is the sum total of the configure changes

Code:
git diff v2.7.7 v2.8.3 configure.ac
diff --git a/configure.ac b/configure.ac
index d0de0c8..0d77b97 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,8 +1,8 @@
 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
 m4_define([v_maj], [2])
-m4_define([v_min], [7])
-m4_define([v_mic], [7])
+m4_define([v_min], [8])
+m4_define([v_mic], [3])
 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
 m4_define([v_ver], [v_maj.v_min.v_mic])
 m4_define([lt_rev], m4_eval(v_maj + v_min))
@@ -92,6 +92,7 @@ case $target in
     PTHREAD_FLAGS=""
     DLOPEN_FLAGS=""
     WS2_LIBS="-lws2_32"
+    AC_DEFINE([_WIN32_WINNT], [0x0501], "WinNT version for XP+ support")
     ;;
   powerpc-*-darwin*)
     CFLAGS="$CFLAGS -faltivec"
@@ -351,8 +352,7 @@ fi
 
 PKG_PROG_PKG_CONFIG()
 
-PKG_CHECK_MODULES([LIBCURL], [libcurl >= 7.15.6], [AC_DEFINE([CURL_HAS_SOCKOPT], [1], [Defined if version of curl supports sockopts.])],
-[PKG_CHECK_MODULES([LIBCURL], [libcurl >= 7.10.1], ,[AC_MSG_ERROR([Missing required libcurl dev >= 7.10.1])])])
+PKG_CHECK_MODULES([LIBCURL], [libcurl >= 7.18.2], ,[AC_MSG_ERROR([Missing required libcurl dev >= 7.18.2])])
 AC_SUBST(LIBCURL_LIBS)
 
 dnl CCAN wants to know a lot of vars.

See anything?

Otherwise, yeah of course scrypt can only do scrypt when scrypt cpu mining. Besides, cpu mining is deprecated and unsupported.

Please stick to the main cgminer thread with issues.
legendary
Activity: 1361
Merit: 1003
Don`t panic! Organize!
October 15, 2012, 07:56:34 AM
#10
rav3n_pl
Try to play with this key
Code:
--algo|-a      Specify sha256 implementation for CPU mining:
        auto            Benchmark at startup and pick fastest algorithm
        c               Linux kernel sha256, implemented in C
        4way            tcatm's 4-way SSE2 implementation
        via             VIA padlock implementation
        cryptopp        Crypto++ C/C++ implementation
        sse2_64         SSE2 64 bit implementation for x86_64 machines
        sse4_64         SSE4.1 64 bit implementation for x86_64 machines (default: sse2_64)
auto is not always the best choice
"cgminer: -a: Can only use scrypt algorithm" Smiley I`m mining litecoins.
legendary
Activity: 1361
Merit: 1003
Don`t panic! Organize!
October 15, 2012, 07:53:30 AM
#9
ckolivas
Can you fix the issue with compiling on Windows machines in next releases?
It compiles fine on windows. There is an extensive readme on how to do it included in the source. Don't guess, follow the instructions.
ckolivas, this great info (windows-build.txt) is missing something...
Tried to make it "from scratch" on 2 "clean" machines and both are not detecting opencl properly w/o manual edit of configure file.
I think there is some small thing (additional change in "set" maybe? missed slash/backslash?) that need to be done on compiling machine to make it working.
member
Activity: 125
Merit: 10
October 15, 2012, 07:42:15 AM
#8
Why 2.7.x are compiled well and 2.8.x only after modification of configure.ac?
Pages:
Jump to: