This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Fwd: gcc cross compiler problem
- From: "NoFirst NoLast" <mycleanjunk at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 28 Apr 2008 19:14:00 -0700
- Subject: Fwd: gcc cross compiler problem
- References: <17945960804281846j23987b7ayd912c67a1644b8fc@mail.gmail.com>
---------- Forwarded message ----------
From: NoFirst NoLast <mycleanjunk@gmail.com>
Date: Mon, Apr 28, 2008 at 6:46 PM
Subject: gcc cross compiler problem
To: gcc@gcc.gnu.org
Hello gcc,
I am running into a problem when I am trying to compile GCC to run on
a i686-pc-linux-gnu (host) but to build source code for target,
x86_64-pc-linux-gnu. I have build binutils first with the following
configure parameters:
configure --target=x86_64-pc-linux-gnu --prefix==mydirectoryforinstall.
After I make and install binutils into my own directory, I build gcc
using the following configure parameter:
configure --prefix=mygccdirectoryfor install --enable-shared
--enable-threads=posix --enable-checking=release --with-system-zlib
--enable-__cxa_atexit --disable-libunwind-exceptions
--enable-libgcj-multifile
--enable-languages=c,c++,objc,obj-c++,fortran,ada --disable-dssi
--enable-plugin --with-cpu=generic --host=x86_64-pc-linux-gnu
Once I did that, I perform a make all.
Eventually, gcc starts to build genmodes.c at which point I get the
following errors:
/tmp/ccwdhaLJ.s: 2073: Error: Suffix or operands invalid for 'pop'
/tmp/ccwdhaLJ.s: 2075: Error: Suffix or operands invalid for 'pop'
/tmp/ccwdhaLJ.s: 2077: Error: Suffix or operands invalid for 'pop'
/tmp/ccwdhaLJ.s: 2094: Error: Suffix or operands invalid for 'push'
There are a lot of the these error messages. I only pasted a few lines.
I am using GCC version 4.3.0 and binutils 2.18.
If you could giving a helping hand, I would appreciate it very much.
Thanks,
Scott