jgarzik / cpuminer

CPU miner for bitcoin
Other
952 stars 2.34k forks source link

configure fails on cygwin #9

Closed bjmgeek closed 13 years ago

bjmgeek commented 13 years ago

$ CFLAGS="-O3 -Wall -msse2" ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no 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 for style of include used by make... GNU 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 whether gcc needs -traditional... no checking whether gcc and cc understand -c and -o together... yes checking for ranlib... ranlib checking for ANSI C header files... yes checking for json_loads in -ljansson... no checking for pthread_create in -lpthread... yes checking for yasm... /usr/local/bin/yasm checking if yasm version is greater than 1.0.1... yes checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes ./configure: line 4386: syntax error near unexpected token ,' ./configure: line 4386:LIBCURL_CHECK_CONFIG(, 7.10.1, ,'

Note that I do have libcurl installed:

jgarzik commented 13 years ago

This is a common failure. autogen is not finding your libcurl autoconf macro.

Recommend you build from tarball, where the configure script is pre-generated for you.

bjmgeek commented 13 years ago

building from tarball, configure worked, but make failed. $ make make all-recursive make[1]: Entering directory /home/bminton/src/cpuminer-0.8.1' Making all in compat make[2]: Entering directory/home/bminton/src/cpuminer-0.8.1/compat' Making all in jansson make[3]: Entering directory /home/bminton/src/cpuminer-0.8.1/compat/jansson' gcc -DHAVE_CONFIG_H -I. -I../.. -O3 -Wall -msse2 -MT dump.o -MD -MP -MF .deps/dump.Tpo -c -o dump.o dump.c mv -f .deps/dump.Tpo .deps/dump.Po gcc -DHAVE_CONFIG_H -I. -I../.. -O3 -Wall -msse2 -MT hashtable.o -MD -MP -MF .deps/hashtable.Tpo -c -o hashtable.o hashtable.c mv -f .deps/hashtable.Tpo .deps/hashtable.Po gcc -DHAVE_CONFIG_H -I. -I../.. -O3 -Wall -msse2 -MT load.o -MD -MP -MF .deps/load.Tpo -c -o load.o load.c load.c: In function ‘decode_unicode_escape’: load.c:235: warning: array subscript has type ‘char’ load.c:237: warning: array subscript has type ‘char’ load.c:239: warning: array subscript has type ‘char’ load.c: In function ‘lex_scan_string’: load.c:283: warning: array subscript has type ‘char’ load.c: In function ‘lex_scan_number’: load.c:417: warning: array subscript has type ‘char’ load.c:422: warning: array subscript has type ‘char’ load.c:424: warning: array subscript has type ‘char’ load.c:457: warning: array subscript has type ‘char’ load.c:462: warning: array subscript has type ‘char’ load.c:471: warning: array subscript has type ‘char’ load.c:477: warning: array subscript has type ‘char’ load.c: In function ‘lex_scan’: load.c:536: warning: array subscript has type ‘char’ load.c:541: warning: array subscript has type ‘char’ load.c:541: warning: array subscript has type ‘char’ load.c:546: warning: array subscript has type ‘char’ load.c:546: warning: array subscript has type ‘char’ mv -f .deps/load.Tpo .deps/load.Po gcc -DHAVE_CONFIG_H -I. -I../.. -O3 -Wall -msse2 -MT strbuffer.o -MD -MP -MF .deps/strbuffer.Tpo -c -o strbuffer.o strbuffer.c mv -f .deps/strbuffer.Tpo .deps/strbuffer.Po gcc -DHAVE_CONFIG_H -I. -I../.. -O3 -Wall -msse2 -MT utf.o -MD -MP -MF .deps/utf.Tpo -c -o utf.o utf.c mv -f .deps/utf.Tpo .deps/utf.Po gcc -DHAVE_CONFIG_H -I. -I../.. -O3 -Wall -msse2 -MT value.o -MD -MP -MF .deps/value.Tpo -c -o value.o value.c mv -f .deps/value.Tpo .deps/value.Po rm -f libjansson.a ar cru libjansson.a dump.o hashtable.o load.o strbuffer.o utf.o value.o ranlib libjansson.a make[3]: Leaving directory/home/bminton/src/cpuminer-0.8.1/compat/jansson' make[3]: Entering directory /home/bminton/src/cpuminer-0.8.1/compat' make[3]: Nothing to be done forall-am'. make[3]: Leaving directory /home/bminton/src/cpuminer-0.8.1/compat' make[2]: Leaving directory/home/bminton/src/cpuminer-0.8.1/compat' Making all in x86_64 make[2]: Entering directory /home/bminton/src/cpuminer-0.8.1/x86_64' /usr/local/bin/yasm -f elf64 sha256_xmm_amd64.asm rm -f libx8664.a ar cru libx8664.a sha256_xmm_amd64.o ranlib libx8664.a make[2]: Leaving directory/home/bminton/src/cpuminer-0.8.1/x86_64' make[2]: Entering directory /home/bminton/src/cpuminer-0.8.1' gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson -DHAS_YASM -O3 -Wall -msse2 -MT cpu-miner.o -MD -MP -MF .deps/cpu-miner.Tpo -c -o cpu-miner.o cpu-miner.c gcc: unrecognized option '-pthread' mv -f .deps/cpu-miner.Tpo .deps/cpu-miner.Po gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson -DHAS_YASM -O3 -Wall -msse2 -MT util.o -MD -MP -MF .deps/util.Tpo -c -o util.o util.c gcc: unrecognized option '-pthread' util.c: In function ‘resp_hdr_cb’: util.c:169: warning: array subscript has type ‘char’ util.c:176: warning: array subscript has type ‘char’ mv -f .deps/util.Tpo .deps/util.Po gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson -DHAS_YASM -O3 -Wall -msse2 -MT sha256_generic.o -MD -MP -MF .deps/sha256_generic.Tpo -c -o sha256_generic.o sha256_generic.c gcc: unrecognized option '-pthread' mv -f .deps/sha256_generic.Tpo .deps/sha256_generic.Po gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson -DHAS_YASM -O3 -Wall -msse2 -MT sha256_4way.o -MD -MP -MF .deps/sha256_4way.Tpo -c -o sha256_4way.o sha256_4way.c gcc: unrecognized option '-pthread' mv -f .deps/sha256_4way.Tpo .deps/sha256_4way.Po gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson -DHAS_YASM -O3 -Wall -msse2 -MT sha256_via.o -MD -MP -MF .deps/sha256_via.Tpo -c -o sha256_via.o sha256_via.c gcc: unrecognized option '-pthread' mv -f .deps/sha256_via.Tpo .deps/sha256_via.Po gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson -DHAS_YASM -O3 -Wall -msse2 -MT sha256_cryptopp.o -MD -MP -MF .deps/sha256_cryptopp.Tpo -c -o sha256_cryptopp.o sha256_cryptopp.c gcc: unrecognized option '-pthread' mv -f .deps/sha256_cryptopp.Tpo .deps/sha256_cryptopp.Po gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson -DHAS_YASM -O3 -Wall -msse2 -MT sha256_sse2_amd64.o -MD -MP -MF .deps/sha256_sse2_amd64.Tpo -c -o sha256_sse2_amd64.o sha256_sse2_amd64.c gcc: unrecognized option '-pthread' mv -f .deps/sha256_sse2_amd64.Tpo .deps/sha256_sse2_amd64.Po gcc -DHAS_YASM -O3 -Wall -msse2 -pthread -o minerd.exe cpu-miner.o util.o sha256_generic.o sha256_4way.o sha256_via.o sha256_cryptopp.o sha256_sse2_amd64.o -lcurl -lidn -lssh2 -lssl -lcrypto -lssl -lcrypto -lz compat/jansson/libjansson.a -lpthread x86_64/libx8664.a gcc: unrecognized option '-pthread' x86_64/libx8664.a: could not read symbols: Archive has no index; run ranlib to add one collect2: ld returned 1 exit status make[2]: *** [minerd.exe] Error 1 make[2]: Leaving directory/home/bminton/src/cpuminer-0.8.1' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory `/home/bminton/src/cpuminer-0.8.1' make: * [all] Error 2

bjmgeek commented 13 years ago

$ gcc -v Using built-in specs. Target: i686-pc-cygwin Configured with: /gnu/gcc/releases/packaging/4.3.4-3/gcc4-4.3.4-3/src/gcc-4.3.4/configure --srcdir=/gnu/gcc/releases/packaging/4.3.4-3/gcc4-4.3.4-3/src/gcc-4.3.4 --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --datadir=/usr/share --localstatedir=/var --sysconfdir=/etc --infodir=/usr/share/info --mandir=/usr/share/man --datadir=/usr/share --infodir=/usr/share/info --mandir=/usr/share/man -v --with-gmp=/usr --with-mpfr=/usr --enable-bootstrap --enable-version-specific-runtime-libs --with-slibdir=/usr/bin --libexecdir=/usr/lib --enable-static --enable-shared --enable-shared-libgcc --disable-__cxa_atexit --with-gnu-ld --with-gnu-as --with-dwarf2 --disable-sjlj-exceptions --enable-languages=ada,c,c++,fortran,java,objc,obj-c++ --disable-symvers --enable-libjava --program-suffix=-4 --enable-libgomp --enable-libssp --enable-libada --enable-threads=posix --with-arch=i686 --with-tune=generic --enable-libgcj-sublibs CC=gcc-4 CXX=g++-4 CC_FOR_TARGET=gcc-4 CXX_FOR_TARGET=g++-4 GNATMAKE_FOR_TARGET=gnatmake GNATBIND_FOR_TARGET=gnatbind AS=/opt/gcc-tools/bin/as.exe AS_FOR_TARGET=/opt/gcc-tools/bin/as.exe LD=/opt/gcc-tools/bin/ld.exe LD_FOR_TARGET=/opt/gcc-tools/bin/ld.exe --with-ecj-jar=/usr/share/java/ecj.jar Thread model: posix gcc version 4.3.4 20090804 (release) 1 (GCC)

jgarzik commented 13 years ago

Forgive me for not noticing earlier that you are building w/ cygwin. This is not currently supported (though patches welcome). If you want to build on Windows, you need mingw32.

bjmgeek commented 13 years ago

patch submitted (pull request 21)