On Mon, 2023-08-21 at 12:49 +0000, David Daniel wrote:
> Hello everybody
> 
> Has anyone successfully built an SDK lately? I cannot build any SDK,
> neither for my image nor for core-image-minimal.
> 
> If I define my own image I get the error (I already wrote - nobody any
> idea?) that the dummy-sdk package is to be built for a different
> architecture:
> 
> 
> x86_64_nativesdk           3.1.2-r0    oe-repo  330 k
>  nativesdk-openssl-conf                 x86_64_nativesdk           3.1.2-r0   
>  oe-repo   12 k
>  target-sdk-provides-dummy              sdk_provides_dummy_target  1.0-r0     
>  oe-repo  9.0 k
> 
> THIS ERROR ONLY APPEARS IF I DEFINE MY OWN IMAGE (though the image can be 
> built and works).
> 
> I guess this is due to the following code in the sdk-dummy recipe:
> 
> python() {
>     # Put the package somewhere separate to ensure it's never used except
>     # when we want it
>     # (note that we have to do this in anonymous python here to avoid
>     # allarch.bbclass disabling itself)
>     d.setVar('PACKAGE_ARCH', '${DUMMYARCH}')
> }
> 
> But furthermore, I am completely unable to build the SDK with my
> machine - I took the machine from the working image sources I am
> working with and took a plain master poky checkout (bleeding master).
> When I want to build the SDK for the core-image-minimal I get the
> following error:
> 
> ERROR: m4-native-1.4.19-r0 do_collect_spdx_deps: Error executing a python 
> function in exec_func_python() autogenerated:
> 
> The stack trace of python calls that resulted in this exception/failure was:
> File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
>      0001:
>  *** 0002:do_collect_spdx_deps(d)
>      0003:
> File: '/home/david/yocto/bf133/poky/meta/classes/create-spdx-2.2.bbclass', 
> lineno: 494, function: do_collect_spdx_deps
>      0490:    from pathlib import Path
>      0491:
>      0492:    spdx_deps_file = Path(d.getVar("SPDXDEPS"))
>      0493:
>  *** 0494:    deps = collect_direct_deps(d, "do_create_spdx")
>      0495:
>      0496:    with spdx_deps_file.open("w") as f:
>      0497:        json.dump(deps, f)
>      0498:}
> File: '/home/david/yocto/bf133/poky/meta/classes/create-spdx-2.2.bbclass', 
> lineno: 475, function: collect_direct_deps
>      0471:    deps = set()
>      0472:    for dep_name in this_dep[3]:
>      0473:        dep_data = taskdepdata[dep_name]
>      0474:        if dep_data[1] == dep_task and dep_data[0] != pn:
>  *** 0475:            deps.add((dep_data[0], dep_data[7]))
>      0476:
>      0477:    return sorted(deps)
>      0478:
>      0479:collect_direct_deps[vardepsexclude] += "BB_TASKDEPDATA"
> Exception: IndexError: list index out of range
> 
> ERROR: Logfile of failure stored in: 
> /mnt/data/yocto/bf133/sdk/build/tmp/work/x86_64-linux/m4-native/1.4.19/temp/log.do_collect_spdx_deps.731506
> ERROR: Task 
> (/home/david/yocto/bf133/poky/meta/recipes-devtools/m4/m4-native_1.4.19.bb:do_collect_spdx_deps)
>  failed with exit code '1'
> 
> Is the generation of an SDK outdated, not recommended, not maintained
> anymore? Or do you have any recommendations to troubleshoot these
> issues?

SDK builds are tested on the autobuilder so it does work, at least
there.

Are you using the right version of bitbake with that metadata? That
index issue looks a bit to me like it is the wrong version of bitbake.

Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#60841): https://lists.yoctoproject.org/g/yocto/message/60841
Mute This Topic: https://lists.yoctoproject.org/mt/100872021/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: 
https://lists.yoctoproject.org/g/yocto/leave/6691583/21656/737036229/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to