网上有很多例子是基于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还在未来:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
alvin@weichenv081 MINGW64 /c/open-enclave.0.8.1/openenclave/share/openenclave/samples/attested_tls $ stat CMakeLists.txt File: CMakeLists.txt Size: 1386 Blocks: 4 IO Block: 65536 regular file Device: 14abd27bh/346804859d Inode: 1125899907054474 Links: 1 Access: (0644/-rw-r--r--) Uid: (197108/ alvin) Gid: (197121/ UNKNOWN) Access: 2020-02-10 15:38:43.752300400 -0800 Modify: 2020-02-10 18:47:16.000000000 -0800 Change: 2020-02-10 15:38:43.752300400 -0800 Birth: 2020-02-10 15:38:43.752300400 -0800 alvin@weichenv081 MINGW64 /c/open-enclave.0.8.1/openenclave/share/openenclave/samples/attested_tls $ date Mon, Feb 10, 2020 3:39:08 PM alvin@weichenv081 MINGW64 /c/open-enclave.0.8.1/openenclave/share/openenclave/samples/attested_tls $ |
修改文件时间到过去或者把系统时间设在将来,错误消失了。
关于Jenkins上用cpack打包时怎么会把文件时间设在未来,待续。