Re: Strange error from gcc

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

 



I don't know ... it is a company server. I have used gcc on this machine
before and something must have changed. How can I tell?

Eddy


Ian Lance Taylor-3 wrote:
> 
> eddyq <Eddy@xxxxxxxxxxxxx> writes:
> 
>> I'm getting a strange error from gcc.
>>
>> My try2.c file is as follows:
>> #include <stdio.h>
>> int main(void);
>> int main(void)
>> {
>>    printf("test\n");
>> }
>>
>> The output is as follows:
>> bash-3.00$ gcc try2.c
>> /tmp/ccwboFoy.s: Assembler messages:
>> /tmp/ccwboFoy.s:12: Error: suffix or operands invalid for `push'
>> /tmp/ccwboFoy.s:16: Error: suffix or operands invalid for `push'
>> /tmp/ccwboFoy.s:21: Error: suffix or operands invalid for `pop'
>>
>> Does anyone know what is going on?
> 
> You are mixing a compiler which defaults to 64-bit mode with an
> assembler which defaults to 32-bit mode, or vice-versa.
> 
> Ian
> 
> 

-- 
View this message in context: http://old.nabble.com/Strange-error-from-gcc-tp32109441p32117165.html
Sent from the gcc - Help mailing list archive at Nabble.com.



[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