I am getting below error while building the miner
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/root/cpuminer-argon2d':
configure: error: C compiler cannot create executables
See `config.log' for more details
GCC is already install in the system
root@ubuntu:~/cpuminer-argon2d# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
You have a typo in configure options, like -march=antive or so. Check out config.log, it will tell you.