I'm having a similar error to that of @shvch and ran the same commands to install the required depencies. Total newbie here.
I believe this is the relevant portion of errors:
In file included from algo/cryptonight/cryptonight-aesni.c:6:0:
./avxdefs.h: In function ‘mm_byteswap_64’:
./avxdefs.h:296:3: warning: implicit declaration of function ‘_mm_shuffle_epi8’ [-Wimplicit-function-declaration]
./avxdefs.h:296:3: error: incompatible types when returning type ‘int’ but ‘__m128i’ was expected
./avxdefs.h: In function ‘mm_byteswap_32’:
./avxdefs.h:303:3: error: incompatible types when returning type ‘int’ but ‘__m128i’ was expected
./avxdefs.h: In function ‘mm_byteswap_16’:
./avxdefs.h:310:3: error: incompatible types when returning type ‘int’ but ‘__m128i’ was expected
algo/cryptonight/cryptonight-aesni.c: At top level:
algo/cryptonight/cryptonight-aesni.c:107:33: warning: ‘ctx’ defined but not used [-Wunused-variable]
mv -f algo/cryptonight/.deps/cpuminer-cryptonight-common.Tpo algo/cryptonight/.deps/cpuminer-cryptonight-common.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -Iyes/include -fno-strict-aliasing -I. -Iyes/include -Wno-pointer-sign -Wno-pointer-to-int-cast -O3 -march=native -Wall -Iyes/include -MT algo/cubehash/cpuminer-sph_cubehash.o -MD -MP -MF algo/cubehash/.deps/cpuminer-sph_cubehash.Tpo -c -o algo/cubehash/cpuminer-sph_cubehash.o `test -f 'algo/cubehash/sph_cubehash.c' || echo './'`algo/cubehash/sph_cubehash.c
make[2]: *** [algo/cryptonight/cpuminer-cryptonight-aesni.o] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f algo/cryptonight/.deps/cpuminer-cryptonight.Tpo algo/cryptonight/.deps/cpuminer-cryptonight.Po
mv -f algo/bmw/.deps/cpuminer-sph_bmw.Tpo algo/bmw/.deps/cpuminer-sph_bmw.Po
mv -f algo/cubehash/.deps/cpuminer-sph_cubehash.Tpo algo/cubehash/.deps/cpuminer-sph_cubehash.Po
make[2]: Leaving directory `/root/cpuminer-opt'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/cpuminer-opt'
make: *** [all] Error 2
strip: 'cpuminer': No such file
I'm running this on an AMD Opteron 4284 which, according to "cat /proc/cpuinfo" has "SSE2" enabled under "flags".
The installed dependencies are copypasted from the install manual:
apt-get install build-essential libssl-dev libcurl4-openssl-dev libjansson-dev libgmp-dev automake
I have tried to install both with ./build.sh and
./autogen.sh CFLAGS="-O3 -march=native -Wall" CXXFLAGS="$CFLAGS -std=gnu++11"
./configure --with-curl
make
the former gives the error posted above while the latter gives the same error when I run the "make" comand.
I'd gladly try an older version if anyone can instruct me how to do so, though I'd prefer to understand what am I doing wrong with this.
Many thanks in advance!
EDIT: apparently, someone encountered a similar error here:
https://bitcointalksearch.org/topic/m.14697284 to which it was suggested to him to run gcc -march=native -Q --help=target|grep march.
The result of that command is "amdfam10" so I tried to run ./configure by replacing "-march=native" both with "-march=amdfam10" and "-march=btver1" (copied from the linked message). Unfortunately, this changed nothing.
EDIT2: Tried the legacy version, 3.5.9.1. Very similar error about "__m128i" being incompatible with "int". Also, something about SSSE3 not being enabled.