asterinas / trustflow

A privacy-preserving computing system based on TEE.
https://www.secretflow.org.cn/docs/trustedflow
Apache License 2.0
14 stars 11 forks source link

Fail to patch DCAP when compiling trustedflow_verifier.js #40

Closed hu6360567 closed 6 months ago

hu6360567 commented 6 months ago

Issue Type

Bug

Source

source

Capsule Manager Version

Not related

Capsule Manager SDK Version

Not related

Tee Apps Version

Not related

OS Platform and Distribution

Ubuntu 22.04

Python version

3.8

Bazel version

No response

GCC/Compiler version

No response

What happend and What you expected to happen.

-- Downloading... done
-- extracting...
     src='/workspaces/trustedflow/build/external/dcap/src/DCAP_1.19.tar.gz'
     dst='/workspaces/trustedflow/build/external/dcap/src/dcap'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 82%] No update step for 'dcap'
[ 82%] Performing patch step for 'dcap'
error: corrupt patch at line 103
make[2]: *** [CMakeFiles/dcap.dir/build.make:121: external/dcap/src/dcap-stamp/dcap-patch] Error 128
make[1]: *** [CMakeFiles/Makefile2:837: CMakeFiles/dcap.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Reproduction code to reproduce the issue.

Follow the instructions in https://github.com/secretflow/trustedflow/tree/main/trustedflow/attestation#cmake
zheyang0825 commented 6 months ago

Some whitespace characters are cleared when the code is pushed out, and this issue is fixed in #41