gem5-users@gem5.org

The gem5 Users mailing list

View all threads

Building Bootcamp 2024

BN
Beser, Nicholas D.
Thu, Aug 8, 2024 10:46 PM

I have been reviewing the bootcamp 2024 data set and trying to build a version for both the X86 and Arm64 (Jetson Orin Nano). The older bootcamp 2022 had a set of docker commands that built the entire system. I had been using that docker environment interactively. I noticed that the bootcamp 2024 had a warning not to do interactive operation. I could see that the examples run the builds via docker, storing the results on the computer system. While I don't have  a problem with that, the setup seems to require the Workspace directory from github, and not allow other disk organizations. I also ran into some problems with some of the docker builds (gcc-13 failed). The Jetson Orin Nano also had some issues (gcc-13, and the gpu builds failed.

Are there any alternative builds for gem5 along the lines of bootcamp 2022?

Here is the error message from gcc-13 on a x86 system:
Building gcc-13
[+] Building 1.7s (6/9)                                        docker:default
=> [internal] load build definition from Dockerfile                      0.0s
=> => transferring dockerfile: 2.63kB                                    0.0s
=> [internal] load metadata for docker.io/library/ubuntu:22.04          0.2s
=> [internal] load .dockerignore                                        0.0s
=> => transferring context: 2B                                          0.0s
=> [1/6] FROM docker.io/library/ubuntu:22.04@sha256:340d9b015b194dc6e2a  0.0s
=> CACHED [2/6] RUN apt -y update &&    apt -y install software-proper  0.0s
=> ERROR [3/6] RUN update-alternatives --install    /usr/bin/g++ g++ /  1.2s

[3/6] RUN update-alternatives --install    /usr/bin/g++ g++ /usr/bin/g++- 100:

0.976 update-alternatives: error: alternative path /usr/bin/g++- doesn't exist

Dockerfile:46

45 |
46 | >>> RUN update-alternatives --install
47 | >>>    /usr/bin/g++ g++ /usr/bin/g++- 100
48 |    RUN update-alternatives --install \

ERROR: failed to solve: process "/bin/sh -c update-alternatives --install    /usr/bin/g++ g++ /usr/bin/g++- 100" did not complete successfully: exit code: 2
ERROR: Service 'gcc-13' failed to build : Build failed

Nick

I have been reviewing the bootcamp 2024 data set and trying to build a version for both the X86 and Arm64 (Jetson Orin Nano). The older bootcamp 2022 had a set of docker commands that built the entire system. I had been using that docker environment interactively. I noticed that the bootcamp 2024 had a warning not to do interactive operation. I could see that the examples run the builds via docker, storing the results on the computer system. While I don't have a problem with that, the setup seems to require the Workspace directory from github, and not allow other disk organizations. I also ran into some problems with some of the docker builds (gcc-13 failed). The Jetson Orin Nano also had some issues (gcc-13, and the gpu builds failed. Are there any alternative builds for gem5 along the lines of bootcamp 2022? Here is the error message from gcc-13 on a x86 system: Building gcc-13 [+] Building 1.7s (6/9) docker:default => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 2.63kB 0.0s => [internal] load metadata for docker.io/library/ubuntu:22.04 0.2s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [1/6] FROM docker.io/library/ubuntu:22.04@sha256:340d9b015b194dc6e2a 0.0s => CACHED [2/6] RUN apt -y update && apt -y install software-proper 0.0s => ERROR [3/6] RUN update-alternatives --install /usr/bin/g++ g++ / 1.2s ------ > [3/6] RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++- 100: 0.976 update-alternatives: error: alternative path /usr/bin/g++- doesn't exist ------ Dockerfile:46 -------------------- 45 | 46 | >>> RUN update-alternatives --install \ 47 | >>> /usr/bin/g++ g++ /usr/bin/g++- 100 48 | RUN update-alternatives --install \ -------------------- ERROR: failed to solve: process "/bin/sh -c update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++- 100" did not complete successfully: exit code: 2 ERROR: Service 'gcc-13' failed to build : Build failed Nick
JL
Jason Lowe-Power
Fri, Aug 9, 2024 6:23 PM

Hi Nick,

I don't know why this is failing. Maybe you ran out of disk space?

You can use a prebuilt version of the devcontainer from
ghcr.io/gem5/devcontainer:bootcamp-2024. See
https://github.com/orgs/gem5/packages/container/package/devcontainer

Cheers,
Jason

On Thu, Aug 8, 2024 at 3:50 PM Beser, Nicholas D. via gem5-users <
gem5-users@gem5.org> wrote:

I have been reviewing the bootcamp 2024 data set and trying to build a
version for both the X86 and Arm64 (Jetson Orin Nano). The older bootcamp
2022 had a set of docker commands that built the entire system. I had been
using that docker environment interactively. I noticed that the bootcamp
2024 had a warning not to do interactive operation. I could see that the
examples run the builds via docker, storing the results on the computer
system. While I don’t have  a problem with that, the setup seems to require
the Workspace directory from github, and not allow other disk
organizations. I also ran into some problems with some of the docker builds
(gcc-13 failed). The Jetson Orin Nano also had some issues (gcc-13, and the
gpu builds failed.

Are there any alternative builds for gem5 along the lines of bootcamp 2022?

Here is the error message from gcc-13 on a x86 system:

Building gcc-13

[+] Building 1.7s (6/9)
docker:default

=> [internal] load build definition from Dockerfile
0.0s

=> => transferring dockerfile: 2.63kB
0.0s

=> [internal] load metadata for docker.io/library/ubuntu:22.04
0.2s

=> [internal] load .dockerignore
0.0s

=> => transferring context: 2B
0.0s

=> [1/6] FROM docker.io/library/ubuntu:22.04@sha256:340d9b015b194dc6e2a
0.0s

=> CACHED [2/6] RUN apt -y update &&    apt -y install software-proper
0.0s

=> ERROR [3/6] RUN update-alternatives --install    /usr/bin/g++ g++ /
1.2s


[3/6] RUN update-alternatives --install    /usr/bin/g++ g++

/usr/bin/g++- 100:

0.976 update-alternatives: error: alternative path /usr/bin/g++- doesn't
exist


Dockerfile:46


45 |

46 | >>> RUN update-alternatives --install \

47 | >>>    /usr/bin/g++ g++ /usr/bin/g++- 100

48 |    RUN update-alternatives --install \


ERROR: failed to solve: process "/bin/sh -c update-alternatives
--install    /usr/bin/g++ g++ /usr/bin/g++- 100" did not complete
successfully: exit code: 2

ERROR: Service 'gcc-13' failed to build : Build failed

Nick


gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-leave@gem5.org

Hi Nick, I don't know why this is failing. Maybe you ran out of disk space? You can use a prebuilt version of the devcontainer from ghcr.io/gem5/devcontainer:bootcamp-2024. See https://github.com/orgs/gem5/packages/container/package/devcontainer Cheers, Jason On Thu, Aug 8, 2024 at 3:50 PM Beser, Nicholas D. via gem5-users < gem5-users@gem5.org> wrote: > I have been reviewing the bootcamp 2024 data set and trying to build a > version for both the X86 and Arm64 (Jetson Orin Nano). The older bootcamp > 2022 had a set of docker commands that built the entire system. I had been > using that docker environment interactively. I noticed that the bootcamp > 2024 had a warning not to do interactive operation. I could see that the > examples run the builds via docker, storing the results on the computer > system. While I don’t have a problem with that, the setup seems to require > the Workspace directory from github, and not allow other disk > organizations. I also ran into some problems with some of the docker builds > (gcc-13 failed). The Jetson Orin Nano also had some issues (gcc-13, and the > gpu builds failed. > > > > Are there any alternative builds for gem5 along the lines of bootcamp 2022? > > > > Here is the error message from gcc-13 on a x86 system: > > Building gcc-13 > > [+] Building 1.7s (6/9) > docker:default > > => [internal] load build definition from Dockerfile > 0.0s > > => => transferring dockerfile: 2.63kB > 0.0s > > => [internal] load metadata for docker.io/library/ubuntu:22.04 > 0.2s > > => [internal] load .dockerignore > 0.0s > > => => transferring context: 2B > 0.0s > > => [1/6] FROM docker.io/library/ubuntu:22.04@sha256:340d9b015b194dc6e2a > 0.0s > > => CACHED [2/6] RUN apt -y update && apt -y install software-proper > 0.0s > > => ERROR [3/6] RUN update-alternatives --install /usr/bin/g++ g++ / > 1.2s > > ------ > > > > [3/6] RUN update-alternatives --install /usr/bin/g++ g++ > /usr/bin/g++- 100: > > 0.976 update-alternatives: error: alternative path /usr/bin/g++- doesn't > exist > > ------ > > Dockerfile:46 > > -------------------- > > 45 | > > 46 | >>> RUN update-alternatives --install \ > > 47 | >>> /usr/bin/g++ g++ /usr/bin/g++- 100 > > 48 | RUN update-alternatives --install \ > > -------------------- > > ERROR: failed to solve: process "/bin/sh -c update-alternatives > --install /usr/bin/g++ g++ /usr/bin/g++- 100" did not complete > successfully: exit code: 2 > > ERROR: Service 'gcc-13' failed to build : Build failed > > > > Nick > > > _______________________________________________ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-leave@gem5.org >
BN
Beser, Nicholas D.
Fri, Aug 9, 2024 6:27 PM

Jason,

I don’t think I ran out of disk space. I also need to build this for the Jetson Orin Nano (arm64 system), unless you have a prebuilt arm image that I could run?

I will take a look at the links.

Thank-you,

Nick

From: Jason Lowe-Power jason@lowepower.com
Sent: Friday, August 9, 2024 2:23 PM
To: The gem5 Users mailing list gem5-users@gem5.org
Cc: Beser, Nicholas D. Nick.Beser@jhuapl.edu
Subject: [EXT] Re: [gem5-users] Building Bootcamp 2024

APL external email warning: Verify sender jason@lowepower.commailto:jason@lowepower.com before clicking links or attachments

Hi Nick,

I don't know why this is failing. Maybe you ran out of disk space?

You can use a prebuilt version of the devcontainer from ghcr.io/gem5/devcontainer:bootcamp-2024http://ghcr.io/gem5/devcontainer:bootcamp-2024. See https://github.com/orgs/gem5/packages/container/package/devcontainer

Cheers,
Jason

On Thu, Aug 8, 2024 at 3:50 PM Beser, Nicholas D. via gem5-users <gem5-users@gem5.orgmailto:gem5-users@gem5.org> wrote:
I have been reviewing the bootcamp 2024 data set and trying to build a version for both the X86 and Arm64 (Jetson Orin Nano). The older bootcamp 2022 had a set of docker commands that built the entire system. I had been using that docker environment interactively. I noticed that the bootcamp 2024 had a warning not to do interactive operation. I could see that the examples run the builds via docker, storing the results on the computer system. While I don’t have  a problem with that, the setup seems to require the Workspace directory from github, and not allow other disk organizations. I also ran into some problems with some of the docker builds (gcc-13 failed). The Jetson Orin Nano also had some issues (gcc-13, and the gpu builds failed.

Are there any alternative builds for gem5 along the lines of bootcamp 2022?

Here is the error message from gcc-13 on a x86 system:
Building gcc-13
[+] Building 1.7s (6/9)                                        docker:default
=> [internal] load build definition from Dockerfile                      0.0s
=> => transferring dockerfile: 2.63kB                                    0.0s
=> [internal] load metadata for docker.io/library/ubuntu:22.04http://docker.io/library/ubuntu:22.04          0.2s
=> [internal] load .dockerignore                                        0.0s
=> => transferring context: 2B                                          0.0s
=> [1/6] FROM docker.io/library/ubuntu:22.04@sha256:340d9b015b194dc6e2ahttp://docker.io/library/ubuntu:22.04@sha256:340d9b015b194dc6e2a  0.0s
=> CACHED [2/6] RUN apt -y update &&    apt -y install software-proper  0.0s
=> ERROR [3/6] RUN update-alternatives --install    /usr/bin/g++ g++ /  1.2s

[3/6] RUN update-alternatives --install    /usr/bin/g++ g++ /usr/bin/g++- 100:

0.976 update-alternatives: error: alternative path /usr/bin/g++- doesn't exist

Dockerfile:46

45 |
46 | >>> RUN update-alternatives --install
47 | >>>    /usr/bin/g++ g++ /usr/bin/g++- 100
48 |    RUN update-alternatives --install \

ERROR: failed to solve: process "/bin/sh -c update-alternatives --install    /usr/bin/g++ g++ /usr/bin/g++- 100" did not complete successfully: exit code: 2
ERROR: Service 'gcc-13' failed to build : Build failed

Nick


gem5-users mailing list -- gem5-users@gem5.orgmailto:gem5-users@gem5.org
To unsubscribe send an email to gem5-users-leave@gem5.orgmailto:gem5-users-leave@gem5.org

Jason, I don’t think I ran out of disk space. I also need to build this for the Jetson Orin Nano (arm64 system), unless you have a prebuilt arm image that I could run? I will take a look at the links. Thank-you, Nick From: Jason Lowe-Power <jason@lowepower.com> Sent: Friday, August 9, 2024 2:23 PM To: The gem5 Users mailing list <gem5-users@gem5.org> Cc: Beser, Nicholas D. <Nick.Beser@jhuapl.edu> Subject: [EXT] Re: [gem5-users] Building Bootcamp 2024 APL external email warning: Verify sender jason@lowepower.com<mailto:jason@lowepower.com> before clicking links or attachments Hi Nick, I don't know why this is failing. Maybe you ran out of disk space? You can use a prebuilt version of the devcontainer from ghcr.io/gem5/devcontainer:bootcamp-2024<http://ghcr.io/gem5/devcontainer:bootcamp-2024>. See https://github.com/orgs/gem5/packages/container/package/devcontainer Cheers, Jason On Thu, Aug 8, 2024 at 3:50 PM Beser, Nicholas D. via gem5-users <gem5-users@gem5.org<mailto:gem5-users@gem5.org>> wrote: I have been reviewing the bootcamp 2024 data set and trying to build a version for both the X86 and Arm64 (Jetson Orin Nano). The older bootcamp 2022 had a set of docker commands that built the entire system. I had been using that docker environment interactively. I noticed that the bootcamp 2024 had a warning not to do interactive operation. I could see that the examples run the builds via docker, storing the results on the computer system. While I don’t have a problem with that, the setup seems to require the Workspace directory from github, and not allow other disk organizations. I also ran into some problems with some of the docker builds (gcc-13 failed). The Jetson Orin Nano also had some issues (gcc-13, and the gpu builds failed. Are there any alternative builds for gem5 along the lines of bootcamp 2022? Here is the error message from gcc-13 on a x86 system: Building gcc-13 [+] Building 1.7s (6/9) docker:default => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 2.63kB 0.0s => [internal] load metadata for docker.io/library/ubuntu:22.04<http://docker.io/library/ubuntu:22.04> 0.2s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [1/6] FROM docker.io/library/ubuntu:22.04@sha256:340d9b015b194dc6e2a<http://docker.io/library/ubuntu:22.04@sha256:340d9b015b194dc6e2a> 0.0s => CACHED [2/6] RUN apt -y update && apt -y install software-proper 0.0s => ERROR [3/6] RUN update-alternatives --install /usr/bin/g++ g++ / 1.2s ------ > [3/6] RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++- 100: 0.976 update-alternatives: error: alternative path /usr/bin/g++- doesn't exist ------ Dockerfile:46 -------------------- 45 | 46 | >>> RUN update-alternatives --install \ 47 | >>> /usr/bin/g++ g++ /usr/bin/g++- 100 48 | RUN update-alternatives --install \ -------------------- ERROR: failed to solve: process "/bin/sh -c update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++- 100" did not complete successfully: exit code: 2 ERROR: Service 'gcc-13' failed to build : Build failed Nick _______________________________________________ gem5-users mailing list -- gem5-users@gem5.org<mailto:gem5-users@gem5.org> To unsubscribe send an email to gem5-users-leave@gem5.org<mailto:gem5-users-leave@gem5.org>
JL
Jason Lowe-Power
Fri, Aug 9, 2024 6:29 PM

Oh, we don't have an Arm image for this container (right now). Apologies
for the confusion.

Maybe that version of gcc isn't available for Arm? Any GCC > 9 should work,
IIRC.

Cheers,
Jason

On Fri, Aug 9, 2024 at 11:27 AM Beser, Nicholas D. Nick.Beser@jhuapl.edu
wrote:

Jason,

I don’t think I ran out of disk space. I also need to build this for the
Jetson Orin Nano (arm64 system), unless you have a prebuilt arm image that
I could run?

I will take a look at the links.

Thank-you,

Nick

From: Jason Lowe-Power jason@lowepower.com
Sent: Friday, August 9, 2024 2:23 PM
To: The gem5 Users mailing list gem5-users@gem5.org
Cc: Beser, Nicholas D. Nick.Beser@jhuapl.edu
Subject: [EXT] Re: [gem5-users] Building Bootcamp 2024

*APL external email warning: *Verify sender jason@lowepower.com before
clicking links or attachments

Hi Nick,

I don't know why this is failing. Maybe you ran out of disk space?

You can use a prebuilt version of the devcontainer from
ghcr.io/gem5/devcontainer:bootcamp-2024. See
https://github.com/orgs/gem5/packages/container/package/devcontainer

Cheers,

Jason

On Thu, Aug 8, 2024 at 3:50 PM Beser, Nicholas D. via gem5-users <
gem5-users@gem5.org> wrote:

I have been reviewing the bootcamp 2024 data set and trying to build a
version for both the X86 and Arm64 (Jetson Orin Nano). The older bootcamp
2022 had a set of docker commands that built the entire system. I had been
using that docker environment interactively. I noticed that the bootcamp
2024 had a warning not to do interactive operation. I could see that the
examples run the builds via docker, storing the results on the computer
system. While I don’t have  a problem with that, the setup seems to require
the Workspace directory from github, and not allow other disk
organizations. I also ran into some problems with some of the docker builds
(gcc-13 failed). The Jetson Orin Nano also had some issues (gcc-13, and the
gpu builds failed.

Are there any alternative builds for gem5 along the lines of bootcamp 2022?

Here is the error message from gcc-13 on a x86 system:

Building gcc-13

[+] Building 1.7s (6/9)
docker:default

=> [internal] load build definition from Dockerfile
0.0s

=> => transferring dockerfile: 2.63kB
0.0s

=> [internal] load metadata for docker.io/library/ubuntu:22.04
0.2s

=> [internal] load .dockerignore
0.0s

=> => transferring context: 2B
0.0s

=> [1/6] FROM docker.io/library/ubuntu:22.04@sha256:340d9b015b194dc6e2a
0.0s

=> CACHED [2/6] RUN apt -y update &&    apt -y install software-proper
0.0s

=> ERROR [3/6] RUN update-alternatives --install    /usr/bin/g++ g++ /
1.2s


[3/6] RUN update-alternatives --install    /usr/bin/g++ g++

/usr/bin/g++- 100:

0.976 update-alternatives: error: alternative path /usr/bin/g++- doesn't
exist


Dockerfile:46


45 |

46 | >>> RUN update-alternatives --install \

47 | >>>    /usr/bin/g++ g++ /usr/bin/g++- 100

48 |    RUN update-alternatives --install \


ERROR: failed to solve: process "/bin/sh -c update-alternatives
--install    /usr/bin/g++ g++ /usr/bin/g++- 100" did not complete
successfully: exit code: 2

ERROR: Service 'gcc-13' failed to build : Build failed

Nick


gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-leave@gem5.org

Oh, we don't have an Arm image for this container (right now). Apologies for the confusion. Maybe that version of gcc isn't available for Arm? Any GCC > 9 should work, IIRC. Cheers, Jason On Fri, Aug 9, 2024 at 11:27 AM Beser, Nicholas D. <Nick.Beser@jhuapl.edu> wrote: > Jason, > > > > I don’t think I ran out of disk space. I also need to build this for the > Jetson Orin Nano (arm64 system), unless you have a prebuilt arm image that > I could run? > > > > I will take a look at the links. > > > > Thank-you, > > > > Nick > > > > *From:* Jason Lowe-Power <jason@lowepower.com> > *Sent:* Friday, August 9, 2024 2:23 PM > *To:* The gem5 Users mailing list <gem5-users@gem5.org> > *Cc:* Beser, Nicholas D. <Nick.Beser@jhuapl.edu> > *Subject:* [EXT] Re: [gem5-users] Building Bootcamp 2024 > > > > *APL external email warning: *Verify sender jason@lowepower.com before > clicking links or attachments > > > > Hi Nick, > > > > I don't know why this is failing. Maybe you ran out of disk space? > > > > You can use a prebuilt version of the devcontainer from > ghcr.io/gem5/devcontainer:bootcamp-2024. See > https://github.com/orgs/gem5/packages/container/package/devcontainer > > > > Cheers, > > Jason > > > > On Thu, Aug 8, 2024 at 3:50 PM Beser, Nicholas D. via gem5-users < > gem5-users@gem5.org> wrote: > > I have been reviewing the bootcamp 2024 data set and trying to build a > version for both the X86 and Arm64 (Jetson Orin Nano). The older bootcamp > 2022 had a set of docker commands that built the entire system. I had been > using that docker environment interactively. I noticed that the bootcamp > 2024 had a warning not to do interactive operation. I could see that the > examples run the builds via docker, storing the results on the computer > system. While I don’t have a problem with that, the setup seems to require > the Workspace directory from github, and not allow other disk > organizations. I also ran into some problems with some of the docker builds > (gcc-13 failed). The Jetson Orin Nano also had some issues (gcc-13, and the > gpu builds failed. > > > > Are there any alternative builds for gem5 along the lines of bootcamp 2022? > > > > Here is the error message from gcc-13 on a x86 system: > > Building gcc-13 > > [+] Building 1.7s (6/9) > docker:default > > => [internal] load build definition from Dockerfile > 0.0s > > => => transferring dockerfile: 2.63kB > 0.0s > > => [internal] load metadata for docker.io/library/ubuntu:22.04 > 0.2s > > => [internal] load .dockerignore > 0.0s > > => => transferring context: 2B > 0.0s > > => [1/6] FROM docker.io/library/ubuntu:22.04@sha256:340d9b015b194dc6e2a > 0.0s > > => CACHED [2/6] RUN apt -y update && apt -y install software-proper > 0.0s > > => ERROR [3/6] RUN update-alternatives --install /usr/bin/g++ g++ / > 1.2s > > ------ > > > > [3/6] RUN update-alternatives --install /usr/bin/g++ g++ > /usr/bin/g++- 100: > > 0.976 update-alternatives: error: alternative path /usr/bin/g++- doesn't > exist > > ------ > > Dockerfile:46 > > -------------------- > > 45 | > > 46 | >>> RUN update-alternatives --install \ > > 47 | >>> /usr/bin/g++ g++ /usr/bin/g++- 100 > > 48 | RUN update-alternatives --install \ > > -------------------- > > ERROR: failed to solve: process "/bin/sh -c update-alternatives > --install /usr/bin/g++ g++ /usr/bin/g++- 100" did not complete > successfully: exit code: 2 > > ERROR: Service 'gcc-13' failed to build : Build failed > > > > Nick > > > > _______________________________________________ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-leave@gem5.org > >
BN
Beser, Nicholas D.
Fri, Aug 9, 2024 6:34 PM

I had the gcc failure on a x86 Ubuntu 22.04 system. It also failed the same way on the jetson. The jetson had failures with the gpu builds, (both of them). The gpu’s worked on x86. I will have my students use both x86 and arm64 in the class, so for that module they will work with the x86.

I noticed that I could build gem5 (with no docker) on the jetson. I had to increase the swap space, due to memory problems on both systems.

Nick

From: Jason Lowe-Power jason@lowepower.com
Sent: Friday, August 9, 2024 2:30 PM
To: Beser, Nicholas D. Nick.Beser@jhuapl.edu
Cc: The gem5 Users mailing list gem5-users@gem5.org
Subject: Re: [EXT] Re: [gem5-users] Building Bootcamp 2024

APL external email warning: Verify sender jason@lowepower.commailto:jason@lowepower.com before clicking links or attachments

Oh, we don't have an Arm image for this container (right now). Apologies for the confusion.

Maybe that version of gcc isn't available for Arm? Any GCC > 9 should work, IIRC.

Cheers,
Jason

On Fri, Aug 9, 2024 at 11:27 AM Beser, Nicholas D. <Nick.Beser@jhuapl.edumailto:Nick.Beser@jhuapl.edu> wrote:
Jason,

I don’t think I ran out of disk space. I also need to build this for the Jetson Orin Nano (arm64 system), unless you have a prebuilt arm image that I could run?

I will take a look at the links.

Thank-you,

Nick

From: Jason Lowe-Power <jason@lowepower.commailto:jason@lowepower.com>
Sent: Friday, August 9, 2024 2:23 PM
To: The gem5 Users mailing list <gem5-users@gem5.orgmailto:gem5-users@gem5.org>
Cc: Beser, Nicholas D. <Nick.Beser@jhuapl.edumailto:Nick.Beser@jhuapl.edu>
Subject: [EXT] Re: [gem5-users] Building Bootcamp 2024

APL external email warning: Verify sender jason@lowepower.commailto:jason@lowepower.com before clicking links or attachments

Hi Nick,

I don't know why this is failing. Maybe you ran out of disk space?

You can use a prebuilt version of the devcontainer from ghcr.io/gem5/devcontainer:bootcamp-2024http://ghcr.io/gem5/devcontainer:bootcamp-2024. See https://github.com/orgs/gem5/packages/container/package/devcontainer

Cheers,
Jason

On Thu, Aug 8, 2024 at 3:50 PM Beser, Nicholas D. via gem5-users <gem5-users@gem5.orgmailto:gem5-users@gem5.org> wrote:
I have been reviewing the bootcamp 2024 data set and trying to build a version for both the X86 and Arm64 (Jetson Orin Nano). The older bootcamp 2022 had a set of docker commands that built the entire system. I had been using that docker environment interactively. I noticed that the bootcamp 2024 had a warning not to do interactive operation. I could see that the examples run the builds via docker, storing the results on the computer system. While I don’t have  a problem with that, the setup seems to require the Workspace directory from github, and not allow other disk organizations. I also ran into some problems with some of the docker builds (gcc-13 failed). The Jetson Orin Nano also had some issues (gcc-13, and the gpu builds failed.

Are there any alternative builds for gem5 along the lines of bootcamp 2022?

Here is the error message from gcc-13 on a x86 system:
Building gcc-13
[+] Building 1.7s (6/9)                                        docker:default
=> [internal] load build definition from Dockerfile                      0.0s
=> => transferring dockerfile: 2.63kB                                    0.0s
=> [internal] load metadata for docker.io/library/ubuntu:22.04http://docker.io/library/ubuntu:22.04          0.2s
=> [internal] load .dockerignore                                        0.0s
=> => transferring context: 2B                                          0.0s
=> [1/6] FROM docker.io/library/ubuntu:22.04@sha256:340d9b015b194dc6e2ahttp://docker.io/library/ubuntu:22.04@sha256:340d9b015b194dc6e2a  0.0s
=> CACHED [2/6] RUN apt -y update &&    apt -y install software-proper  0.0s
=> ERROR [3/6] RUN update-alternatives --install    /usr/bin/g++ g++ /  1.2s

[3/6] RUN update-alternatives --install    /usr/bin/g++ g++ /usr/bin/g++- 100:

0.976 update-alternatives: error: alternative path /usr/bin/g++- doesn't exist

Dockerfile:46

45 |
46 | >>> RUN update-alternatives --install
47 | >>>    /usr/bin/g++ g++ /usr/bin/g++- 100
48 |    RUN update-alternatives --install \

ERROR: failed to solve: process "/bin/sh -c update-alternatives --install    /usr/bin/g++ g++ /usr/bin/g++- 100" did not complete successfully: exit code: 2
ERROR: Service 'gcc-13' failed to build : Build failed

Nick


gem5-users mailing list -- gem5-users@gem5.orgmailto:gem5-users@gem5.org
To unsubscribe send an email to gem5-users-leave@gem5.orgmailto:gem5-users-leave@gem5.org

I had the gcc failure on a x86 Ubuntu 22.04 system. It also failed the same way on the jetson. The jetson had failures with the gpu builds, (both of them). The gpu’s worked on x86. I will have my students use both x86 and arm64 in the class, so for that module they will work with the x86. I noticed that I could build gem5 (with no docker) on the jetson. I had to increase the swap space, due to memory problems on both systems. Nick From: Jason Lowe-Power <jason@lowepower.com> Sent: Friday, August 9, 2024 2:30 PM To: Beser, Nicholas D. <Nick.Beser@jhuapl.edu> Cc: The gem5 Users mailing list <gem5-users@gem5.org> Subject: Re: [EXT] Re: [gem5-users] Building Bootcamp 2024 APL external email warning: Verify sender jason@lowepower.com<mailto:jason@lowepower.com> before clicking links or attachments Oh, we don't have an Arm image for this container (right now). Apologies for the confusion. Maybe that version of gcc isn't available for Arm? Any GCC > 9 should work, IIRC. Cheers, Jason On Fri, Aug 9, 2024 at 11:27 AM Beser, Nicholas D. <Nick.Beser@jhuapl.edu<mailto:Nick.Beser@jhuapl.edu>> wrote: Jason, I don’t think I ran out of disk space. I also need to build this for the Jetson Orin Nano (arm64 system), unless you have a prebuilt arm image that I could run? I will take a look at the links. Thank-you, Nick From: Jason Lowe-Power <jason@lowepower.com<mailto:jason@lowepower.com>> Sent: Friday, August 9, 2024 2:23 PM To: The gem5 Users mailing list <gem5-users@gem5.org<mailto:gem5-users@gem5.org>> Cc: Beser, Nicholas D. <Nick.Beser@jhuapl.edu<mailto:Nick.Beser@jhuapl.edu>> Subject: [EXT] Re: [gem5-users] Building Bootcamp 2024 APL external email warning: Verify sender jason@lowepower.com<mailto:jason@lowepower.com> before clicking links or attachments Hi Nick, I don't know why this is failing. Maybe you ran out of disk space? You can use a prebuilt version of the devcontainer from ghcr.io/gem5/devcontainer:bootcamp-2024<http://ghcr.io/gem5/devcontainer:bootcamp-2024>. See https://github.com/orgs/gem5/packages/container/package/devcontainer Cheers, Jason On Thu, Aug 8, 2024 at 3:50 PM Beser, Nicholas D. via gem5-users <gem5-users@gem5.org<mailto:gem5-users@gem5.org>> wrote: I have been reviewing the bootcamp 2024 data set and trying to build a version for both the X86 and Arm64 (Jetson Orin Nano). The older bootcamp 2022 had a set of docker commands that built the entire system. I had been using that docker environment interactively. I noticed that the bootcamp 2024 had a warning not to do interactive operation. I could see that the examples run the builds via docker, storing the results on the computer system. While I don’t have a problem with that, the setup seems to require the Workspace directory from github, and not allow other disk organizations. I also ran into some problems with some of the docker builds (gcc-13 failed). The Jetson Orin Nano also had some issues (gcc-13, and the gpu builds failed. Are there any alternative builds for gem5 along the lines of bootcamp 2022? Here is the error message from gcc-13 on a x86 system: Building gcc-13 [+] Building 1.7s (6/9) docker:default => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 2.63kB 0.0s => [internal] load metadata for docker.io/library/ubuntu:22.04<http://docker.io/library/ubuntu:22.04> 0.2s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [1/6] FROM docker.io/library/ubuntu:22.04@sha256:340d9b015b194dc6e2a<http://docker.io/library/ubuntu:22.04@sha256:340d9b015b194dc6e2a> 0.0s => CACHED [2/6] RUN apt -y update && apt -y install software-proper 0.0s => ERROR [3/6] RUN update-alternatives --install /usr/bin/g++ g++ / 1.2s ------ > [3/6] RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++- 100: 0.976 update-alternatives: error: alternative path /usr/bin/g++- doesn't exist ------ Dockerfile:46 -------------------- 45 | 46 | >>> RUN update-alternatives --install \ 47 | >>> /usr/bin/g++ g++ /usr/bin/g++- 100 48 | RUN update-alternatives --install \ -------------------- ERROR: failed to solve: process "/bin/sh -c update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++- 100" did not complete successfully: exit code: 2 ERROR: Service 'gcc-13' failed to build : Build failed Nick _______________________________________________ gem5-users mailing list -- gem5-users@gem5.org<mailto:gem5-users@gem5.org> To unsubscribe send an email to gem5-users-leave@gem5.org<mailto:gem5-users-leave@gem5.org>