Skip to content

6.1.y build fails to parse #26

@gregkh

Description

@gregkh

I don't know if we want to care about this version, but it fails instantly when trying to parse the output:

python3 sbom/sbom.py --src-tree ~/linux/stable/linux-6.1.y --output-tree ~/linux/stable/linux-6.1.y --root-output-in-tree vmlinux --spdx sbom.spdx.json --used-files sbom.used_files.txt
[INFO] Building cmd graph for vmlinux
[INFO] Build Node: vmlinux
Traceback (most recent call last):
  File "/mnt/fast_t2/linux/trees/KernelSbom/sbom/sbom.py", line 169, in <module>
    main()
    ~~~~^^
  File "/mnt/fast_t2/linux/trees/KernelSbom/sbom/sbom.py", line 137, in main
    cmd_graph = build_cmd_graph(root_output_in_tree, output_tree, src_tree)
  File "/mnt/fast_t2/linux/trees/KernelSbom/sbom/lib/sbom/cmd/cmd_graph.py", line 62, in build_cmd_graph
    cmd_file = parse_cmd_file(cmd_path) if cmd_path.exists() else None
               ~~~~~~~~~~~~~~^^^^^^^^^^
  File "/mnt/fast_t2/linux/trees/KernelSbom/sbom/lib/sbom/cmd/cmd_file_parser.py", line 38, in parse_cmd_file
    raise ValueError(f"No 'savedcmd_' command found in {cmd_file_path}")
ValueError: No 'savedcmd_' command found in /mnt/fast_t2/linux/stable/linux-6.1.y/.vmlinux.cmd

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions