Here's your error:
configure:3076: gcc conftest.c >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
It seems odd that you have gcc but not crt1.o. I'm no Ubuntu guru, but I think you may need to install the "build-essential" package.