Bug 902318

Summary: unrecognized command line option '-melf_i386'
Product: [Fedora] Fedora Reporter: Aravinda <holla.aravinda>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: jakub, law
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-21 12:00:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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).