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

Compilation error on linux mint 21.1 #2478

Open
Tmesys opened this issue Jan 29, 2023 · 1 comment
Open

Compilation error on linux mint 21.1 #2478

Tmesys opened this issue Jan 29, 2023 · 1 comment

Comments

@Tmesys
Copy link

Tmesys commented Jan 29, 2023

Describe the bug
Trying to buid Dr Memory from scratch on linux mint vera (gcc version 11.0.3).

To Reproduce

  1. mkdir build.
  2. cd build.
  3. cmake ...
  4. make

Screenshots or Pasted Text

```
[ 18%] Building C object drsyscall/CMakeFiles/drsyscall_static.dir/drsyscall_linux.c.o
/drmemory/drsyscall/drsyscall_linux.c: In function ‘handle_semctl’:
/drmemory/drsyscall/drsyscall_linux.c:981:9: error: ‘arg_val’ is used uninitialized [-Werror=uninitialized]
  981 |     arg = *(union semun *) &arg_val;
      |     ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/drmemory/drsyscall/drsyscall_linux.c:975:15: note: ‘arg_val’ declared here
  975 |     ptr_int_t arg_val;
      |               ^~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [drsyscall/CMakeFiles/drsyscall_static.dir/build.make:104 : drsyscall/CMakeFiles/drsyscall_static.dir/drsyscall_linux.c.o] Erreur 1
make[1]: *** [CMakeFiles/Makefile2:4620 : drsyscall/CMakeFiles/drsyscall_static.dir/all] Erreur 2
make: *** [Makefile:166 : all] Erreur 2

```

Versions

  • Current git version (pulled today)
  • Linux mint vera 21.1 X86_64
@derekbruening
Copy link
Contributor

Whatever compiler version is on the regression tests is what is maintained: https://github.com/DynamoRIO/drmemory/blob/master/.github/workflows/ci-x86.yml#L43
For anything else you can submit a PR for a one-off fix, or even better help to upgrade those regression tests to Ubuntu 22.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants