This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: GCC Error: C compiler cannot create executables.
- From: "Rupert Wood" <me at rupey dot net>
- To: "'Danny Ybarra'" <dannyybarra at hotmail dot com>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Wed, 31 Jul 2002 15:11:13 +0100
- Subject: RE: GCC Error: C compiler cannot create executables.
Danny Ybarra wrote:
> Whenever I try to compile anything on one of our 10 AIX 5.1
> machines, I get C compiler cannot create executables.
That's the error from a configure script.
You might get useful output from gcc -v; try compiling a simple C
program, e.g. create a text file containing the following:
#include <stdio.h>
int main(void) { printf("Hello, World!\n"); return 0; }
and save it as hw.c. Then run:
gcc -v hw.c
and you might get more useful error messages.
Likely reasons are that you are missing one or more of:
* an assembler (usually called 'as')
* a linker (usually called 'ld')
* a C library (usually '/lib/libc.a' and/or '/lib/libc.so')
* lead in/out objects (varies by OS; usually .o files in /lib)
all of which you'll likely find on your OS install media.
(Alternatively, you can get a binary install of GNU binutils for the
first two.)
Good luck,
Rup.