toradex / vscode-torizon-templates

VS Code Torizon Integrated Development Environment Templates
MIT License
14 stars 20 forks source link

javaForms template not working on ARM 32 devices #171

Closed andreriesco closed 19 hours ago

andreriesco commented 6 months ago

When trying to use the javaForms template not working on ARM 32 devices, the following error is shown on the build of the Dockerfile.debug:

Executing task: DOCKER_HOST= docker compose build --pull --build-arg SSHUSERNAME=torizon --build-arg APP_ROOT=/home/torizon/app --build-arg IMAGE_ARCH=arm --build-arg SSH_DEBUG_PORT=2234 --build-arg GPU= testjavaforms-debug 

WARN[0000] The "DOCKER_LOGIN" variable is not set. Defaulting to a blank string. 
[+] Building 14.1s (10/17)                                                                                                docker:default
 => [testjavaforms-debug internal] load build definition from Dockerfile.debug                                                      0.0s
 => => transferring dockerfile: 3.90kB                                                                                              0.0s
 => [testjavaforms-debug internal] load metadata for docker.io/torizon/wayland-base:4-rc                                            1.3s
 => [testjavaforms-debug auth] torizon/wayland-base:pull token for registry-1.docker.io                                             0.0s
 => [testjavaforms-debug internal] load .dockerignore                                                                               0.0s
 => => transferring context: 56B                                                                                                    0.0s
 => [testjavaforms-debug  1/12] FROM docker.io/torizon/wayland-base:4-rc@sha256:d793656c981c67215939c2590a3ec67521674d8d13472a8ae6  0.0s
 => [testjavaforms-debug internal] load build context                                                                               0.0s
 => => transferring context: 274B                                                                                                   0.0s
 => CACHED [testjavaforms-debug  2/12] RUN sed -i 's/sid/bookworm/g' /etc/apt/sources.list.d/debian.sources                         0.0s
 => CACHED [testjavaforms-debug  3/12] RUN apt-get -q -y update &&         if [ "" = "-vivante" ] || [ "" = "-imx8" ]; then         0.0s
 => CACHED [testjavaforms-debug  4/12] RUN apt-get -q -y update &&     apt-get install wget lsb-release -y &&     wget https://pac  0.0s
 => ERROR [testjavaforms-debug  5/12] RUN apt-get -q -y update &&     apt-get -q -y install     openssl     openssh-server     rs  12.8s
------                                                                                                                                   
 > [testjavaforms-debug  5/12] RUN apt-get -q -y update &&     apt-get -q -y install     openssl     openssh-server     rsync     tzdata     locales     fontconfig     libxrender1     libxtst6     libxi6     msopenjdk-21     file &&     apt-get clean && apt-get autoremove &&     rm -rf /var/lib/apt/lists/*:                                                                                                       
0.654 Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]                                                                     
0.742 Get:2 http://deb.debian.org/debian bookworm-updates InRelease [52.1 kB]                                                            
0.742 Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
1.222 Get:4 https://packages.microsoft.com/debian/10/prod buster InRelease [6537 B]
1.762 Get:5 http://deb.debian.org/debian bookworm/main armhf Packages [8497 kB]
2.764 Get:6 http://deb.debian.org/debian bookworm-updates/main armhf Packages [12.1 kB]
3.751 Get:7 http://deb.debian.org/debian-security bookworm-security/main armhf Packages [129 kB]
5.902 Get:8 https://packages.microsoft.com/debian/10/prod buster/main amd64 Packages [202 kB]
6.285 Get:9 https://packages.microsoft.com/debian/10/prod buster/main all Packages [2393 B]
6.287 Get:10 https://packages.microsoft.com/debian/10/prod buster/main arm64 Packages [26.3 kB]
6.288 Get:11 https://packages.microsoft.com/debian/10/prod buster/main armhf Packages [22.1 kB]
6.381 Fetched 9149 kB in 6s (1560 kB/s)
6.381 Reading package lists...
9.361 Reading package lists...
12.08 Building dependency tree...
12.58 Reading state information...
12.61 E: Unable to locate package msopenjdk-21
microhobby commented 5 days ago

So, there is no build of msopenjdk-21 for ARMv7 https://github.com/adoptium/containers/issues/502 https://learn.microsoft.com/en-us/java/openjdk/download#openjdk-21

microhobby commented 19 hours ago

Since the Java appears to be abandoning 32bit architectures

https://openjdk.org/jeps/449

I was not able to find a JEP for the aarch32 deprecation, but since 2021 there is not maintainance for the aarch32 port of OpenJDK.

So, we are also removing support for arm32 from the template.