This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: glibc-2.3.2 xcompile for arm


> Kyle Unice wrote:
> > Using crosstool-0.27 and the demo-arm.sh script I build glibc and get the
> > following error: ...
>  > [snip]
> > /tmp/ccLowr7x.s: Assembler messages:
> > /tmp/ccLowr7x.s:11: Error: selected processor does not support `rfs r2'
> > /tmp/ccLowr7x.s:18: Error: selected processor does not support `wfs r2'
> > make[2]: *** [.../build-glibc/math/setfpucw.o] Error 1
>  > [snip]
> 
> Kyle,
> Thanks for the problem report; sorry I took so long to respond.
> 
> I reproduced your problem just now.  It looks like binutils-2.14
> (which I switched to in crosstool-0.27)
> does not work properly for arm, at least when compiling glibc-2.3.2.
> Use one of H.J.Lu's beta versions instead.
> You can do this by copying the file
> http://kegel.com/crosstool/crosstool-0.26/gcc-3.3.2-glibc-2.3.2.dat
> on top of the similarly named file in crosstool-0.27.  (I evidently
> did not do proper regression testing when releasing crosstool-0.27,
> in spite of trying.  Sad, isn't it?)
> 

It's the -mcpu=xscale flag, which is causing the assembler to assume you 
want a VFP-style environment.  However, for Linux that's wrong (since the 
OS should be determining the platform ABI).

If you don't already have them, then you need these two patches to gas:

http://sources.redhat.com/ml/binutils/2003-06/msg00494.html
http://sources.redhat.com/ml/binutils/2003-06/msg00497.html

R.


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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