Skip to content

Stop throwing away make stderr output - #1055

Open
berrange wants to merge 1 commit into
intel:mainfrom
berrange:dont-discard-errors
Open

berrange wants to merge 1 commit into
intel:mainfrom
berrange:dont-discard-errors

Conversation

@berrange

@berrange berrange commented Oct 1, 2024

Copy link
Copy Markdown
Contributor

Calling '$(MAKE)' against a sub-directory, while redirecting the stderr output to /dev/null makes it impossible to debug build failures, as it hides all compiler error messages. Stop sending output to /dev/null, so users can figure out what's wrong when a new compiler release fails to build SGX.

@haitaohuang
haitaohuang requested a review from llly October 30, 2024 23:27
Calling '$(MAKE)' against a sub-directory, while redirecting the
stderr output to /dev/null makes it impossible to debug build
failures, as it hides all compiler error messages. Stop sending
output to /dev/null, so users can figure out what's wrong when
a new compiler release fails to build SGX.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
@berrange
berrange force-pushed the dont-discard-errors branch from 6d786b0 to db5f647 Compare July 24, 2026 10:37
@berrange

Copy link
Copy Markdown
Contributor Author

Rebased to resolved conflicts with HEAD

@jbdelcuv jbdelcuv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@bot-cc1s-branch-sync

Copy link
Copy Markdown
Contributor

Important

🔀 The Intel® SGX SDK codebase has moved

Thank you for your contribution!
The code this pull request modifies now resides in a new repository,1 so, unfortunately, it can no longer be merged here as-is. If your change is still relevant, please re-open it against the SDK repository, where this code is now maintained.

If you have any questions or need assistance migrating, please ask here. As we complete the migration, older pull requests may eventually be closed. No work is lost, though, and you are welcome to re-open your change in the new repository at any time.

Footnotes

  1. The affected sources were migrated from confidential-computing.sgx to the dedicated confidential-computing.sgx.sdk repo. The migration covered the SDK sources (sdk/), shared headers (common/), samples (SampleCode/), and the runtime libraries (psw/urts, psw/enclave_common). ↩

@bot-cc1s-branch-sync bot-cc1s-branch-sync added the repo-migration PR whose files moved to the SGX SDK repo (needs re-targeting) label Aug 3, 2026
bot-cc1s-branch-sync pushed a commit to intel/confidential-computing.sgx.sdk that referenced this pull request Dec 2, 2026
Many recipe lines in this build are prefixed with a bare `@`, hiding the
exact compiler, linker, archiver, and sub-make command lines with no way
to turn that off. A downstream Linux distribution packager who patches
this SDK and tracks newer-than-tested toolchains hit opaque build
failures as a result, and opened matching fixes upstream for the QvE
build
(intel/confidential-computing.tee.dcap#433) and
for VERBOSE handling
(intel/confidential-computing.tee.dcap#479);
this builds on an earlier attempt at
intel/confidential-computing.sgx#1055.

`make V=1` (or `VERBOSE=1`, the same switch CMake uses) now prints every
command line for the SDK and enclave runtime build targets (`make sdk`,
`sdk_install_pkg`, `enclave_runtime`), including the CMake-built
dependencies (libcbor, OpenMP, protobuf/abseil, GoogleTest), which
previously stayed quiet regardless of V=1. The tlibc, compiler-rt and
tlibcxx sub-builds, whose vendored sources alone print on the order of
twenty thousand warning lines, now log their compiler/linker stderr to a
file in the build directory by default; a failure prints the compiler
errors plus that log's path, so no V=1 re-run is needed, and V=1 still
prints it all on the console. A CI check now lints the makefiles, so a
command that V=1 should be able to show can't be silenced again, and the
convention is documented for contributors and reviewers. The
installation steps run by the makefile shipped inside the SDK installer
(also invoked by `make rpm_sdk_pkg`) are intentionally left untouched,
so the installer payload itself is unchanged.

Build outputs are unchanged either way: without V=1 every recipe still
runs and compiles exactly as before, just quietly.

---------

Signed-off-by: Mateusz Bronk <mateusz.bronk@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

repo-migration PR whose files moved to the SGX SDK repo (needs re-targeting)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants