openbmc / openbmc-build-scripts

Apache License 2.0
19 stars 50 forks source link

build-qemu-rebot-docker.sh needs to add somethings #34

Closed fangkaiyu2023 closed 1 year ago

fangkaiyu2023 commented 1 year ago
libsdl2-dev \
libsdl2-2.0-0 \
numactl
williamspatrick commented 1 year ago

Patches welcome on Gerrit?

it would be helpful if you could give some rationale.

fangkaiyu2023 commented 1 year ago

An error occurred while running run_romulus_in_qemu in jenkins

`+ grep -q OPENBMC-READY

After deleting "--rm" in the startup parameters of the first docker in the script "run-qemu-robot-test.sh", the above error is no longer reported. image But two new errors appeared when starting qemu:

1../qemu-system-arm: error while loading shared libraries: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory 2../qemu-system-arm: error while loading shared libraries: libnuma.so.1: cannot open shared object file: No such file or directory

so i add somethings in the scripts "build-qemu-rebot-docker.sh": libsdl2-dev \ libsdl2-2.0-0 \ numactl image Finally, after investigation, it is found that it has nothing to do with the --rm startup parameter, but it has something to do with the docker image of openbmc/ubuntu-robot-qemu, which is used to start a container that can run qemu. In daily builds, docker does not delete the openbmc/ubuntu-robot-qemu image, but starts a container from this image each time. Therefore, the ultimate root cause of this problem is that the openbmc/ubuntu-robot-qemu image that needs to be used lacks some libs during construction.

BTY,I am using ubuntu LTS 22.04.2 and the docker verison is Docker version 23.0.4, build f480fb1. @williamspatrick

fangkaiyu2023 commented 1 year ago

I described the specific information of the problem in detail under this issue, I hope I expressed it clearly enough. https://github.com/openbmc/openbmc-build-scripts/issues/34

Patrick Williams @.***> 于2023年5月23日周二 17:52写道:

Closed #34 https://github.com/openbmc/openbmc-build-scripts/issues/34 as completed.

— Reply to this email directly, view it on GitHub https://github.com/openbmc/openbmc-build-scripts/issues/34#event-9313847126, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7CLL4YKGUYLWMDJZ3NVD6DXHSCGDANCNFSM6AAAAAAYLM33NE . You are receiving this because you authored the thread.Message ID: @.***>