CudaMiner icon indicating copy to clipboard operation
CudaMiner copied to clipboard

Compile error in mingw (gcc 4.8)

Open kotoroshinoto opened this issue 10 years ago • 3 comments

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

kotoroshinoto avatar Oct 18 '14 08:10 kotoroshinoto

Mingw has no CUDA Support whatsoever. Give ut up.

-----Original Message----- From: "kotoroshinoto" [email protected] Sent: ‎10/‎18/‎2014 10:43 To: "cbuchner1/CudaMiner" [email protected] 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.=

cbuchner1 avatar Oct 18 '14 16:10 cbuchner1

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

kotoroshinoto avatar Oct 18 '14 20:10 kotoroshinoto

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 [email protected]:

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.

cbuchner1 avatar Oct 18 '14 21:10 cbuchner1