This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
gcc cross compiler problem
- From: "Scott Phuong" <mycleanjunk at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 29 Apr 2008 01:47:08 -0700
- Subject: gcc cross compiler problem
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