@xolokram,
following are my comple log. I will appreciate it you can take a look.
$ make -f makefile.mingw
g++ -c -m32 -O3 -mmmx -msse -msse2 -msse3 -msse4 -msse4.1 -fpermissive -o obj/
cpuid.o cpuid.c
yasm -f win32 -D WINABI -o obj/sha512_avx.o intel/sha512_avx.asm
yasm -f win32 -D WINABI -o obj/sha512_sse4.o intel/sha512_sse4.asm
g++ -c -m32 -O3 -mmmx -msse -msse2 -msse3 -msse4 -msse4.1 -fpermissive -o obj/
sha512.o sha512.c
g++ -c -m32 -O3 -mmmx -msse -msse2 -msse3 -msse4 -msse4.1 -fpermissive -o obj/
sph_sha2.o sph_sha2.c
sph_sha2.c: In function 'void sph_sha224_init(void*)':
sph_sha2.c:628:5: warning: invalid conversion from 'void*' to 'sph_sha224_contex
t*' [-fpermissive]
sc = cc;
^
sph_sha2.c: In function 'void sph_sha256_init(void*)':
sph_sha2.c:643:5: warning: invalid conversion from 'void*' to 'sph_sha256_contex
t* {aka sph_sha224_context*}' [-fpermissive]
sc = cc;
^
In file included from sph_sha2.c:655:0:
sph_md_helper.c: In function 'void sha224_short(void*, const void*, size_t)':
sph_md_helper.c:136:5: warning: invalid conversion from 'void*' to 'sph_sha224_c
ontext*' [-fpermissive]
sc = cc;
^
sph_md_helper.c: In function 'void sph_sha224(void*, const void*, size_t)':
sph_md_helper.c:186:5: warning: invalid conversion from 'void*' to 'sph_sha224_c
ontext*' [-fpermissive]
sc = cc;
^
sph_md_helper.c:208:21: warning: invalid conversion from 'const void*' to 'const
unsigned char*' [-fpermissive]
RFUN(data, SPH_VAL);
^
sph_sha2.c:615:1: warning: initializing argument 1 of 'void sha2_round(const u
nsigned char*, sph_u32*)' [-fpermissive]
sha2_round(const unsigned char *data, sph_u32 r[8])
^
In file included from sph_sha2.c:655:0:
sph_md_helper.c: In function 'void sha224_addbits_and_close(void*, unsigned int,
unsigned int, void*, unsigned int)':
sph_md_helper.c:250:5: warning: invalid conversion from 'void*' to 'sph_sha224_c
ontext*' [-fpermissive]
sc = cc;
^
g++ -c -m32 -O3 -mmmx -msse -msse2 -msse3 -msse4 -msse4.1 -fpermissive -o obj/
sph_sha2big.o sph_sha2big.c
sph_sha2big.c: In function 'void sph_sha384_init(void*)':
sph_sha2big.c:191:5: warning: invalid conversion from 'void*' to 'sph_sha384_con
text*' [-fpermissive]
sc = cc;
^
sph_sha2big.c: In function 'void sph_sha512_init(void*)':
sph_sha2big.c:202:5: warning: invalid conversion from 'void*' to 'sph_sha512_con
text* {aka sph_sha384_context*}' [-fpermissive]
sc = cc;
^
In file included from sph_sha2big.c:210:0:
sph_md_helper.c: In function 'void sha384_short(void*, const void*, size_t)':
sph_md_helper.c:136:5: warning: invalid conversion from 'void*' to 'sph_sha384_c
ontext*' [-fpermissive]
sc = cc;
^
sph_md_helper.c: In function 'void sph_sha384(void*, const void*, size_t)':
sph_md_helper.c:186:5: warning: invalid conversion from 'void*' to 'sph_sha384_c
ontext*' [-fpermissive]
sc = cc;
^
sph_md_helper.c:208:21: warning: invalid conversion from 'const void*' to 'const
unsigned char*' [-fpermissive]
RFUN(data, SPH_VAL);
^
sph_sha2big.c:178:1: warning: initializing argument 1 of 'void sha3_round(cons
t unsigned char*, sph_u64*)' [-fpermissive]
sha3_round(const unsigned char *data, sph_u64 r[8])
^
In file included from sph_sha2big.c:210:0:
sph_md_helper.c: In function 'void sha384_addbits_and_close(void*, unsigned int,
unsigned int, void*, unsigned int)':
sph_md_helper.c:250:5: warning: invalid conversion from 'void*' to 'sph_sha384_c
ontext*' [-fpermissive]
sc = cc;
^
g++ -c -m32 -O3 -mmmx -msse -msse2 -msse3 -msse4 -msse4.1 -m32 -mthreads -w -Wa
ll -Wextra -Wformat -Wformat-security -Wno-unused-parameter -DWIN32 -D_WINDOWS
-DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -D_WIN32_WINNT=0x0501 -DWINVER=
0x0501 -I"/home/dev/ptsminer-master_src/src" -I"/mingw/include" -o obj/main_poo
lminer.o main_poolminer.cpp
g++ -m32 -mthreads -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-param
eter -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -D_WIN
32_WINNT=0x0501 -DWINVER=0x0501 -I"/home/dev/ptsminer-master_src/src" -I"/mingw
/include" -Wl,--dynamicbase -Wl,--nxcompat -Wl,--large-address-aware -o ptsminer
.exe -L"/mingw/lib" obj/cpuid.o obj/sha512_avx.o obj/sha512_sse4.o obj/sha512.o
obj/sph_sha2.o obj/sph_sha2big.o obj/main_poolminer.o -l boost_system-mgw48-mt-d
-1_54 -l boost_filesystem-mgw48-mt-d-1_54 -l boost_program_options-mgw48-mt-d-1_
54 -l boost_thread-mgw48-mt-d-1_54 -l boost_chrono-mgw48-mt-d-1_54 -l kernel32 -
l user32 -l gdi32 -l comdlg32 -l winspool -l winmm -l shell32 -l comctl32 -l ole
32 -l oleaut32 -l uuid -l rpcrt4 -l advapi32 -l ws2_32 -l mswsock -l shlwapi
obj/sha512.o:sha512.c:(.text+0x6): undefined reference to `sha512_avx'
obj/sha512.o:sha512.c:(.text+0x16): undefined reference to `sha512_sse4'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: obj/sha512
.o: bad reloc address 0x20 in section `.eh_frame'
collect2.exe: error: ld returned 1 exit status
make: *** [ptsminer.exe] Error 1