intel / intel/confidential-computing.sgx

When make -j16 parallelly build deb_psw_pkg, the openssl's build work report an error

Open
#755 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.5k
Forks
565
PR merge metrics
No merged PRs in 30d

Description

The error report is as follow

```cpp
***** Deprecated options: no-ui

============================== WARNING ===============================
You have selected the --with-rand-seed=none option, which effectively
disables automatic reseeding of the OpenSSL random generator.
All operations depending on the random generator such as creating keys
will not work unless the random generator is seeded manually by the
application.

Please read the 'Note on random number generation' section in the
INSTALL instructions and the RAND_DRBG(7) manual page for more details.
============================== WARNING ===============================

Configuring OpenSSL version 1.1.1k (0x101010bfL) for sgx-linux-x86_64
Creating configdata.pm
Creating Makefile
Can't rename /home/leone/文档/linux-sgx/external/dcap_source/QuoteVerification/sgxssl/openssl_source/openssl-1.1.1k/Makefile.new, No such file or directory at Configure line 3236.
make[5]: *** [Makefile:65:/home/leone/文档/linux-sgx/external/dcap_source/QuoteVerification/sgxssl/Linux/sgx/../package/lib64//libsgx_tsgxssl_crypto.a] 错误 1
make[5]: 离开目录“/home/leone/文档/linux-sgx/external/dcap_source/QuoteVerification/sgxssl/Linux/sgx”
make[4]: *** [Makefile:53:sgxssl_no_mitigation] 错误 2
make[4]: 离开目录“/home/leone/文档/linux-sgx/external/dcap_source/QuoteVerification/sgxssl/Linux”
~/文档/linux-sgx/external/dcap_source/QuoteVerification/QvE
make[3]: 离开目录“/home/leone/文档/linux-sgx/external/dcap_source/QuoteVerification/QvE”
make[2]: 进入目录“/home/leone/文档/linux-sgx/external/dcap_source/tools/PCKRetrievalTool”
GEN => Enclave/Enclave_t.h
make[2]: 离开目录“/home/leone/文档/linux-sgx/external/dcap_source/tools/PCKRetrievalTool”
make[3]: 进入目录“/home/leone/文档/linux-sgx/external/dcap_source/QuoteVerification/QvE”
In file included from ../../QuoteGeneration/../QuoteVerification/QVL/Src/AttestationLibrary/src/PckParser/PckParser.h:43,
from ../../QuoteGeneration/../QuoteVerification/QVL/Src/AttestationLibrary/src/PckParser/CrlStore.h:36,
from Enclave/qve.cpp:63:
../../QuoteGeneration/../QuoteVerification/QVL/Src/AttestationCommons/include/OpensslHelpers/OpensslTypes.h:37:10: fatal error: openssl/asn1.h: 没有那个文件或目录
37 | #include
| ^~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [Makefile:136:Enclave/qve.o] 错误 1
make[3]: 离开目录“/home/leone/文档/linux-sgx/external/dcap_source/QuoteVerification/QvE”
make[2]: *** [Makefile:37:all] 错误 2
make[1]: *** [Makefile:64:qve_wrapper] 错误 2
make[1]: *** 正在等待未完成的任务....
```

When `make -j16`, above error will 100% trigger , while just `make`, there is no such problem. And if continue `make -j16` after failed `make -j16`, it works correctly again. So I think in the first make, the script build openssl lack of dependency.

My linux-sgx version is commit id=8abc6dd8cb44e3cef8294c508e77803ffeb8ed12

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.