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: Mon, 18 Apr 2011 10:08:15 -0700
- Subject: Re: "cannot run C compiled programs" error
- References: <C9D295AC.10A57%anna.ceguerra@sydney.edu.au>
Anna Ceguerra <anna.ceguerra@sydney.edu.au> writes:
> It's trying to generate from conftest.c, which I can't find either.
You should be able to see the exact conftest.c in the config.log file.
In any case, the question here is how to get your assembler to generate
32-bit code. Try "man as" to see if there is a special option. Try
running your newly built gcc with the -v option to see how it is
invoking the assembler. Perhaps gcc needs to pass some option that it
is failing to pass.
Ian