Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D dynamorio
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,467
    • Issues 1,467
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 44
    • Merge requests 44
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • DynamoRIO
  • dynamorio
  • Issues
  • #5781
Closed
Open
Issue created Dec 08, 2022 by Administrator@rootContributor

RISCV64: "xflag not define" cause compile failure

Created by: shiptux

Describe the bug The DynamoRIO lib that is built using GCC on a QEMU-RISCV64 machine. Report this error: ‘dr_mcontext_t’ {aka ‘struct _dr_mcontext_t’} has no member named ‘xflags’;

To Reproduce

  1. Compiling DynamoRIO under RISCV64 QEMU or machine
  2. cmake ../ && make -j

Expected behavior DynamoRIO should be able to compile correctly under RISCV64

Screenshots or Pasted Text If applicable, add screenshots to help explain your problem. For text, please cut and paste the text here, delimited by lines consisting of three backtics to render it verbatim, like this:

```
[ 72%] Building C object ext/drbbdup/CMakeFiles/drbbdup.dir/drbbdup.c.o
/root/dynamorio/ext/drbbdup/drbbdup.c: In function ‘drbbdup_event_restore_state’:
/root/dynamorio/ext/drbbdup/drbbdup.c:2195:49: error: ‘dr_mcontext_t’ {aka ‘struct _dr_mcontext_t’} has no member named ‘xflags’; did you mean ‘flags’?
 2195 |                     reg_t cur = info->mcontext->xflags;
      |                                                 ^~~~~~
      |                                                 flags
```

Versions

  • What version of DynamoRIO are you using? The latest version from DynamoRIO upstream.
  • Does the latest build from https://github.com/DynamoRIO/dynamorio/releases solve the problem? No
  • What operating system version are you running on? ("Windows 10" is not sufficient: give the release number.) Debian QEMU RISCV64
Assignee
Assign to
Time tracking