Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • T Trilinos
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 936
    • Issues 936
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • 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
  • James Willenbring
  • Trilinos
  • Issues
  • #4891

Closed
Open
Created Apr 15, 2019 by James Willenbring@jmwilleMaintainer

Unused var isInitializedLocalMap_ warning in Xpetra_EpetraMap.hpp triggering build error in SPARC Trilinos Integration builds with -Werror

Created by: bartlettroscoe

CC: @trilinos/xpetra , @kddevin (Trilinos Data Services Product Lead), @bartlettroscoe, @fryeguy52

??: Add label "client: ATDM"> ??: Add label "ATDM Sev: Blocker" (by default but could be other "ATDM Sev: XXX")> ??: Add label "type: bug"?> ??: Add label for affected packages (e.g. "pkg: MueLu", "pkg: Tpetra", "pkg: Kokkos", etc.)> ??: Add label "PA: ???Project Area???" (e.g. "PA: Linear Solvers", "PA: Data Services")> ??: Add milestone "Initial cleanup of new ATDM ..." or "Keep promoted ATDM ..."> ??: Once GitHub Issue is created, add entries for tests to TrilinosATDMStatus/*.csv files>

Next Action Status

Description

The new unused var warning shown, for example, here in the build:

  • Trilinos-atdm-cee-rhel6_clang-5.0.1_openmpi-1.10.2_serial_static_opt

in the build of MueLu which shows the warning:

[CTest: warning matched] /scratch/rabartl/Trilinos.base/NightlyBuilds/Trilinos-atdm-cee-rhel6_clang-5.0.1_openmpi-1.10.2_serial_static_opt/SRC_AND_BUILD/Trilinos/packages/xpetra/src/Map/Xpetra_EpetraMap.hpp:699:18: warning: private field 'isInitializedLocalMap_' is not used [-Wunused-private-field]
    mutable bool isInitializedLocalMap_ = false; // It's OK to use C++11 when Tpetra is enabled

is triggering build errors for the clang-5.0.1 and gnu-7.2.0 SPARC Trilinos Integration builds that have -Werror set. One can see these build errors, for example, here.

Current Status on CDash

The status of these warnings can be seen in:

  • MueLu warning in Trilinos-atdm-cee-rhel6_clang-5.0.1_openmpi-1.10.2_serial_static_opt build over last 5 days.

Just click on the number (e.g. '5') under "Build | Warn" to see the warnings.

Steps to Reproduce

One should be able to reproduce this failure on any CEE LAN RHEL6 machine as described in:

  • https://github.com/trilinos/Trilinos/blob/develop/cmake/std/atdm/README.md

More specifically, the commands given for the system are provided at:

  • https://github.com/trilinos/Trilinos/blob/develop/cmake/std/atdm/README.md#cee-rhel6-environment The exact commands to reproduce this issue should be:
$ cd <some_build_dir>/

$ source $TRILINOS_DIR/cmake/std/atdm/load-env.sh \
    Trilinos-atdm-cee-rhel6_clang-5.0.1_openmpi-1.10.2_serial_static_opt 

$ cmake \
 -GNinja \
 -DTrilinos_CONFIGURE_OPTIONS_FILE:STRING=cmake/std/atdm/ATDMDevEnv.cmake \
 -DTrilinos_ENABLE_TESTS=ON -DTrilinos_ENABLE_MueLu=ON \
 $TRILINOS_DIR

$ make NP=16

and one should see the warnings.

Assignee
Assign to
Time tracking