Skip to content

4.1.1: compile time warnings #8883

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

Closed
kloczek opened this issue Apr 29, 2021 · 1 comment
Closed

4.1.1: compile time warnings #8883

kloczek opened this issue Apr 29, 2021 · 1 comment

Comments

@kloczek
Copy link

kloczek commented Apr 29, 2021

Below is summary information about compiler warnings using gcc 11.0.1 and LTO:

$ grep -- -W openmpi.log  | sed 's/.*\[//; s/\]//' | sort | uniq -c | sort -nr
   1631 -Wc-binding-type
    813 -Wunused-result
     43 -Wunused-dummy-argument
     29 -Wlto-type-mismatch
     11 -Wunused-but-set-variable
      8 -Wcpp
      7 -Wunused-variable
      7 -Wunused-function
      6 -Wstringop-overread
      5 -Wstringop-overflow=
      5 -Wdiscarded-qualifiers
      4 -Wincompatible-pointer-types
      2 -Walloc-size-larger-than=
      1 -Wformat-truncation=
      1 -Wformat-extra-args
      1 -Wformat=
      1 -Waddress-of-packed-member

Most important are -Wlto-type-mismatch warmings because even one warming during linking is causing that LTO is not used.
Full stderr output with autogen.sh output when autoconf 2.71 is used is in attachment. Later will try to submit some patch for those autoconf warnings which will be backward compatible with older versions of the autoconf but decision which one version of some declarations in heard files or in .c files needs to be used to resolve those LTO warmings neds to be made bo someone who knowe well OpenMPI code.
openmpi.log

@jsquyres
Copy link
Member

LTO was fixed on main in #13193, and will be included in v6.0.0.

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

No branches or pull requests

2 participants