-
Recent Posts
Recent Comments
Archives
Categories
Meta
Monthly Archives: February 2020
-ffunction-sections -fdata-sections -Wl, –gc-sections编译选项
https://gcc.gnu.org/onlinedocs/gcc-7.5.0/gnat_ugn/Compilation-options.html
实际上gcc和clang均可支持。当使用-ffunction-sections -fdata-sections这两个参数编译,并且在链接时使用-[……]
Posted in tittle tattle
Leave a comment
package command
查询文件属于哪个包:
1 2 3 |
alvin@chen:~/openenclave/build$ dpkg -S /usr/lib/x86_64-linux-gnu/libsgx_enclave_common.so.1 libsgx-enclave-common: /usr/lib/x86_64-linux-gnu/libsgx_enclave_common.so.1 alvin@chen:~/openenclave/build$ |
1 2 3 |
[alvin@wechen3-rhel8-4 ~]$ rpm -qf /usr/lib/debug/usr/lib64/libsgx_dcap_ql.so.1.6.100.2-1.6.100.2-1.el8.x86_64.debug libsgx-dcap-ql-debuginfo-1.6.100.2-1.el8.x86_64 [alvin@wechen3-rhel8-4 ~]$ |
查询包的基本信息:
1 2 3 4 5 6 7 8 |
alvin@chen:~/openenclave/build$ dpkg -l libsgx-enclave-common Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-======================-================-================-================================================== ii libsgx-enclave-common 2.8.100.3-bionic amd64 Intel(R) Software Guard Extensions Enclave Common alvin@chen:~/openenclave/build$ |
[crayon-67ef580f674794450[……]
Posted in tittle tattle
Leave a comment
ninja: error: manifest ‘build.ninja’ still dirty after 100 tries
网上有很多例子是基于ninja的bug。排除ninja的问题后还有错误:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
C:\open-enclave.0.8.1\openenclave\share\openenclave\samples\switchless\build>ninja ...... VERBOSE-- Looking for sgx_enclave_common library - found VERBOSE-- Looking for sgx_dcap_ql library - found -- Configuring done -- Generating done -- Build files have been written to: C:/open-enclave.0.8.1/openenclave/share/openenclave/samples/switchless/build VERBOSE-- Looking for sgx_enclave_common library - found VERBOSE-- Looking for sgx_dcap_ql library - found -- Configuring done -- Generating done -- Build files have been written to: C:/open-enclave.0.8.1/openenclave/share/openenclave/samples/switchless/build ninja: error: manifest 'build.ninja' still dirty after 100 tries C:\open-enclave.0.8.1\openenclave\share\openenclave\samples\switchless\build> |
带上explain参数能显示具体的错误:
1 2 3 4 5 6 7 8 9 10 11 |
C:\open-enclave.0.8.1\openenclave\share\openenclave\samples\switchless\build>ninja -d explain ninja explain: output build.ninja older than most recent input ../CMakeLists.txt (603082958 vs 603092436) VERBOSE-- Looking for sgx_enclave_common library - found VERBOSE-- Looking for sgx_dcap_ql library - found -- Configuring done -- Generating done -- Build files have been written to: C:/open-enclave.0.8.1/openenclave/share/openenclave/samples/switchless/build ninja explain: output build.ninja older than most recent input ../CMakeLists.txt (603082963 vs 603092436) ...... C:\open-enclave.0.8.1\openenclave\share\openenclave\samples\switchless\build> |
查看一下文件时间,Modify time还在[……]
Posted in tittle tattle
Leave a comment