This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cross gcc help needed


On Wed, Mar 12, 2003 at 08:24:09PM +0000, toreador at attbi dot com wrote:
> 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)

As far as I know, it should work. But I never tried that WinCE stuff,
so don't rely on me here.

> 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:

The "bootstrap" does not make any sense here. You cannot bootstrap a
cross compiler by principle.  A simple "make" is sufficient.

> 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)
						    ^^

Do you have built cross platform binutils? You need them for a cross
compiler.

What is the output of the failing command with a "-v" added?

Robert

-- 
Robert Schiele			Tel.: +49-621-181-2517
Dipl.-Wirtsch.informatiker	mailto:rschiele at uni-mannheim dot de

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]