This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Problems building a cross-compiler on Solaris 9
- From: Mark Shinwell <Mark dot Shinwell at cl dot cam dot ac dot uk>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 17 Feb 2003 16:02:23 +0000
- Subject: Problems building a cross-compiler on Solaris 9
Hi
I am attempting to produce a gcc 3.2.2 cross-compiler hosted on a SPARC
Solaris 9 machine targetting i686-mingw32.
Using the procedure
../gcc-3.2.2/configure --prefix=/opt/gcc-3.2.2/ --target=i686-mingw32
cd gcc
make installdirs
cd ..
make
the build works successfully up until the point:
/data/build/gcc-3.2.2-build/gcc/xgcc -B/data/build/gcc-3.2.2-build/gcc/
-B/opt/gcc-3.2.2//i686-mingw32/bin/ -B/opt/gcc-3.2.2//i686-mingw32/lib/
-isystem /opt/gcc-3.2.2//i686-mingw32/include -O2
-I../../gcc-3.2.2/gcc/../winsup/include
-I../../gcc-3.2.2/gcc/../winsup/cygwin/include
-I../../gcc-3.2.2/gcc/../winsup/w32api/include -DIN_GCC -DCROSS_COMPILE
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-isystem ./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
-Dinhibit_libc -I. -I. -I../../gcc-3.2.2/gcc -I../../gcc-3.2.2/gcc/.
-I../../gcc-3.2.2/gcc/config -I../../gcc-3.2.2/gcc/../include -DL_chkstk
-xassembler-with-cpp -c ../../gcc-3.2.2/gcc/config/i386/cygwin.asm -o
libgcc/./_chkstk.o
as: "/var/tmp//ccqhPUsw.s", line 13: error: unknown opcode "pushl"
as: "/var/tmp//ccqhPUsw.s", line 13: error: unknown "%"-symbol
as: "/var/tmp//ccqhPUsw.s", line 13: error: statement syntax
(with many more similar errors following). I presume this is something
to do with attempting to compile i386 assembly language using a SPARC
assembler?
The problem manifests itself in similar ways using either GNU binutils
2.11.2, or the Sun tools in /usr/ccs/bin. gcc 3.2 was used for the
build.
Any ideas would be appreciated!
Mark
--
Mark Shinwell -- http://mrs30.quns.cam.ac.uk/ -- Mark.Shinwell@cl.cam.ac.uk
Theory and Semantics Group, University of Cambridge Computer Laboratory