"cannot run C compiled programs" error

kevin diggs diggskevin38@gmail.com
Wed Apr 20 03:35:00 GMT 2011


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



More information about the Gcc-help mailing list