Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dockerfile uses gcc-avr version that no longer exists #6773

Closed
joba-1 opened this issue Sep 13, 2019 · 4 comments
Closed

dockerfile uses gcc-avr version that no longer exists #6773

joba-1 opened this issue Sep 13, 2019 · 4 comments

Comments

@joba-1
Copy link

joba-1 commented Sep 13, 2019

Before submitting, search the open issue if there is already a report of the bug

found no open issues for dockerfile

Describe the bug

I try to build latest stable release version 2.2.4 in a supported environment following OpenTX-2.2-Linux-Build-Instructions

This is not possible.

To Reproduce

I installed docker on my opensuse leap 15.1 system (any other source system will do)

sudo zypper in docker
sudo systemctl start docker

Then I downloaded the dockerfile and tried to build the docker image.

mkdir opentx
cd opentx
wget https://github.com/opentx/opentx/raw/2.2/radio/util/Dockerfile
docker build -t opentx

This fails after some time

...
Step 6/10 : RUN wget -q http://ftp.de.debian.org/debian/pool/main/g/gcc-avr/gcc-avr_4.7.2-2_amd64.deb &&     wget -q http://ftp.de.debian.org/debian/pool/main/a/avr-libc/avr-libc_1.8.0-2_all.deb &&     wget -q http://ftp.de.debian.org/debian/pool/main/b/binutils-avr/binutils-avr_2.24+Atmel3.4.4-1_amd64.deb &&     wget -q http://ftp.de.debian.org/debian/pool/main/m/mpclib/libmpc2_0.9-4_amd64.deb &&     dpkg -i gcc-avr_4.7.2-2_amd64.deb libmpc2_0.9-4_amd64.deb avr-libc_1.8.0-2_all.deb binutils-avr_2.24+Atmel3.4.4-1_amd64.deb
 ---> Running in 74a3a025a543
The command '/bin/sh -c wget -q http://ftp.de.debian.org/debian/pool/main/g/gcc-avr/gcc-avr_4.7.2-2_amd64.deb &&     wget -q http://ftp.de.debian.org/debian/pool/main/a/avr-libc/avr-libc_1.8.0-2_all.deb &&     wget -q http://ftp.de.debian.org/debian/pool/main/b/binutils-avr/binutils-avr_2.24+Atmel3.4.4-1_amd64.deb &&     wget -q http://ftp.de.debian.org/debian/pool/main/m/mpclib/libmpc2_0.9-4_amd64.deb &&     dpkg -i gcc-avr_4.7.2-2_amd64.deb libmpc2_0.9-4_amd64.deb avr-libc_1.8.0-2_all.deb binutils-avr_2.24+Atmel3.4.4-1_amd64.deb' returned a non-zero code: 8

Expected behavior

Image build succeeds.

I already checked: the gcc-avr_4.7.2-2_amd64.deb does not exist (anymore) at http://ftp.de.debian.org/debian/pool/main/g/gcc-avr.
Oldest available version is the 5 year old version 4.8.1.
Since I don't know debian, I don't know where to find older versions.
Since this is my first contact with opentx and the link above warns about inconsistent behavior I hesitate to use other gcc-avr versions.
Do you have a workaround? This should then probably be documented at the link above and dockerfile adapted.

Thank you.

@kilrah
Copy link
Member

kilrah commented Sep 14, 2019

You should be able to remove all the AVR stuff in lines 16-20 from the Dockerfile since we dropped support for AVR stuff in 2.2 anyway. We removed it in 2.3. https://github.com/opentx/opentx/blob/2.3/radio/util/Dockerfile

@joba-1
Copy link
Author

joba-1 commented Sep 14, 2019

found the missing files. Hope it helps. It built fine for me now. Thanks @kilrah

@joba-1 joba-1 closed this as completed Sep 14, 2019
@kilrah
Copy link
Member

kilrah commented Sep 15, 2019

Did you try removing them as I suggested? If that works it is a better fix.

@joba-1
Copy link
Author

joba-1 commented Sep 15, 2019

I didn't go that route first because I didn't want to remove a feature from a stable version, even if that feature is declared not supported.
And I have no means of actually testing the firmware, I wouldn't even know what to look for.

But I did test building it right now: as expected, this works for me too: "[100%] Built target firmware" :)

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants