Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

samplecode/helloworld #366

Open
hacktheblock opened this issue Dec 16, 2021 · 2 comments
Open

samplecode/helloworld #366

hacktheblock opened this issue Dec 16, 2021 · 2 comments

Comments

@hacktheblock
Copy link

hacktheblock commented Dec 16, 2021

Hello,
I have problem with compilation a helloworld sample code .

I tried compilation on below docker images:
baiduxlab/sgx-rust:2004-1.1.3
baiduxlab/sgx-rust:1604-1.1.3
baiduxlab/sgx-rust:centos8-1.1.3

But each time, I obtained error:

--- stderr
: not found/sgx_unwind/../sgx_unwind/libunwind/autogen.sh: 2:
: not found/sgx_unwind/../sgx_unwind/libunwind/autogen.sh: 5:
/root/sgx/sgx_unwind/../sgx_unwind/libunwind/autogen.sh: 6: cd: can't cd to /r
oot/sgx/sgx_unwind/../sgx_unwind/libunwind
'.autoreconf: unrecognized option '--install
autoreconf: Try '/usr/bin/autoreconf --help' for more information.
: not found/sgx_unwind/../sgx_unwind/libunwind/autogen.sh: 8: exit
: not found/sgx_unwind/../sgx_unwind/libunwind/autogen.sh: 9:
: bad variable nameind/../sgx_unwind/libunwind/autogen.sh: 13: export: CFLAGS
make[1]: *** [Makefile:36: libenclave.a] Error 101
make[1]: Leaving directory '/root/sgx/samplecode/helloworld/enclave'
make: *** [Makefile:165: enclave] Error 2

I found addition informations

Compiling sgx_unwind v1.1.4 (/root/sgx/sgx_unwind)
error: failed to run custom build command for sgx_unwind v1.1.4 (/root/sgx/sgx_ unwind)

Caused by:
process didn't exit successfully: /root/sgx/samplecode/helloworld/enclave/tar get/release/build/sgx_unwind-917f9251756f26e8/build-script-build (exit status:
1)

Is someone who can help me ?

@eatruffle
Copy link

Hi,
The fast solution for this problem is checkout to commit 19355dc

commit 19355dc (HEAD)
Date: Thu Oct 14 20:23:39 2021 +0800

Update sgx_types for dcap 1.12

@Kidjing
Copy link

Kidjing commented Feb 23, 2024

Hi,
I encountered the same problem on windows. This is because the file format in Windows is dos, while in Linux, the file format is unix.

Execute the following instructions in the linux environment (docker) to convert all file formats in the sgx folder to unix.

find . -type f -print0 | xargs -0 dos2unix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants