Bug 157654 - i386-redhat-linux-gcc32 and g++32 attempt to use x86_64 assembler
i386-redhat-linux-gcc32 and g++32 attempt to use x86_64 assembler
Product: Fedora
Classification: Fedora
Component: comps (Show other bugs)
x86_64 Linux
medium Severity medium
: ---
: ---
Assigned To: Elliot Lee
Bill Nottingham
Depends On:
Blocks: FC4Blocker
  Show dependency treegraph
Reported: 2005-05-13 10:47 EDT by yuubyou+rhbz
Modified: 2014-03-16 22:53 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-05-16 14:21:06 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description yuubyou+rhbz 2005-05-13 10:47:38 EDT
Description of problem:
i386-redhat-linux-gcc32 feeds its 32-bit output to 64-bit gas.  This fails as
soon as it gets to `pushl %ebp' (i.e. very quickly).

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

How reproducible:

Steps to Reproduce:
1. echo 'int main() { return 0; }' > foo.c
2. i386-redhat-linux-gcc32 foo.c
Actual results:
/tmp/ccEN4RhT.s: Assembler messages:
/tmp/ccEN4RhT.s:6: Error: suffix or operands invalid for `push'

Expected results:
No errors and a 32-bit a.out.

Additional info:
Line 6 is the first instruction, `pushl %ebp'.
Fails the same way with `i386-redhat-linux-gcc32 -m32'
Works with `gcc32 -m32'.
Comment 1 yuubyou+rhbz 2005-05-14 18:45:13 EDT
/usr/bin/g++32 fails similarly.
gcc32 is an x86_64 compiler, while g++32 is an i386 compiler.
Comment 2 Jakub Jelinek 2005-05-16 08:46:00 EDT
That is a bug in the x86-64/ppc comps.
compat-gcc-*.i386.rpm must not be included on x86-64, similarly
compat-gcc-*.ppc64.rpm must not be included on ppc.
Only compat-[^g]*.i386.rpm (resp. compat-[^g]*.ppc64.rpm) are meant to be
installed in addition to compat-[^g]*.x86_64.rpm (resp. *.ppc.rpm).
Comment 3 Elliot Lee 2005-05-16 14:21:06 EDT
I'm removing compat-gcc-* from the compat-arch-development group.

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