Bug 420518

Summary: Cannot compile valgrind on Ubuntu 20.04 docker due to failed compilation libmpiwrap.c
Product: [Developer tools] valgrind Reporter: Rafał Mikrut <mikrutrafal>
Component: generalAssignee: Julian Seward <jseward>
Status: REOPENED ---    
Severity: major CC: meven.car, tom
Priority: NOR    
Version: 3.15 SVN   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Rafał Mikrut 2020-04-24 16:40:26 UTC
Hi,

I can't compile valgrind with this instructions on docker Ubuntu 20.04
```
    - sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list
    - export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true
    - apt update
    - apt build-dep -y valgrind
    - ./autogen.sh
    - ./configure
    - make -j8
```


Errors:
```
In file included from libmpiwrap.c:116:
libmpiwrap.c: In function 'showTy':
/usr/lib/x86_64-linux-gnu/openmpi/include/mpi.h:322:57: error: expected expression before '_Static_assert'
  322 | #define THIS_SYMBOL_WAS_REMOVED_IN_MPI30(func, newfunc) _Static_assert(0, #func " was removed in MPI-3.0.  Use " #newfunc " instead.")
      |                                                         ^~~~~~~~~~~~~~
/usr/lib/x86_64-linux-gnu/openmpi/include/mpi.h:1112:24: note: in expansion of macro 'THIS_SYMBOL_WAS_REMOVED_IN_MPI30'
 1112 | #        define MPI_UB THIS_SYMBOL_WAS_REMOVED_IN_MPI30(MPI_UB, MPI_Type_create_resized);
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libmpiwrap.c:281:19: note: in expansion of macro 'MPI_UB'
  281 |    else if (ty == MPI_UB)             fprintf(f,"UB");
      |                   ^~~~~~
/usr/lib/x86_64-linux-gnu/openmpi/include/mpi.h:322:57: error: expected expression before '_Static_assert'
  322 | #define THIS_SYMBOL_WAS_REMOVED_IN_MPI30(func, newfunc) _Static_assert(0, #func " was removed in MPI-3.0.  Use " #newfunc " instead.")
      |                                                         ^~~~~~~~~~~~~~
```

Failed job CI - https://gitlab.com/qarmin/valgrind/-/jobs/525966751
Gitlab CI - https://gitlab.com/qarmin/valgrind/-/blob/master/.gitlab-ci.yml
Comment 1 Méven Car 2020-04-24 16:50:33 UTC
As far as I cam tell this has nothing to do with any kde community project.

Please report this to ubuntu bug tracker of valgrind's.
Comment 2 Tom Hughes 2020-04-24 17:03:56 UTC
While valgrind is not a KDE project it does use the KDE bug tracker so this is the upstream bug tracker!
Comment 3 Rafał Mikrut 2020-04-24 18:29:01 UTC
https://valgrind.org/support/bug_reports.html points to this site and even here is a category: "valgrind", so probably I'm in correct place.
Comment 4 Méven Car 2020-04-27 10:30:09 UTC
I stand corrected.
I didn't now kde bugtracker was not only for kde community projects.