This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]