Re: "cannot run C compiled programs" error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Sun, Apr 17, 2011 at 10:45 PM, Ian Lance Taylor <iant@xxxxxxxxxx> wrote:
> Jonathan Wakely <jwakely.gcc@xxxxxxxxx> 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
>>
Some type of PowerPC vs x86 thing? Can you use the file command to
make sure that the architecture matches what you are running on?

Can you try going into the gcc subdir of your object dir and try to
compile using -S a simple file and see what the assembler looks like:

./xgcc -B. <other stuff may be needed> simple.c

kevin


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux