Re: ACRN hypervisor build fails with internal error

Liu, Fuzhong


Thanks for try ACRN v3.0!

Ubuntu 20.04 is  verified for v3.0.

Do you build ACRN with ubuntu 20.04?






From: acrn-users@... <acrn-users@...> On Behalf Of jan.hoffmann2 via
Sent: Friday, July 8, 2022 3:02 PM
To: acrn-users@...
Subject: [acrn-users] ACRN hypervisor build fails with internal error



recently I started with the getting started guide for version 3.0. 
When starting the first build of the hypervisor i get the following error:

acrn@acrn-virtual-machine:~/acrn-work/acrn-hypervisor$ make BOARD=~/acrn-work/MyConfiguration/X12DPi-N-T-6.board.xml  SCENARIO=~/acrn-work/MyConfiguration/scenario.xml

make[1]: Entering directory '/home/acrn/acrn-work/acrn-hypervisor/hypervisor'

Traceback (most recent call last):

  File "/home/acrn/acrn-work/acrn-hypervisor/misc/config_tools/static_allocators/", line 41, in <module>


  File "/home/acrn/acrn-work/acrn-hypervisor/misc/config_tools/static_allocators/", line 31, in main

    module.fn(board_etree, scenario_etree, allocation_etree)

  File "/home/acrn/acrn-work/acrn-hypervisor/misc/config_tools/static_allocators/", line 82, in fn

    create_mask_list_node(board_etree, scenario_etree, allocation_etree, policy_list)

  File "/home/acrn/acrn-work/acrn-hypervisor/misc/config_tools/static_allocators/", line 53, in create_mask_list_node

    length = common.get_node(f"//cache[@level='3']/capability/capacity_mask_length/text()", board_etree)

  File "/home/acrn/acrn-work/acrn-hypervisor/misc/config_tools/static_allocators/../library/", line 200, in get_node

    assert len(result) <= 1, f"Internal error: multiple element nodes are found for {xpath}"

AssertionError: Internal error: multiple element nodes are found for //cache[@level='3']/capability/capacity_mask_length/text()

make[1]: *** No rule to make target '/home/acrn/acrn-work/acrn-hypervisor/build/hypervisor/configs/allocation.xml', needed by '/home/acrn/acrn-work/acrn-hypervisor/build/hypervisor/configs/unified.xml'.  Stop.

make[1]: Leaving directory '/home/acrn/acrn-work/acrn-hypervisor/hypervisor'

make: *** [Makefile:137: hvdefconfig] Error 2

Is there a bug in the make file or am I doing something wrong here?

Please find the scenario.xml and the Board file attached.

Join { to automatically receive all group messages.