C++ toolchain issue on ubuntu 14.04


I got the same issue as you did trying to compile a simple C++ (11) program for the frdm-k64f platform on Ubuntu 14.04

The culprit was the arm-none-eabi-gcc package you can download for this version of Ubuntu is broken.

What worked for me is to fetch it from following ppa: https://launchpad.net/~terry.guo/+archive/ubuntu/gcc-arm-embedded

However, unlike what’s written there, you shall then “install sudo apt-get install gcc-arm-none-eabi=”

Mind the difference at the end, when selecting the package…Not trusty13, but trusty1

You end up getting a working compiler and sysroot, eliminating the error you mentioned.

Have a great day