Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error in mingw (gcc 4.8) #145

Open
kotoroshinoto opened this issue Oct 18, 2014 · 3 comments
Open

Compile error in mingw (gcc 4.8) #145

kotoroshinoto opened this issue Oct 18, 2014 · 3 comments

Comments

@kotoroshinoto
Copy link

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
Copy link
Owner

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.=

@kotoroshinoto
Copy link
Author

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

@cbuchner1
Copy link
Owner

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
#145 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants