This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/30728] New: Building a 32-bit compiler on a 64-bit system should pass --32 flag to the assembler
- From: "michael dot meissner at amd dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Feb 2007 17:49:21 -0000
- Subject: [Bug driver/30728] New: Building a 32-bit compiler on a 64-bit system should pass --32 flag to the assembler
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
If you configure to build a 32-bit compiler on a 64-bit Linux system with:
CC='gcc -m32' /src/trunk/configure --{target,host,build}=i686-pc-linux-gnu ...
the compiler fails because it defaults to 32-bit code but the standard
assembler is 64 bit, and it fails in building libgcc. If you are building in
such an environment, the compiler should be modified to pass --32 to the
assembler.
Note, there is the work around of putting a 32-bit assembler in the --prefix
directory so that it builds correctly, but it would be nice to have it fixed.
--
Summary: Building a 32-bit compiler on a 64-bit system should
pass --32 flag to the assembler
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: driver
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: michael dot meissner at amd dot com
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30728