cbuchner1 / CudaMiner

a CUDA accelerated litecoin mining application based on pooler's CPU miner
Other
693 stars 304 forks source link

Error compiling on Mac OS X 10.8.5 #40

Open joker5bb opened 10 years ago

joker5bb commented 10 years ago

users-mac:cudaminer-master user$ ./configure checking build system type... i386-apple-darwin12.5.0 checking host system type... i386-apple-darwin12.5.0 checking target system type... i386-apple-darwin12.5.0 checking for a BSD-compatible install... /usr/local/bin/ginstall -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no 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 for gcc option to accept ISO C99... -std=gnu99 checking how to run the C preprocessor... gcc -std=gnu99 -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking whether gcc -std=gnu99 needs -traditional... no checking whether gcc -std=gnu99 and cc understand -c and -o together... yes checking dependency style of gcc -std=gnu99... gcc3 checking for ranlib... ranlib checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking for gcc -std=gnu99 option to support OpenMP... -fopenmp 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 sys/endian.h usability... no checking sys/endian.h presence... no checking for sys/endian.h... no checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking for sys/sysctl.h... yes checking whether be32dec is declared... no checking whether le32dec is declared... no checking whether be32enc is declared... no checking whether le32enc is declared... no checking for size_t... yes checking for working alloca.h... yes checking for alloca... yes checking for getopt_long... yes checking whether we can compile AVX code... no configure: WARNING: The assembler does not support the AVX instruction set. checking for json_loads in -ljansson... yes checking for pthread_create in -lpthread... yes checking for gawk... (cached) awk checking for curl-config... /usr/bin/curl-config checking for the version of libcurl... 7.24.0 checking for libcurl >= version 7.15.2... yes checking whether libcurl is usable... yes checking for curl_free... yes configure: creating ./config.status config.status: creating Makefile config.status: creating compat/Makefile config.status: creating compat/jansson/Makefile config.status: creating cpuminer-config.h config.status: cpuminer-config.h is unchanged config.status: executing depfiles commands users-mac:cudaminer-master user$ make make all-recursive Making all in compat make[3]: Nothing to be done for all-am'. gcc -std=gnu99 -DHAVE_CONFIG_H -I. -msse2 -fopenmp -pthread -fno-strict-aliasing -g -O2 -MT cudaminer-cpu-miner.o -MD -MP -MF .deps/cudaminer-cpu-miner.Tpo -c -o cudaminer-cpu-miner.otest -f 'cpu-miner.c' || echo './'cpu-miner.c mv -f .deps/cudaminer-cpu-miner.Tpo .deps/cudaminer-cpu-miner.Po gcc -std=gnu99 -DHAVE_CONFIG_H -I. -msse2 -fopenmp -pthread -fno-strict-aliasing -g -O2 -MT cudaminer-util.o -MD -MP -MF .deps/cudaminer-util.Tpo -c -o cudaminer-util.otest -f 'util.c' || echo './'util.c mv -f .deps/cudaminer-util.Tpo .deps/cudaminer-util.Po gcc -std=gnu99 -DHAVE_CONFIG_H -I. -msse2 -fopenmp -pthread -fno-strict-aliasing -g -O2 -MT cudaminer-sha2.o -MD -MP -MF .deps/cudaminer-sha2.Tpo -c -o cudaminer-sha2.otest -f 'sha2.c' || echo './'sha2.c mv -f .deps/cudaminer-sha2.Tpo .deps/cudaminer-sha2.Po g++ -DHAVE_CONFIG_H -I. -msse2 -fopenmp -pthread -fno-strict-aliasing -g -O2 -MT cudaminer-scrypt.o -MD -MP -MF .deps/cudaminer-scrypt.Tpo -c -o cudaminer-scrypt.otest -f 'scrypt.cpp' || echo './'`scrypt.cpp mv -f .deps/cudaminer-scrypt.Tpo .deps/cudaminer-scrypt.Po nvcc -g -O2 -arch=compute_10 --maxrregcount=64 --ptxas-options=-v -o salsa_kernel.o -c salsa_kernel.cu /usr/local/include/c++/4.8.1/cstdlib(178): error: identifier "__int128" is undefined

/usr/local/include/c++/4.8.1/cstdlib(179): error: identifier "__int128" is undefined

2 errors detected in the compilation of "/tmp/tmpxft_00000c9c_00000000-6_salsa_kernel.cpp1.ii". make[2]: * [salsa_kernel.o] Error 2 make[1]: * [all-recursive] Error 1 make: *\ [all] Error 2

atomton commented 10 years ago

See this comment for a possible solution: https://github.com/cbuchner1/CudaMiner/issues/2#issuecomment-29677311