C compiler cannot create executables
Gurus,
I am getting a compiler error when trying to configure....
root@Nitima-Linux:~/opt/nfast/driver# ./configure
loading cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
root@Nitima-Linux:~/opt/nfast/driver#
tried
gcc - v
gives the following output
root@Nitima-Linux:/usr/include# gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.1.3 --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
However I am unable to understand what the problem is
The version is after running uname -r
2.6.22-14-generic
The kernel headers are in the following directory
root@Nitima-Linux:/usr/src/linux-headers-2.6.22-14-generic/include# ls
acpi asm-frv asm-mips asm-sparc64 keys rxrpc
asm asm-generic asm-parisc asm-um linux scsi
asm-alpha asm-h8300 asm-powerpc asm-v850 math-emu sound
asm-arm asm-i386 asm-ppc asm-x86_64 media video
asm-arm26 asm-ia64 asm-s390 asm-xtensa mtd
asm-avr32 asm-m32r asm-sh config net
asm-blackfin asm-m68k asm-sh64 crypto pcmcia
asm-cris asm-m68knommu asm-sparc Kbuild rdma
root@Nitima-Linux:/usr/src/linux-headers-2.6.22-14-generic/include#
I was told that the kernel headers environment are not set properly
I am unsure what I am doing wrong...
Please help...
Thanks in advance
Hema
|