Jump to content
Forums in Read-Only Mode - Please use Reddit ×
  • 0

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


jorgicio

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?

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 New...