Jump to content
  • 0
Sign in to follow this  
jorgicio

Why don't recent GCC versions support compiling? (and some workaround)

Question

As an Arduino developer, I use crossdev for creating toolchains (in this case, avr), but then I found recent versions (from 4.6.4) don't support cross-compiling, and I don't know why.

4.6.2-r2 has some errors at compiling, and I had (for a while) to use a pretty older version, 4.3.3.

 

Anyway, as a workaround, I had to download the Gentoo GCC ebuilds (that support toolchain), and all works flawlessly.

Also, I made a script for that.

#!/bin/bash

URL="data.gpo.zugaina.org/gentoo/sys-devel/gcc/"
#URL="sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-devel/gcc/"
PORTDIR="/usr/local/portage/cross-avr"
wget -r --no-parent --reject "index*" --quiet "http://$URL"
if [[ -e "$PORTDIR/gcc" && -L "$PORTDIR/gcc" ]];then
    rm -v $PORTDIR/gcc
fi
cp -r $URL $PORTDIR
if [[ "$?" == "0" ]];then
    echo "Success!"
else
    echo "Something failed"
fi
echo "Cleaning..."
rm -rv $URL

Now, my question is: it will be (re)supported in future ebuilds for, at least, most of the Funtoo GCC ebuilds?

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Drobbins made some improvements to gcc since the 4.6.2 ebuilds, and they are not cross-compile friendly.  You have the right idea though, I've been using the Gentoo ebuilds for cross-compiling for over a year now, all works great that way, no fuss once you figure that out.  I'm a heavy distcc user with a good assortment of different machines here (including arduino).  My 1st mega on the way for this

Um, how much for the hat?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...