cbuchner1 / CudaMiner

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

Compile error in mingw (gcc 4.8) #145

Open kotoroshinoto opened 9 years ago

kotoroshinoto commented 9 years ago

might need to update my gcc, not sure whats going wrong here, working to try to figure it out.

gcc -std=gnu99 -DHAVE_CONFIG_H -I. -msse2 -DCURL_STATICLIB -I/usr/local/include -fopenmp -fno-strict-aliasing -I./compat/jansson -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME -g -O2 -MT cudaminer-cpu-miner.o -MD -MP -MF .deps/cudaminer-cpu-miner.Tpo -c -o cudaminer-cpu-miner.o test -f 'cpu-miner.c' || echo './'cpu-miner.c In file included from cpu-miner.c:40:0: compat.h:8:22: error: conflicting types for 'sleep' static inline void sleep(int secs) ^ In file included from cpu-miner.c:19:0: f:\mingw\msys\1.0\mingw\x86_64-w64-mingw32\include\unistd.h:34:22: note: previous declaration of 'sleep' was here unsigned int __cdecl sleep (unsigned int); ^ In file included from cpu-miner.c:41:0: miner.h:22:13: error: conflicting types for 'ssize_t' typedef int ssize_t; ^ In file included from f:\mingw\msys\1.0\mingw\x86_64-w64-mingw32\include\crtdefs.h:10:0, from f:\mingw\msys\1.0\mingw\x86_64-w64-mingw32\include\stdio.h:9, from cpu-miner.c:14: f:\mingw\msys\1.0\mingw\x86_64-w64-mingw32\include_mingw.h:387:35: note: previous declaration of 'ssize_t' was here MINGW_EXTENSION typedef __int64 ssize_t; ^ make[2]: *\ [cudaminer-cpu-miner.o] Error 1

cbuchner1 commented 9 years ago

Mingw has no CUDA Support whatsoever. Give ut up.

-----Original Message----- From: "kotoroshinoto" notifications@github.com Sent: ‎10/‎18/‎2014 10:43 To: "cbuchner1/CudaMiner" CudaMiner@noreply.github.com Subject: [CudaMiner] Compile error in mingw (gcc 4.8) (#145)

might need to update my gcc, not sure whats going wrong here, working to try to figure it out. gcc -std=gnu99 -DHAVE_CONFIG_H -I. -msse2 -DCURL_STATICLIB -I/usr/local/include -fopenmp -fno-strict-aliasing -I./compat/jansson -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME -g -O2 -MT cudaminer-cpu-miner.o -MD -MP -MF .deps/cudaminer-cpu-miner.Tpo -c -o cudaminer-cpu-miner.o test -f 'cpu-miner.c' || echo './'cpu-miner.c In file included from cpu-miner.c:40:0: compat.h:8:22: error: conflicting types for 'sleep' static inline void sleep(int secs) ^ In file included from cpu-miner.c:19:0: f:\mingw\msys\1.0\mingw\x86_64-w64-mingw32\include\unistd.h:34:22: note: previous declaration of 'sleep' was here unsigned int __cdecl sleep (unsigned int); ^ In file included from cpu-miner.c:41:0: miner.h:22:13: error: conflicting types for 'ssize_t' typedef int ssize_t; ^ In file included from f:\mingw\msys\1.0\mingw\x86_64-w64-mingw32\include\crtdefs.h:10:0, from f:\mingw\msys\1.0\mingw\x86_64-w64-mingw32\include\stdio.h:9, from cpu-miner.c:14: f:\mingw\msys\1.0\mingw\x86_64-w64-mingw32\include_mingw.h:387:35: note: previous declaration of 'ssize_t' was here MINGW_EXTENSION typedef __int64 ssize_t; ^ make[2]: *\ [cudaminer-cpu-miner.o] Error 1 — Reply to this email directly or view it on GitHub.=

kotoroshinoto commented 9 years ago

if you install the sdk and point the config at the dlls would that work?

cbuchner1 commented 9 years ago

The nVidia CUDA compiler has a requirement to run with Visual Studio's C/C++ compilers.

2014-10-18 22:29 GMT+02:00 kotoroshinoto notifications@github.com:

if you install the sdk and point the config at the dlls would that work?

— Reply to this email directly or view it on GitHub https://github.com/cbuchner1/CudaMiner/issues/145#issuecomment-59628544.