phpがインストールできません。
以下はphpのコンフィギュアログなんですが、どうやらgccがうまく働いていないようです。
どうすれば回避できるのか教えてください。

config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:1638: checking host system type
configure:1726: checking for gcc
configure:1839: checking whether the C compiler (gcc ) works
configure:1855: gcc -o conftest conftest.c 1>&5
/usr/lib/crt1.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
configure: failed program was:

#line 1850 "configure"
#include "confdefs.h"

main(){return(0);}