Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

install_rom_aarch64.sh failing #5817

Open
ad-zsolt-imre opened this issue Apr 14, 2024 · 1 comment
Open

install_rom_aarch64.sh failing #5817

ad-zsolt-imre opened this issue Apr 14, 2024 · 1 comment
Labels
bug Incorrect behaviour needs-review Needs to be assessed by the team.

Comments

@ad-zsolt-imre
Copy link

Description of problem

The install_rom_aarch64.sh is failing for multiple reasons:

  • The script tries to install python. apt will fail and, therefore, the script will terminate as python is no longer available. It seems python can be removed as python3 is getting installed anyway.
  • acpiexec compilation failure:
make[1]: Entering directory '/tmp/tmp.xKw73XBZTB/acpica/generate/unix/acpiexec'
obj/acpiexec ../../../source/common/acgetline.c
...
obj/acpiexec ../../../source/components/dispatcher/dsinit.c
obj/acpiexec ../../../source/components/utilities/utdebug.c
../../../source/components/utilities/utdebug.c: In function ‘AcpiUtInitStackPtrTrace’:
../../../source/components/utilities/utdebug.c:188:31: error: storing the address of local variable ‘CurrentSp’ in ‘AcpiGbl_EntryStackPointer’ [-Werror=dangling-pointer=]
  188 |     AcpiGbl_EntryStackPointer = &CurrentSp;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
../../../source/components/utilities/utdebug.c:185:29: note: ‘CurrentSp’ declared here
  185 |     ACPI_SIZE               CurrentSp;
      |                             ^~~~~~~~~
In file included from ../../../source/include/acpi.h:173,
                 from ../../../source/components/utilities/utdebug.c:154:
../../../source/include/acglobal.h:334:41: note: ‘AcpiGbl_EntryStackPointer’ declared here
  334 | ACPI_GLOBAL (ACPI_SIZE *,               AcpiGbl_EntryStackPointer);
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~
../../../source/include/acpixf.h:188:17: note: in definition of macro ‘ACPI_GLOBAL’
  188 |     extern type name
      |                 ^~~~
../../../source/components/utilities/utdebug.c: In function ‘AcpiUtTrackStackPtr’:
../../../source/components/utilities/utdebug.c:213:36: error: storing the address of local variable ‘CurrentSp’ in ‘AcpiGbl_LowestStackPointer’ [-Werror=dangling-pointer=]
  213 |         AcpiGbl_LowestStackPointer = &CurrentSp;
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
../../../source/components/utilities/utdebug.c:208:29: note: ‘CurrentSp’ declared here
  208 |     ACPI_SIZE               CurrentSp;
      |                             ^~~~~~~~~
../../../source/include/acglobal.h:335:41: note: ‘AcpiGbl_LowestStackPointer’ declared here
  335 | ACPI_GLOBAL (ACPI_SIZE *,               AcpiGbl_LowestStackPointer);
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
../../../source/include/acpixf.h:188:17: note: in definition of macro ‘ACPI_GLOBAL’
  188 |     extern type name
      |                 ^~~~
cc1: all warnings being treated as errors
make[1]: *** [../Makefile.rules:20: obj/utdebug.o] Error 1
make[1]: Leaving directory '/tmp/tmp.xKw73XBZTB/acpica/generate/unix/acpiexec'
make: *** [generate/unix/Makefile.common:7: acpiexec] Error 2
make: Leaving directory '/tmp/tmp.xKw73XBZTB/acpica'

Expected result

It produces the two UEFI ROM image files as promised.

Actual result

The process fails at multiple stages. (See description)

Environment

Linux node1 6.5.0-1014-raspi #17-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 21 11:24:03 UTC 2024 aarch64 aarch64 aarch64 

Ubuntu 23.10

gcc version 13.2.0 (Ubuntu 13.2.0-4ubuntu3) 
@ad-zsolt-imre ad-zsolt-imre added bug Incorrect behaviour needs-review Needs to be assessed by the team. labels Apr 14, 2024
@ad-zsolt-imre
Copy link
Author

Is the build still needed, btw? I changed the script to pull https://releases.linaro.org/components/kernel/uefi-linaro/16.02/release/qemu64/QEMU_EFI.fd and then it completed. Still, I ended up with the same error reported by k3s:

Error: failed to create containerd task: failed to create shim task: failed to query hotpluggable CPUs: QMP command failed: The feature 'query-hotpluggable-cpus' is not enabled: unknown

Then, after some digging I landed here: https://wiki.qemu.org/Features/CPUHotplug - the page says:

dedicated legacy interface: cpu-add QMP command (removed in QEMU v5.2)

Then, I checked the qemu version on my node and I found:

QEMU emulator version 7.2.0 (kata-static)

Is it possible that the problem is that the version of qemu shipped with the Kata no longer supports the cpu-add QMP command?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Incorrect behaviour needs-review Needs to be assessed by the team.
Projects
None yet
Development

No branches or pull requests

1 participant