ryankurte / efm32-base

Base project for Silicon Labs EFM32 microcontrollers
89 stars 33 forks source link

Build toolchain is out of date #20

Closed victorromeo closed 4 years ago

victorromeo commented 4 years ago

Hi,

The referenced toolchain appears to be very old. Nearly 5 years old in fact. May I please confirm support for more recent build toolchains?

Your Travis CI bulid is using a different toolchain to those in the toolchain link on the repo. May I please confirm which you recommend and why?

Excerpt below

-- The C compiler identification is GNU 7.3.1
-- The CXX compiler identification is GNU 7.3.1

Ta, VR.

victorromeo commented 4 years ago

I have noticed that on Ubuntu 18.04, the cmake which is installed using sudo apt-get install cmake is old.

cmake version 3.10.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).

Updating cmake also fails to upgrade the version.

sudo apt-get install --upgrade cmake
Reading package lists... Done
Building dependency tree       
Reading state information... Done
cmake is already the newest version (3.10.2-1ubuntu2.18.04.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

This can be fixed by removing the offending old installation and getting a new version.

I'm using a snap install of cmake, which is working well for me, whilst building using the latest ARM toolchain

sudo apt-get purge cmake
sudo snap install cmake --classic
victorromeo commented 4 years ago

For the novices in all of us, a side note, using a snap install of cmake, requires a slightly different operation.

snap run cmake <blah>

Instead of

cmake <blah>