Page 1 of 1

Issue compiling firmware

Posted: Sun Jul 19, 2020 10:36 pm
by r0b0tn1k
Trying to compile firmware but getting stuck at installing the arm library.

Any ideas?

Ubuntu (in docker):
E: The repository 'http://ppa.launchpad.net/team-gcc-arm-e ... ppa/ubuntu focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Ubuntu (actual PC):
The following NEW packages will be installed:
gcc-arm-embedded
0 upgraded, 1 newly installed, 0 to remove and 157 not upgraded.
1 not fully installed or removed.
Need to get 0 B/68,9 MB of archives.
After this operation, 451 MB of additional disk space will be used.
(Reading database ... 266511 files and directories currently installed.)
Preparing to unpack .../gcc-arm-embedded_7-2018q2-1~bionic1_amd64.deb ...
Unpacking gcc-arm-embedded (7-2018q2-1~bionic1) ...
dpkg: error processing archive /var/cache/apt/archives/gcc-arm-embedded_7-2018q2-1~bionic1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/libcc1.so.0.0.0', which is also in package gcc-avr 1:5.4.0+Atmel3.6.0-1build1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/gcc-arm-embedded_7-2018q2-1~bionic1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Re: Issue compiling firmware

Posted: Mon Jul 20, 2020 8:43 am
by kimberly
Which ubuntu version are you using?

Re: Issue compiling firmware

Posted: Tue Jul 28, 2020 9:47 pm
by r0b0tn1k
PC:
Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-112-generic x86_64)

Docker:
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal

Re: Issue compiling firmware

Posted: Wed Jul 29, 2020 8:11 am
by kristoffer
Not sure what the problem is, but if you want to check out how we install gcc in our official docker builder image you can find it here https://github.com/bitcraze/docker-buil ... le#L17-L18

If you don't want to install the compiler locally you can use the toolbelt instead, see https://github.com/bitcraze/toolbelt
It uses the builder image mentioned above when compiling.