Bug 902318 - unrecognized command line option '-melf_i386'
Summary: unrecognized command line option '-melf_i386'
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-21 11:25 UTC by Aravinda
Modified: 2013-01-21 12:00 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-21 12:00:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Aravinda 2013-01-21 11:25:40 UTC
Description of problem:
When ever I run eda tool Synopsys vcsi I use, I get an error
g++: error: unrecognized command line option '-melf_i386'.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.Run a 32 bit tool
2.
3.
  
Actual results:ld -r -m elf_i386 -o pre_vcsobj_1_1.o --whole-archive pre_vcsobj_1_1.a --no-whole-archive
if [ -x ../simv ]; then chmod -x ../simv; fi
g++  -o ../simv -melf_i386 -m32    -Wl,-whole-archive    -Wl,-no-whole-archive   SIM_l.o 5NrI_d.o 5NrIB_d.o    pre_vcsobj_1_1.o  rmapats_mop.o rmapats.o       /tools/vcs_g_2012/linux/lib/libnplex_stub.so /tools/vcs_g_2012/linux/lib/libvirsim.so /tools/vcs_g_2012/linux/lib/librterrorinf.so /tools/vcs_g_2012/linux/lib/libsnpsmalloc.so     /tools/vcs_g_2012/linux/lib/libvcsnew.so /tools/vcs_g_2012/linux/lib/libuclinative.so         /tools/vcs_g_2012/linux/lib/vcs_save_restore_new.o /tools/vcs_g_2012/linux/lib/ctype-stubs_32.a -ldl -lm  -lc -lpthread -ldl 
g++: error: unrecognized command line option '-melf_i386'
make: *** [product_timestamp] Error 1



Expected results:
Proper running of the tool.

Additional info:

Comment 1 Jakub Jelinek 2013-01-21 12:00:22 UTC
The tool is buggy then.  -melf_i386 is a linker command line option, not compiler, so you need to use -Wl,-melf_i386 (or nothing at all, for g++ -m32 on i?86/x86_64 that is the default).


Note You need to log in before you can comment on or make changes to this bug.