OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Oct 22, 2021 10:02 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Error: invalid instruction suffix for `push'
PostPosted: Mon May 10, 2021 1:08 pm 
Offline

Joined: Mon May 10, 2021 1:06 pm
Posts: 1
Hi. So I'm following the Bare Bones tutorial and when running $HOME/opt/cross/bin/i686-elf-gcc -c kernel.c -o kernel.o -std=gnu99 -ffreestanding -O2 -Wall -Wextra
I get the error(s):
Code:
/tmp/ccgonXZ0.s: Assembler messages:
/tmp/ccgonXZ0.s:7: Error: invalid instruction suffix for `push'
/tmp/ccgonXZ0.s:19: Error: invalid instruction suffix for `pop'
/tmp/ccgonXZ0.s:58: Error: invalid instruction suffix for `push'
/tmp/ccgonXZ0.s:61: Error: invalid instruction suffix for `pop'
/tmp/ccgonXZ0.s:69: Error: invalid instruction suffix for `push'
/tmp/ccgonXZ0.s:82: Error: invalid instruction suffix for `pop'
/tmp/ccgonXZ0.s:91: Error: invalid instruction suffix for `push'
/tmp/ccgonXZ0.s:93: Error: invalid instruction suffix for `push'
/tmp/ccgonXZ0.s:95: Error: invalid instruction suffix for `push'
/tmp/ccgonXZ0.s:108: Error: invalid instruction suffix for `pop'
/tmp/ccgonXZ0.s:109: Error: invalid instruction suffix for `pop'
/tmp/ccgonXZ0.s:111: Error: invalid instruction suffix for `pop'
/tmp/ccgonXZ0.s:118: Error: invalid instruction suffix for `pop'
/tmp/ccgonXZ0.s:121: Error: invalid instruction suffix for `pop'
/tmp/ccgonXZ0.s:122: Error: invalid instruction suffix for `pop'
/tmp/ccgonXZ0.s:130: Error: invalid instruction suffix for `push'
/tmp/ccgonXZ0.s:132: Error: invalid instruction suffix for `push'
/tmp/ccgonXZ0.s:133: Error: invalid instruction suffix for `push'
/tmp/ccgonXZ0.s:134: Error: invalid instruction suffix for `push'
/tmp/ccgonXZ0.s:177: Error: invalid instruction suffix for `pop'
/tmp/ccgonXZ0.s:178: Error: invalid instruction suffix for `pop'
/tmp/ccgonXZ0.s:179: Error: invalid instruction suffix for `pop'
/tmp/ccgonXZ0.s:180: Error: invalid instruction suffix for `pop'
/tmp/ccgonXZ0.s:187: Error: invalid instruction suffix for `push'
/tmp/ccgonXZ0.s:189: Error: invalid instruction suffix for `push'
/tmp/ccgonXZ0.s:190: Error: invalid instruction suffix for `push'
/tmp/ccgonXZ0.s:191: Error: invalid instruction suffix for `push'
/tmp/ccgonXZ0.s:242: Error: invalid instruction suffix for `pop'
/tmp/ccgonXZ0.s:243: Error: invalid instruction suffix for `pop'
/tmp/ccgonXZ0.s:244: Error: invalid instruction suffix for `pop'
/tmp/ccgonXZ0.s:245: Error: invalid instruction suffix for `pop'
/tmp/ccgonXZ0.s:256: Error: invalid instruction suffix for `push'
/tmp/ccgonXZ0.s:258: Error: invalid instruction suffix for `push'
/tmp/ccgonXZ0.s:259: Error: invalid instruction suffix for `push'
/tmp/ccgonXZ0.s:260: Error: invalid instruction suffix for `push'
/tmp/ccgonXZ0.s:314: Error: invalid instruction suffix for `pop'
/tmp/ccgonXZ0.s:315: Error: invalid instruction suffix for `pop'
/tmp/ccgonXZ0.s:316: Error: invalid instruction suffix for `pop'
/tmp/ccgonXZ0.s:317: Error: invalid instruction suffix for `pop'


Top
 Profile  
 
 Post subject: Re: Error: invalid instruction suffix for `push'
PostPosted: Mon May 10, 2021 8:45 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 3406
Your compiler is using the wrong assembler. You may have missed a step when you were setting up your toolchain.

If you add "-v" to your command line, you'll be able to see exactly which assembler is being used.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group