Updating gcc 4.8 arm cross compiler to 4.9 on Mint 17.2

1

While cross compiling a linux kernel (4.1) using gcc-arm-linux-gnueabihf on Mint 17.2 (equivalent to Ubuntu 14.04 trusty) I get an error:

Your compiler is too buggy; it is known to miscompile kernels

The version of gcc I am using is 4.8.2. I'd gladly move to 4.9 but I'm not sure how to. There are updated toolchain PPA (eg: ppa:ubuntu-toolchain-r/ppa) but I believe those are native only, not cross compile. There appear to be 4.9 gcc armhf builds for Ubuntu, but not on trusty - only on utopic and later.

Is there a reasonable way to pull a gcc-arm-linux-gnueabihf package (and dependencies) for 4.9? Can I pull packages for utopic somehow?

carveone

Posted 2015-10-17T12:17:01.257

Reputation: 318

One way appears to be to give up and go backwards rather than forwards: "sudo apt-get install gcc-4.7-arm-linux-gnueabihf". This doesn't create the links for gcc, cpp, gcov so I did those manually. – carveone – 2015-10-17T13:46:29.603

1Check the changlog in the gcc-4.8 packages. You might find that that bug has been fixed. If so, you can just disable the check in the kernel (not sure how). – ams – 2015-10-21T12:21:30.563

Answers

1

From Larrylisky:

It is a little arduous but you can download and install it manually.

wget -c https://releases.linaro.org/archive/14.09/components/toolchain/binaries/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux.tar.xz

tar xf gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux.tar.xz

export CC=`pwd`/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/arm-linux-gnueabihf-

sickgemini

Posted 2015-10-17T12:17:01.257

Reputation: 202

As I asked about moving forward (rather than back which is what I eventually did - I hadn't time to investigate properly), I think this a reasonable answer. – carveone – 2015-11-20T11:38:44.387

Page no longer exists. – FD_ – 2017-01-14T16:33:09.523