Jump to content
Read the Funtoo Newsletter: Summer 2023 ×
  • 0

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



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.


wget -r --no-parent --reject "index*" --quiet "http://$URL"
if [[ -e "$PORTDIR/gcc" && -L "$PORTDIR/gcc" ]];then
    rm -v $PORTDIR/gcc
if [[ "$?" == "0" ]];then
    echo "Success!"
    echo "Something failed"
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?

Link to comment
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?

Link to comment
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
  • Create New...