recommended version of gcc for altivec

Dan Kegel dkegel@ixiacom.com
Wed Oct 8 20:47:00 GMT 2003


Mauricio Alvarez Mesa wrote:
> I am trying to build a tool set for cross compiling applications for a 
> powerpc target supporting altivec extensions on a pentium linux host.
> 
> Using crosstool I built a toolchain composed by
> gcc-3.3.1
> binutils-2.14.90.0.6
> glibc-2.3.2
> linux kernel linux-2.4.22
> 
> and using the powerpc-gnualtivec target.
> 
> But when I try to compile some powepc altivec enhanced applications gcc 
> abort with an internal compiler error.
> 
> I was searching on gcc mailing list and there is a known and resolved 
> bug (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11949)
> 
> Poeple in gcc-patches says that "The fix was put on the mainline: Search 
> converges between 2003-05-05-trunk (#287) and 2003-05-06-trunk (#288)."
> 
> So, my question is what version of gcc is recomendded for working with 
> powerpc-altivec targets and how can I build a tool chain using crosstool 
> and a gcc version that it is not the stable one?

You've done all the research, now you just have to put it together!
The last entry in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11949
is a patch to fix the problem.  Download that patch, name it pr11949-fix.patch,
and drop it into crosstool's patches/gcc-3.3.1 directory.  (You may need to adjust the
path in the patch from gcc/c-typeck.c to gcc-3.3.1/c-typeck.c to make
crosstool happy.)  Crosstool should pick it up, and if you're lucky,
you'll end up with a fixed compiler!

Let us know how it goes.  If it works, post the patch here, and I'll
pick it up for the next release of crosstool.

- Dan


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



More information about the crossgcc mailing list