roboterclubaachen / rca-vm

DEPRECATED: Scripts to build provisioned virtual machines for xpcc and robot development
4 stars 1 forks source link

Use gcc-arm-none-eabi from ppa #4

Closed ekiwi closed 9 years ago

ekiwi commented 10 years ago

Currently in Trusty, the version from the main repository will be installed. This one lacks libstc++ support, thus xpcc won't compile. We need to find out how to install the correct version.

ekiwi commented 10 years ago

https://bugs.launchpad.net/gcc-arm-embedded/+bug/1309060

salkinium commented 9 years ago

We need to confirm that we are currently installing the ARM toolchain not the Debian toolchain.

I get this output from packer:

virtualbox-iso: This PPA is an alternative to toolchain released at https://launchpad.net/gcc-arm-embedded. The source codes for both are same. Currently supports Ubuntu 10.04/12.04/13.04/13.10/14.04 32 and 64 bit.
virtualbox-iso:
virtualbox-iso: Detailed explanations to Launchpad PPA can be found at https://help.launchpad.net/Packaging/. That website explains how a PPA is set up and how to add existing PPA and install software from it.
virtualbox-iso:
virtualbox-iso: Here are quick steps to install toolchain from this PPA on Ubuntu before 14.04:
virtualbox-iso:
virtualbox-iso: Step1: Inside Ubuntu, open a terminal and input
virtualbox-iso: "sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded"
virtualbox-iso:
virtualbox-iso: Step2: Continue to input
virtualbox-iso: "sudo apt-get update"
virtualbox-iso:
virtualbox-iso: Step3: Continue to input to install toolchain
virtualbox-iso: "sudo apt-get install gcc-arm-none-eabi"
virtualbox-iso:
virtualbox-iso: To remove installed toolchain, just input "sudo apt-get remove gcc-arm-none-eabi".
virtualbox-iso: To update the toolchain, just repeat above step2 and step3.
virtualbox-iso:
virtualbox-iso: Questions should be asked at https://answers.launchpad.net/gcc-arm-embedded
virtualbox-iso:
virtualbox-iso: Bug can be filed at https://bugs.launchpad.net/gcc-arm-embedded/+filebug. It is highly encouraged to ask question first before filing a bug.
virtualbox-iso:
virtualbox-iso: !!! If you are using Ubuntu 14.04 and later, please be careful because there are packages with same name but produced by Debian and inherited by Ubuntu. Simply follow the above 3 steps, you may end up with gcc-arm-none-eabi from Ubuntu. So to install gcc-arm-none-eabi from ARM, steps are:
virtualbox-iso: 1). sudo apt-get remove binutils-arm-none-eabi gcc-arm-none-eabi
virtualbox-iso: 2). sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded
virtualbox-iso: 3). sudo apt-get update
virtualbox-iso: 4). sudo apt-get install gcc-arm-none-eabi=4.8.4.2014q3-0trusty11