LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 08-14-2008, 06:16 AM   #1
deedhnd
LQ Newbie
 
Registered: Apr 2008
Posts: 16

Rep: Reputation: 0
assembly code throws errors while compiling on SLES 10 sp2


cc1plus: error: unrecognized command line option "-m32"
make: *** [objs/src/vm/lhw/linux/pcislotnumber/pci.o] Error 1
../../src/vm/lhw/linux/pcislotnumber/rom_call.s: Assembler messages:
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:8: Error: Unknown opcode `pushl %ebp'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:9: Error: bad expression
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:9: Error: Illegal operand separator `e'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:11: Error: Unknown opcode `pusha '
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:14: Error: Illegal operand separator `('
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:16: Error: Illegal operand separator `('
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:17: Error: Illegal operand separator `('
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:18: Error: Illegal operand separator `('
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:19: Error: Illegal operand separator `('
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:20: Error: Illegal operand separator `('
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:21: Error: bad expression
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:21: Error: missing ')'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:21: Error: Illegal operand separator `e'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:23: Error: Unknown opcode `pushf '
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:24: Error: Unknown opcode `push %cs'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:25: Error: Unknown opcode `cli '
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:26: Error: Unknown opcode `call *12(%ebp)'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:29: Error: Illegal operand separator `('
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:31: Error: bad expression
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:31: Error: Illegal operand separator `e'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:32: Error: bad expression
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:32: Error: Illegal operand separator `e'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:33: Error: bad expression
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:33: Error: Illegal operand separator `e'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:34: Error: bad expression
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:34: Error: Illegal operand separator `e'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:35: Error: bad expression
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:35: Error: Illegal operand separator `e'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:36: Error: bad expression
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:36: Error: Illegal operand separator `e'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:38: Error: Unknown opcode `movw %es,24(%ebp)'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:40: Error: Unknown opcode `popa '
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:43: Error: Illegal operand separator `('
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:44: Error: Unknown opcode `movzbl 1(%eax),%eax'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:45: Error: Unknown opcode `leave '
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:46: Error: Unknown opcode `ret '
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:52: Error: Unknown opcode `pushl %ebp'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:53: Error: bad expression
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:53: Error: Illegal operand separator `e'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:55: Error: Unknown opcode `pusha '
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:58: Error: Illegal operand separator `('
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:60: Error: Illegal operand separator `('
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:61: Error: Illegal operand separator `('
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:62: Error: Illegal operand separator `('
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:63: Error: Illegal operand separator `('
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:64: Error: Illegal operand separator `('
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:65: Error: bad expression
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:65: Error: missing ')'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:65: Error: Illegal operand separator `e'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:67: Error: Unknown opcode `push %cs'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:68: Error: Unknown opcode `cli '
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:69: Error: Unknown opcode `call *12(%ebp)'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:72: Error: Illegal operand separator `('
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:74: Error: bad expression
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:74: Error: Illegal operand separator `e'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:75: Error: bad expression
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:75: Error: Illegal operand separator `e'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:76: Error: bad expression
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:76: Error: Illegal operand separator `e'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:77: Error: bad expression
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:77: Error: Illegal operand separator `e'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:78: Error: bad expression
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:78: Error: Illegal operand separator `e'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:79: Error: bad expression
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:79: Error: Illegal operand separator `e'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:81: Error: Unknown opcode `movw %es,24(%ebp)'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:83: Error: Unknown opcode `popa '
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:86: Error: Illegal operand separator `('
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:87: Error: Unknown opcode `movzbl 1(%eax),%eax'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:88: Error: Unknown opcode `leave '
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:89: Error: Unknown opcode `ret '
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:95: Error: Unknown opcode `pushl %ebp'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:96: Error: bad expression
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:96: Error: Illegal operand separator `e'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:98: Error: Unknown opcode `pusha '
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:101: Error: Illegal operand separator `('
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:103: Error: Illegal operand separator `('
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:104: Error: Illegal operand separator `('
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:105: Error: Illegal operand separator `('
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:106: Error: Illegal operand separator `('
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:107: Error: Illegal operand separator `('
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:108: Error: bad expression
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:108: Error: missing ')'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:108: Error: Illegal operand separator `e'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:110: Error: Unknown opcode `push %cs'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:111: Error: Unknown opcode `call *12(%ebp)'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:114: Error: Illegal operand separator `('
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:116: Error: bad expression
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:116: Error: Illegal operand separator `e'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:117: Error: bad expression
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:117: Error: Illegal operand separator `e'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:118: Error: bad expression
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:118: Error: Illegal operand separator `e'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:119: Error: bad expression
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:119: Error: Illegal operand separator `e'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:120: Error: bad expression
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:120: Error: Illegal operand separator `e'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:121: Error: bad expression
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:121: Error: Illegal operand separator `e'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:123: Error: Unknown opcode `movw %es,24(%ebp)'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:125: Error: Unknown opcode `popa '
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:128: Error: Illegal operand separator `('
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:129: Error: Unknown opcode `movzbl 1(%eax),%eax'
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:130: Error: Unknown opcode `leave '
../../src/vm/lhw/linux/pcislotnumber/rom_call.s:131: Error: Unknown opcode `ret '
make: *** [objs/src/vm/lhw/linux/pcislotnumber/rom_call.o] Error 1
 
Old 08-15-2008, 03:04 PM   #2
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 595

Rep: Reputation: 103Reputation: 103
It's looks like you try to compile 32-bit code with only 64-bit gcc installed
 
Old 08-15-2008, 11:36 PM   #3
deedhnd
LQ Newbie
 
Registered: Apr 2008
Posts: 16

Original Poster
Rep: Reputation: 0
my source code is portable across platforms that it compiles both on 32 bit and 64 bit....I doubt if some package such as nasm or libasm is required as it compiles well with SLES 9 sp3...what do you say??
 
Old 08-17-2008, 04:36 AM   #4
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 595

Rep: Reputation: 103Reputation: 103
Quote:
Originally Posted by deedhnd View Post
cc1plus: error: unrecognized command line option "-m32"
Your gcc doesn't like -m32 switch. You can try to remove it.
 
Old 08-18-2008, 03:26 AM   #5
deedhnd
LQ Newbie
 
Registered: Apr 2008
Posts: 16

Original Poster
Rep: Reputation: 0
i have removed -m32 option still those opcode errors are coming....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code errors while compiling Mplayer deepumnit Linux - Software 3 07-09-2008 11:13 PM
Initialized SLES 8 update over OES SLES 9 SP2 by mistake. Kamenko Suse/Novell 4 03-13-2007 05:21 AM
Major compilation errors in emacs while compiling c code dualcyclone Linux - Software 0 03-26-2004 01:31 PM
G++ - why am i getting errors compiling this simple code leroy27336 Programming 4 11-18-2003 08:32 PM
Getting Incompatibility Errors While Compiling The Following Code. pritesh Programming 4 10-23-2003 04:18 PM


All times are GMT -5. The time now is 05:38 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration