C compiler cannot create executables

Amalaye Oyake amalaye.oyake at jpl.nasa.gov
Thu Mar 29 17:40:24 UTC 2007

I was rebuilding RTEMS and I was running into this problem:

checking for C compiler default output file name... configure: error: C
compiler cannot create executables. 

I am assuming that configure was using the cross compiler tools that I built
... it seemed to build everything else just fine, but kept getting hung here
~ pc386/configure failed for pc386.

----host information----

My host system is an Ubuntu box

  /RTEMS-4.7/build-gcc$ gcc -v

  Using built-in specs.
  Target: x86_64-linux-gnu
  Configured with: ../src/configure -v --enable-   
  languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared -
  -with-system-zlib --libexecdir=/usr/lib --without-included-gettext --
  enable-threads=posix --enable-nls --program-suffix=-4.0 --enable-
  __cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-
  awt=gtk-default --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-
  1.4.2-gcj-4.0- --enable-mpfr --disable-werror --enable-
  checking=release x86_64-linux-gnu

Thread model: posix
gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)

----config.log summary----

See `config.log' for more details.
config.status: error:
figure failed for tools
configure: error:
failed for pc386
configure: error:
../../../../../../../rtems-4.7.0/c/src/lib/libbsp/i386/configure failed for
make[2]: *** [pc586] Error 1
make[2]: Leaving directory `/home/aoyake/RTEMS-4.7/build-rtems/i386-rtems/c'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/aoyake/RTEMS-4.7/build-rtems/i386-rtems/c'

The config-log says:

conftest.c:1: error: CPU you selected does not support x86-64 instruction
configure:2854: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "rtems-c-src-lib-libbsp-i386-pc386-tools"
| #define PACKAGE_TARNAME "rtems-c-src-lib-libbsp-i386-pc386-tools"
| #define PACKAGE_VERSION "4.7.0"
| #define PACKAGE_STRING "rtems-c-src-lib-libbsp-i386-pc386-tools 4.7.0"
| #define PACKAGE_BUGREPORT "http://www.rtems.org/bugzilla"
| /* end confdefs.h.  */
| int
| main ()
| {
|   ;
|   return 0;
| }
configure:2893: error: C compiler cannot create executables
See `config.log' for more details.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: config.log.txt
URL: <http://lists.rtems.org/pipermail/users/attachments/20070329/5e279e2c/attachment.txt>

More information about the users mailing list