установить версию arm-gcc 4.9 в Debian - PullRequest
0 голосов
/ 17 апреля 2019

Сообщение об ошибке:

# apt-get install gcc-4.9-arm-linux-gnueabihf
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 gcc-4.9-arm-linux-gnueabihf : Depends: libgcc-4.9-dev:armhf (= 4.9.2-10) but 4.9.2-10+deb8u1 is to be installed
E: Unable to correct problems, you have held broken packages.

Я видел статью, в которой говорится, что изменяется /var/lib/dpkg/status, меняется = на =>, чтобы это исправить.Но это не упомянуло детали.Если у вас есть идея, пожалуйста, поделитесь ей.

Ссылка: https://wiki.debian.org/CrossToolchains#Installation

1 Ответ

0 голосов
/ 17 апреля 2019

Я бы предложил скачать набор инструментов Linaro с здесь , если вам действительно нужен gcc 4.9.Если нет, вы можете загрузить более новую версию 7.4.1 здесь или последнюю версию 8.3 из здесь .

Это позволит избежать проблем с зависимостями пакетов и предоставит вам более широко используемые / поддерживаемые цепочки инструментов.

Например:

wget https://releases.linaro.org/components/toolchain/binaries/4.9-2017.01/arm-linux-gnueabi/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabi.tar.xz
sudo tar Jxf gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabi.tar.xz -C /opt
PATH=/opt/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabi/bin:$PATH

arm-linux-gnueabi-gcc --version
arm-linux-gnueabi-gcc (Linaro GCC 4.9-2017.01) 4.9.4
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Если ваша цель имеетподдержка аппаратного с плавающей запятой, вам нужно установить arm-linux-gnueabihf вместо arm-linux-gnueabi.

...