This is the sequence I used: git clone https://github.com/kanoi/cgminer cd cgminer ./autogen.sh CFLAGS="-O2 -Wall -march=native -fcommon" ./configure --enable-ants3 make
That's an ancient build target, and not actively supported anymore. Try an older version that should build successfully, e.g. https://github.com/vthoang/cgminer