Hi, I am trying to compile OpenBMC on AMD the Genoa sp5 server. However, it keeps showing me some variables expanding failures. I am not sure they are python version portability issues or I miss something. (I am using Python 3.10.12.)
Unexpected behavior you saw
I tried to compile OpenBMC, but faced an error:
ERROR: ExpansionError during parsing /home/amd/OpenBMC/meta/recipes-kernel/linux/linux-yocto-tiny_5.4.bb | ETA: 0:00:04
Traceback (most recent call last):
bb.data_smart.ExpansionError: Failure expanding variable KERNEL_VERSION, expression was ${@get_kernelversion_headers('/home/amd/OpenBMC/build/sp5/tmp/work/sp5-openbmc-linux-gnueabi/linux-yocto-tiny/5.4.107+git${SRCPV}-r0/linux-sp5-tiny-build')} which triggered exception SyntaxError: unterminated string literal (detected at line 1) (Var <KERNEL_VERSION>, line 1)
From this error, I found that 'SRCPV' was not defined, which caused the expansion failure.
After I uncommented SRCPV = "${@bb.fetch2.get_srcrev(d)}" in /OpenBMC/meta/conf/bitbake.conf to try to resolve the issue, I got another error:
ERROR: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher failure: SRCREV was used yet no valid SCM was found in SRC_URI
Expected behavior
OpenBMC should compile successfully on following the instructions in the README file.
To Reproduce
Steps to reproduce the behavior:
In Ubuntu 22.04.4 command line interface, mkdir OpenBMC.
Edit multiple .py files in /OpenBMC/poky/bitbake/lib/bb to change from collection import ... to from collection.abc import ...). This was done to solve trivial Python version issues, like the change of syntax with different versions.
bitbake obmc-phosphor-image
See first error
Uncomment SRCPV = "${@bb.fetch2.get_srcrev(d)}" in /OpenBMC/meta/conf/bitbake.conf
Hi, I am trying to compile OpenBMC on AMD the Genoa sp5 server. However, it keeps showing me some variables expanding failures. I am not sure they are python version portability issues or I miss something. (I am using Python 3.10.12.)
Unexpected behavior you saw I tried to compile OpenBMC, but faced an error:
From this error, I found that 'SRCPV' was not defined, which caused the expansion failure.
After I uncommented
SRCPV = "${@bb.fetch2.get_srcrev(d)}"
in/OpenBMC/meta/conf/bitbake.conf
to try to resolve the issue, I got another error:Expected behavior OpenBMC should compile successfully on following the instructions in the README file.
To Reproduce Steps to reproduce the behavior:
mkdir OpenBMC
.cd OpenBMC
git clone https://github.com/AMDESE/OpenBMC.git
. 4.. setup sp5
/OpenBMC/poky/bitbake/lib/bb
to changefrom collection import ...
tofrom collection.abc import ...
). This was done to solve trivial Python version issues, like the change of syntax with different versions.bitbake obmc-phosphor-image
SRCPV = "${@bb.fetch2.get_srcrev(d)}"
in /OpenBMC/meta/conf/bitbake.confScreenshots First error: Second error:
OpenBMC Information:
PRETTY_NAME="Ubuntu 22.04.4 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.4 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=jammy
Linux 5.15.0-97-generic #107-Ubuntu SMP Wed Feb 7 13:26:48 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux