With the introduction of deprecated package header warnings in #12828, -Werror had to be turned off from several PR testing configurations (gcc-serial, gcc-openmpi, & gcc-openmpi-openmp). Since then, we cannot be confident that Trilinos can compile with minimal warnings related to all currently supported packages.
This discussion to increase more warnings-as-errors began in
13107
How to inject package specific compiler flags with GenConfig
To reproduce errors caused by new warnings-as-errors flags for an isolated package using GenConfig, the package developer will need to add or modify an existing <package>_CXX_FLAGS variable within GenConfig's configurations files.
If there does not currently exist an entry for you package, you can add a new entry by copying an existing entry, modifying the variable name with the appropriate package name, and appending the flags to the end as shown above.
Configure with GenConfig
There are three GCC PR test configurations that utilize [GCC_PACKAGE_SPECIFIC_WARNING_FLAGS]. Choose one of these to configurations in the table below and get GenConfig by running ./get_dependencies.sh --srn located in Trilinos/packages/framework on an SRN machine.
Description
With the introduction of deprecated package header warnings in #12828,
-Werror
had to be turned off from several PR testing configurations (gcc-serial, gcc-openmpi, & gcc-openmpi-openmp). Since then, we cannot be confident that Trilinos can compile with minimal warnings related to all currently supported packages.This discussion to increase more warnings-as-errors began in
13107
How to inject package specific compiler flags with GenConfig
To reproduce errors caused by new warnings-as-errors flags for an isolated package using GenConfig, the package developer will need to add or modify an existing
<package>_CXX_FLAGS
variable within GenConfig's configurations files.Start from a fresh pull of
develop
branch.Modify
[GCC_PACKAGE_SPECIFIC_WARNING_FLAGS]
section ofTrilinos/packages/framework/ini-files/config-specs.ini
Configure with GenConfig There are three GCC PR test configurations that utilize
[GCC_PACKAGE_SPECIFIC_WARNING_FLAGS]
. Choose one of these to configurations in the table below and get GenConfig by running./get_dependencies.sh --srn
located inTrilinos/packages/framework
on an SRN machine.Source SEMS modules:
Once you have GenConfig and the tool chain configuration you'd like to test on, run
ninja <package_name>
to build your specific package.