I am trying to enable userspace for my project. I am getting this error on one of the last steps related to some debug info.
[533/576] Creating signature of application [534/576] Creating validation for zephyr.hex, storing to [535/576] Creating validation for zephyr.hex, storing to [537/576] Generating ../../zephyr/signed_by_mcuboot_and_b0_s0_image_update.bin sign the payload [538/576] Generating ../../zephyr/signed_by_mcuboot_and_b0_s0_image_signed.hex sign the payload [540/576] Generating ../../zephyr/signed_by_mcuboot_and_b0_s1_image_update.bin sign the payload [541/576] Generating ../../zephyr/signed_by_mcuboot_and_b0_s0_image_test_update.hex sign the payload [543/576] Generating ../../zephyr/signed_by_mcuboot_and_b0_s1_image_test_update.hex sign the payload [544/576] Generating ../../zephyr/signed_by_mcuboot_and_b0_s1_image_signed.hex sign the payload [546/576] Generating kobject_prebuilt_hash.gperf FAILED: zephyr/kobject_prebuilt_hash.gperf /home/alex/mesomat/gateway/p100_gateway/build/zephyr/kobject_prebuilt_hash.gperf cd /home/alex/mesomat/gateway/p100_gateway/build/zephyr && /home/alex/.venv/bin/python3 /home/alex/mesomat/p100_development/gateway/zephyr/scripts/build/gen_kobject_list.py --kernel /home/alex/mesomat/p100_development/gateway/p100_gateway/build/zephyr/zephyr_pre0.elf --gperf-output kobject_prebuilt_hash.gperf --include /home/alex/mesomat/p100_development/gateway/p100_gateway/build/zephyr/misc/generated/struct_tags.json Traceback (most recent call last): File "/home/alex/mesomat/gateway/zephyr/scripts/build/gen_kobject_list.py", line 1097, in <module> main() File "/home/alex/mesomat/gateway/zephyr/scripts/build/gen_kobject_list.py", line 1064, in main objs = find_kobjects(elf, syms) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/alex/mesomat/gateway/zephyr/scripts/build/gen_kobject_list.py", line 609, in find_kobjects debug_die( File "/home/alex/mesomat/gateway/zephyr/scripts/build/gen_kobject_list.py", line 164, in debug_die fileinfo = files[die.attributes["DW_AT_decl_file"].value - 1] ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ KeyError: 'DW_AT_decl_file' ninja: build stopped: subcommand failed.
I can compile fine with all the same configs without userspace enabled. I added a print statement above the line generating the error that print the `die.attributes` dict and this was the result:
attributes: OrderedDict([('DW_AT_specification', AttributeValue(name='DW_AT_specification', form='DW_FORM_ref4', value=14836, raw_value=14836, offset=235167, indirection_length=0))])