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: "cannot run C compiled programs" error


Jonathan Wakely <jwakely.gcc@gmail.com> writes:

>> configure:3166: checking whether the C compiler works
>> configure:3175: ./a.out
>> ../../../../gcc-4.6-20110408/libgcc/configure: line 3177: ./a.out: Bad CPU
>> type in executable
>
> I'm not sure what this error means - do you have a working gcc
> installed that can actually compile successfully for your system?

This is when building libgcc.  It means that the newly built gcc is
unable to build an executable which runs on the current system.  An
error like "Bad CPU type" suggests a problem with the assembler or with
how gcc is invoking the assembler.  I don't know enough about Darwin to
know what is happening.

Ian


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