This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
cross gcc help needed
- From: toreador at attbi dot com
- To: gcc at gcc dot gnu dot org
- Cc: toreador at attbi dot com
- Date: Wed, 12 Mar 2003 20:24:09 +0000
- Subject: cross gcc help needed
Hello,
I'm hoping you might be able to help me. I have been tasked with finding a
solution to our current roadblock and I'm having difficulty doing that. It
involves GCC, specifically installing it for a cross compiler.
Our project involves C and C++ code running a PDA with an XScale CPU.
A pc running windows xp is host for the build process. The PDA in question is
running WinCE. Since Microsoft's Nmake doesn't cut the mustard for compiling
for XScale, we're turning to GNU make to see if it is a possible avenue for us.
My questions are:
Is it possible? (I have read conflicting articles regarding the cross
compiler potential of gcc)
How is it done? (I have installed CYGWIN, configured, made and completed the
install for binutils, then ran the configure, did a make bootstrap and make
install of gcc to produce a native compiler. This seemed to work fine, but
when I try to build gcc as a cross compiler, it fails during the 'make
bootstrap' and reports:
mkdir libgcc
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi /gcc_arm/gcc/xgcc -
B/gcc_arm/gcc/ -B/binutils_arm/arm-aout/bin/ -B/binutils_arm/ arm-aout/lib/ -
isystem /binutils_arm/arm-aout/include -O2 -DIN_GCC -DCROSS_COMP
ILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -
isystem
./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -
I
../../gcc_src/gcc -I../../gcc_src/gcc/. -I../../gcc_src/gcc/config -
I../../gcc_s rc/gcc/../include -DL_udivsi3 -xassembler-with-cpp -
c ../../gcc_src/gcc/config/a rm/lib1funcs.asm -o libgcc/./_udivsi3.o
xgcc: Internal error: Segmentation fault (program as)
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[2]: *** [libgcc/./_udivsi3.o] Error 1
make[2]: Leaving directory `/gcc_arm/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/gcc_arm/gcc'
make: *** [all-gcc] Error 2
I am getting documentation together to send this bug info in as the output
suggested, but I'm still on the hook for making this work. Do you have any
suggestions?
My experience is modest in this area and any help (especially that which
includes details) is VERY much appreciated.
Thanks in advance!
Tom Gosselin