apache / apache/teaclave-sgx-sdk

samplecode/helloworld

Open
#366 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.2k
Forks
268
PR merge metrics
No merged PRs in 30d

Description

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 ?

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure in samplecode/helloworld using one of the listed Docker images, then read samplecode/helloworld/enclave/Makefile and sgx_unwind/../sgx_unwind/libunwind/autogen.sh. Check the reported build-script and autoreconf errors first. Done means the helloworld enclave compiles successfully in a documented environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, rust
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.