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: Ian Lance Taylor <iant at google dot com>
- To: Anna Ceguerra <anna dot ceguerra at sydney dot edu dot au>
- Cc: kevin diggs <diggskevin38 at gmail dot com>, Jonathan Wakely <jwakely dot gcc at gmail dot com>, <gcc-help at gcc dot gnu dot org>
- Date: Tue, 19 Apr 2011 20:30:18 -0700
- Subject: Re: "cannot run C compiled programs" error
- References: <C9D478E4.10A94%anna.ceguerra@sydney.edu.au>
Anna Ceguerra <anna.ceguerra@sydney.edu.au> writes:
> I managed to export conftest.c before it got deleted. Here is the code, and
> the generated assembly. Generating a.out & running it causes it to fail with
> the same error ( Bad CPU type in executable).
As I think I may have said before, it's an issue with your assembler
and/or your linker. You have to figure out how to tell your assembler
and linker to build a program which will run on your system. Most
likely there is a way to do it, but gcc is not doing it.
> Also, what does the ".quad"
> instruction do? I thought I had disabled libquadmath in my configure
> command?
The .quad pseudo-op has nothing to do with libquadmath. .quad means to
assemble an 8-byte constant.
Ian