Re: "cannot run C compiled programs" error

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

 



Hi Kevin,

You're right... I tried -m32 and the a.out executed OK!

Would you know how I can set this as a flag to the configure script?

Thanks again,
Anna.


On 20/04/11 20/04/11 1:36 PM, "kevin diggs" <diggskevin38@xxxxxxxxx> wrote:

> Hi,
> 
> On Tue, Apr 19, 2011 at 8:49 PM, Anna Ceguerra
> <anna.ceguerra@xxxxxxxxxxxxx> wrote:
>> I managed to export conftest.c before it got deleted. Here is the code, and
>> the generated assembly. Generating a.out & running it causes it to fail with
>> the same error ( Bad CPU type in executable). Also, what does the ".quad"
>> instruction do? I thought I had disabled libquadmath in my configure
>> command?
>> 
>> Compile command
>> ===============
>> /Users/anna/Documents/programs/GCC/GCC/build/./gcc/xgcc
>> -B/Users/anna/Documents/programs/GCC/GCC/build/./gcc/
>> -B/Users/anna/Documents/programs/GCC/GCC/install/i386-apple-darwin10.7.0/bin
>> /
>> -B/Users/anna/Documents/programs/GCC/GCC/install/i386-apple-darwin10.7.0/lib
>> / -isystem
>> /Users/anna/Documents/programs/GCC/GCC/install/i386-apple-darwin10.7.0/inclu
>> de -isystem
>> /Users/anna/Documents/programs/GCC/GCC/install/i386-apple-darwin10.7.0/sys-i
>> nclude  -m64 -g -O2   conftest.c
>> 
> -m64??? I think that is 64-bit???
>> 
> 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