When using the git fork with this command line
./autogen.sh && CXXFLAGS="-std=gnu++11" ./configure CFLAGS="-O3 -march=btver1" --with-curl --with-crypto && make
I got a successful compile and working binary on AMD
********** cpuminer-multi 1.2-dev ***********
A CPU miner with multi algo support and optimized for CPUs
with AES_NI extension.
BTC donation address: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT
Forked from TPruvot's cpuminer-multi with credits
to Lucas Jones, elmad, palmd, djm34, pooler, ig0tik3d,
Wolf0 and Jeff Garzik.
Checking CPU capatibility of AMD Phenom(tm) II X4 940 Processor...
CPU arch supports AES_NI... NO.
CPU arch supports SSE2..... YES.
SW built with AES_NI....... NO.
SW built with SSE2......... YES.
Algo supports AES_NI....... YES.
Starting mining without AES_NI optimisations...
Thanks. I presume -march=native still fails.
I will soon release 3.1.18 with the following:
- Implement CPU check logic from hmage
- remove check for inferior SW build on SSE2 CPU
- add check for superior build
- Suppress messages not used in decision making
- document AMD workaround
- fix set_data_size bug
Edit: here is a draft of the test I intend to add to the build instructions:
Some users with AMD CPUs without AES_NI have reported problems compiling
with build.sh or "-march=native". Problems have included compile errors
and poor performance. These users are recommended to compile manually
specifying "-march=btver1" on the configure command line.