This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Problem compiling for other platform
- From: Ian Lance Taylor <iant at google dot com>
- To: Brian Ipsen <brian dot ipsen at ryesgade47c dot dk>
- Cc: "gcc-help\ at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Tue, 09 Aug 2011 18:44:07 -0700
- Subject: Re: Problem compiling for other platform
- References: <00B0D147F3D29B49B9E77078201B791D79F285CB4C@excdb01.rg47c.lan>
Brian Ipsen <brian.ipsen@ryesgade47c.dk> writes:
> /tmp/ccrc3fSw.s: Assembler messages:
> /tmp/ccrc3fSw.s:37: Error: suffix or operands invalid for `push'
> /tmp/ccrc3fSw.s:50: Error: suffix or operands invalid for `call'
> /tmp/ccrc3fSw.s:76: Error: suffix or operands invalid for `push'
> /tmp/ccrc3fSw.s:82: Error: suffix or operands invalid for `pop'
> /tmp/ccrc3fSw.s:101: Error: suffix or operands invalid for `call'
> /tmp/ccrc3fSw.s:104: Error: suffix or operands invalid for `pop'
You are using a compiler generating 32-bit code with an assembler that
defaults to expecting 64-bit code. You need to use an assembler which
defaults to 32-bit mode, or tell your compiler to pass -32 to the
assembler.
Ian