Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RISCOF failure on Arm64 host #564

Open
jserv opened this issue Feb 12, 2025 · 2 comments
Open

RISCOF failure on Arm64 host #564

jserv opened this issue Feb 12, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@jserv
Copy link
Contributor

jserv commented Feb 12, 2025

Reported by CI on Arm64 host:

    INFO | Dumping out Normalized Checked YAML: /home/runner/work/rv32emu/rv32emu/build/arch-test/rv32emu_platform_checked.yaml
    INFO | Generating database for suite: /home/runner/work/rv32emu/rv32emu/tests/riscv-arch-test/riscv-test-suite
Traceback (most recent call last):
  File "/home/runner/work/rv32emu/rv32emu/venv/bin/riscof", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/home/runner/work/rv32emu/rv32emu/venv/lib/python3.12/site-packages/click/core.py", line 1161, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/rv32emu/rv32emu/venv/lib/python3.12/site-packages/click/core.py", line 1082, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/home/runner/work/rv32emu/rv32emu/venv/lib/python3.12/site-packages/click/core.py", line 1697, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/rv32emu/rv32emu/venv/lib/python3.12/site-packages/click/core.py", line 1443, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/rv32emu/rv32emu/venv/lib/python3.12/site-packages/click/core.py", line 788, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/rv32emu/rv32emu/venv/lib/python3.12/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/rv32emu/rv32emu/venv/lib/python3.12/site-packages/riscof/cli.py", line 290, in run
    ctx.invoke(generate,suite=suite,env=env,work_dir=work_dir)
  File "/home/runner/work/rv32emu/rv32emu/venv/lib/python3.12/site-packages/click/core.py", line 788, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/rv32emu/rv32emu/venv/lib/python3.12/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/rv32emu/rv32emu/venv/lib/python3.12/site-packages/riscof/cli.py", line 209, in generate
    dbgen.generate()
  File "/home/runner/work/rv32emu/rv32emu/venv/lib/python3.12/site-packages/riscof/dbgen.py", line 147, in generate
    _ , is_repo = arch_test.get_version(constants.suite)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/rv32emu/rv32emu/venv/lib/python3.12/site-packages/riscof/arch_test.py", line 20, in get_version
    commit = repo.head.commit
             ^^^^^^^^^^^^^^^^
  File "/home/runner/work/rv32emu/rv32emu/venv/lib/python3.12/site-packages/git/refs/symbolic.py", line 197, in _get_commit
    obj = self._get_object()
          ^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/rv32emu/rv32emu/venv/lib/python3.12/site-packages/git/refs/symbolic.py", line 190, in _get_object
    return Object.new_from_sha(self.repo, hex_to_bin(self.dereference_recursive(self.repo, self.path)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/rv32emu/rv32emu/venv/lib/python3.12/site-packages/git/objects/base.py", line 65, in new_from_sha
    oinfo = repo.odb.info(sha1)
            ^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/rv32emu/rv32emu/venv/lib/python3.12/site-packages/git/db.py", line 43, in info
    hexsha, typename, size = self._git.get_object_header(bin_to_hex(sha))
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/rv32emu/rv32emu/venv/lib/python3.12/site-packages/git/cmd.py", line 1199, in get_object_header
    return self.__get_object_header(cmd, ref)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/rv32emu/rv32emu/venv/lib/python3.12/site-packages/git/cmd.py", line 1188, in __get_object_header
    return self._parse_object_header(cmd.stdout.readline())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/rv32emu/rv32emu/venv/lib/python3.12/site-packages/git/cmd.py", line 1148, in _parse_object_header
    raise ValueError("SHA could not be resolved, git returned: %r" % (header_line.strip()))
ValueError: SHA could not be resolved, git returned: b''
make: *** [mk/riscv-arch-test.mk:26: arch-test] Error 1
@jserv jserv added the bug Something isn't working label Feb 12, 2025
@vacantron
Copy link
Collaborator

After reruning the CI, the error message becomes E: Sub-process /usr/bin/dpkg returned an error code (1) . It seems not the problem of RISCOF.

https://github.com/sysprog21/rv32emu/actions/runs/13276547348/job/37074537274#step:3:2585

@jserv
Copy link
Contributor Author

jserv commented Feb 12, 2025

After reruning the CI, the error message becomes E: Sub-process /usr/bin/dpkg returned an error code (1) . It seems not the problem of RISCOF.

Check this instead.

@jserv jserv added this to the release-2025.1 milestone Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants