This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: "cannot run C compiled programs" error
- From: kevin diggs <diggskevin38 at gmail dot com>
- To: Anna Ceguerra <anna dot ceguerra at sydney dot edu dot au>
- Cc: Ian Lance Taylor <iant at google dot com>, Jonathan Wakely <jwakely dot gcc at gmail dot com>, gcc-help at gcc dot gnu dot org
- Date: Tue, 19 Apr 2011 22:32:51 -0500
- Subject: Re: "cannot run C compiled programs" error
- References: <C9D46FD5.10A92%anna.ceguerra@sydney.edu.au> <C9D478E4.10A94%anna.ceguerra@sydney.edu.au>
Hi,
I was trying to do an x86 -> m68k cross compiler for 4.5.1. It failed
with the dreaded "cannot compute suffix of object files: cannot
compile".
In the config.log file in <obj dir>/m68k-netbsdelf1.6.1/libgcc:
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
So the source code for failed tests should end up in the config.log file.
kevin