[Chapel Merge] Stop hiding printchplenv errors in the compiler

Branch: refs/heads/main
Revision: 3e444ce
Author: ronawho
Log Message:

Merge pull request #18057 from ronawho/show-chplenv-errors-in-compiler

Stop hiding printchplenv errors in the compiler

[reviewed by @mppf]

printchplenv is run from the compiler and previously any fatal errors
weren't visible to users. We hid stderr to avoid getting warnings into
the compiler output, but this made fatal errors tricky to debug.

To resolve this add a way to suppress warnings, use that, and stop
redirecting stderr so users will see the fatal error messages.

For #18021

Modified Files:
M compiler/util/files.cpp

M test/chplenv/chplconfig/warnings/warnings.chpl
M util/chplenv/chpl_arch.py
M util/chplenv/chpl_compiler.py
M util/chplenv/chpl_cpu.py
M util/chplenv/chpl_gmp.py
M util/chplenv/chpl_hwloc.py
M util/chplenv/chpl_jemalloc.py
M util/chplenv/chpl_launcher.py
M util/chplenv/chpl_libfabric.py
M util/chplenv/chpl_llvm.py
M util/chplenv/chpl_re2.py
M util/chplenv/chpl_unwind.py
M util/chplenv/overrides.py
M util/chplenv/utils.py

Compare: https://github.com/chapel-lang/chapel/compare/2f5c385d6cf8...3e444ce73340