ARM64 with Ubuntu 20.04 for python 3.8

Hi All,

First post here :slight_smile: , ubuntu 20.04 is now officially supported by Raspberry Pi so I am looking to use Travis to post my container images to docker hub (still reading if is possible and how to do it). What I do know is that for 20.04 there is no python 3.8 build for arm64 because setting it fails :

Downloading archive: https://storage.googleapis.com/travis-ci-language-archives/python/binaries/ubuntu/20.04/aarch64/python-3.8.tar.bz2
0.10s$ curl -sSf --retry 5 -o python-3.8.tar.bz2 ${archive_url}
curl: (22) The requested URL returned error: 404 
Unable to download 3.8 archive. The archive may not exist. Please consider a different version. 

Is there any way to work around this ?
Is it on the road map (I am assuming it is since other architectures work) to add support for ARM64 on Focal ?

Thanks!

https://travis-ci.com/github/travis-ci/cpython-builder/jobs/334364087#L2812

Compilation failed. It’ll have to fixed upstream.

Ahh, thanks @BanzaiMan I guess I’ll just wait for that to happen :slight_smile:

sorry, going through the learning curve @BanzaiMan, you are right the build failed and needs fixing, but looking at the config yaml file there is no section for arm64 for focal :

- arch: ppc64le
  dist: xenial
  name: xenial-ppc64le
  os: linux
  language: minimal
- arch: ppc64le
  dist: bionic
  name: bionic-ppc64le
  os: linux
  language: minimal
- arch: s390x
  dist: xenial
  name: xenial-s390x
  os: linux
  language: minimal
- arch: s390x
  dist: bionic
  name: bionic-s390x
  os: linux
  language: minimal
- arch: arm64
  dist: xenial
  name: xenial-arm64
  language: minimal
- arch: arm64
  dist: bionic
  name: bionic-arm64
  language: minimal 

so I guess my question still stands since there seems to be no support for the combination I am looking for. Thanks.

Ah, sorry. I’ve added it at https://travis-ci.com/github/travis-ci/cpython-builder/builds/172556879

and initiated a build 3.8.3 (alias 3.8) at https://travis-ci.com/github/travis-ci/cpython-builder/builds/172558126

1 Like

Looking at the errors, I believe this is the reason:

checking for sys/stat.h... no

Looks like someone forgot to install a dev package: https://packages.ubuntu.com/search?suite=focal&arch=any&mode=exactfilename&searchon=contents&keywords=sys%2Fstat.h

1 Like

you can use language: shell and just install python3.8 using apt.
I’ve been running travis jobs using both boinic/arm64 and focal/arm64 and apt provided python3.8 for some time.

1 Like

ah, @jvesely, you are right! noob miss.

Imprint