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

renode_rcc: failure to build Docker image #170

Closed
gmacario opened this issue Aug 20, 2024 · 1 comment · Fixed by #171
Closed

renode_rcc: failure to build Docker image #170

gmacario opened this issue Aug 20, 2024 · 1 comment · Fixed by #171
Assignees

Comments

@gmacario
Copy link

gmacario commented Aug 20, 2024

Tested on my local workstation (hw2482) running Ubuntu 24.04 and Docker version 27.1.2, build d01f264.

Logged in as gmacario@hw2482, type the following commands:

# Clone git repository
mkdir -p ~/github/space-ros
cd ~/github/space-ros
git clone https://github.com/space-ros/docker

# Try building Renode Docker Image
cd ~/github/space-ros/docker/renode_rcc
./build.sh

Result:

gmacario@hw2482:~/github/space-ros/docker/renode_rcc$ ./build.sh 

##### Building Renode Docker Image #####
[+] Building 880.6s (16/18)                                                 docker:default
 => [internal] load build definition from Dockerfile                                  0.1s
 => => transferring dockerfile: 1.51kB                                                0.0s
 => [internal] load metadata for docker.io/library/ubuntu:20.04                       1.5s
 => [internal] load .dockerignore                                                     0.0s
 => => transferring context: 2B                                                       0.0s
 => [internal] load build context                                                     0.1s
 => => transferring context: 146.38kB                                                 0.0s
 => [stage-0  1/14] FROM docker.io/library/ubuntu:20.04@sha256:fa17826afb526a9fc7250  0.1s
 => => resolve docker.io/library/ubuntu:20.04@sha256:fa17826afb526a9fc7250e0fbcbfd18  0.0s
 => => sha256:85c08a37b74bc18a7b3f8cf89aabdfac51c525cdbc193a753f7907965e 424B / 424B  0.0s
 => => sha256:9df6d6105df2788299e5cbbf3dfd09aa6b3b5a10b784b214c35a03 2.30kB / 2.30kB  0.0s
 => => sha256:fa17826afb526a9fc7250e0fbcbfd18d03fe7a54849472f86879d8 1.34kB / 1.34kB  0.0s
 => [stage-0  2/14] WORKDIR /root                                                     0.2s
 => [stage-0  3/14] RUN --mount=type=cache,target=/var/cache/apt,sharing=locked      51.3s
 => [stage-0  4/14] RUN --mount=type=cache,target=/var/cache/apt,sharing=locked     111.1s 
 => [stage-0  5/14] RUN pip3 install -r /opt/renode/tests/requirements.txt --no-cach  3.3s 
 => [stage-0  6/14] RUN git clone https://github.com/antmicro/renode-rtems-leon3.git  0.9s 
 => [stage-0  7/14] COPY renode-rtems-leon3/ /root/renode-rtems-leon3/                0.1s 
 => [stage-0  8/14] WORKDIR /root/renode-rtems-leon3                                  0.1s 
 => [stage-0  9/14] RUN ./build-rtems.sh                                            107.4s 
 => [stage-0 10/14] RUN ./build-prom.sh                                             334.1s 
 => [stage-0 11/14] RUN mv rcc-1.3.0-gcc/ /opt/renode/                              269.5s 
 => ERROR [stage-0 12/14] RUN mv grlib-gpl-2021.2-b4267 /opt/renode/                  0.4s 
------                                                                                     
 > [stage-0 12/14] RUN mv grlib-gpl-2021.2-b4267 /opt/renode/:                             
0.315 mv: cannot stat 'grlib-gpl-2021.2-b4267': No such file or directory                  
------                                                                                     

 2 warnings found (use docker --debug to expand):
 - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 3)
 - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 41)
Dockerfile:39
--------------------
  37 |     RUN ./build-prom.sh
  38 |     RUN mv rcc-1.3.0-gcc/ /opt/renode/
  39 | >>> RUN mv grlib-gpl-2021.2-b4267 /opt/renode/
  40 |     
  41 |     ENV PATH $PATH:/opt/renode/rcc-1.3.0-gcc/bin
--------------------
ERROR: failed to solve: process "/bin/sh -c mv grlib-gpl-2021.2-b4267 /opt/renode/" did not complete successfully: exit code: 1

##### Done! #####
gmacario@hw2482:~/github/space-ros/docker/renode_rcc$

See also: #69

@gmacario gmacario changed the title renode_rcc fails to build Docker image renode_rcc: failure to build Docker image Aug 20, 2024
@Bckempa
Copy link
Contributor

Bckempa commented Aug 22, 2024

Hi @gmacario, sorry you hit an issue with this. This demo was produced by some Open Robotics staff during the ACO is not currently maintained, but I believe I found the issue.

It looks like the upstream repo bumped the grlib version which is referenced by full version name. antmicro/renode-rtems-leon3@4e962e4

I'll open a PR to fix this.

@Bckempa Bckempa added this to the jazzy-2024.10.0 milestone Aug 22, 2024
@Bckempa Bckempa linked a pull request Aug 22, 2024 that will close this issue
Bckempa added a commit that referenced this issue Aug 22, 2024
Updates grlib version used by upstream dependency
Update Dockerfile ENV key format
@Bckempa Bckempa self-assigned this Aug 22, 2024
EzraBrooks added a commit that referenced this issue Sep 4, 2024
…d-docker-image (#170)

Fix renode rcc build failure (close #170)
@github-project-automation github-project-automation bot moved this from In Review to Done in Space ROS Project Development Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants