Repository navigation
Conversation
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>
6d786b0 to
db5f647
Compare
|
Rebased to resolved conflicts with HEAD |
|
Important 🔀 The Intel® SGX SDK codebase has movedThank you for your contribution! 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
|
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>
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.