Skip to content

Enclave SGX_DEBUG mode not working #375

@haerdib

Description

@haerdib

When compiling the worker code in debug mode and starting the worker the following error occurs:

./substratee-worker run
thread 'main' panicked at 'Argument short must be unique

        -s is already in use', /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/clap-2.33.3/src/app/parser.rs:193:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

teaclave do not distinguish between debug and non debug mode regarding the cargo build paths. Is there a reason why we do?

Teaclave:

ifeq ($(SGX_DEBUG), 1)
	SGX_COMMON_CFLAGS += -O0 -g
else

We

ifeq ($(SGX_DEBUG), 1)
	SGX_COMMON_CFLAGS += -O0 -g -ggdb
	OUTPUT_PATH := debug
	CARGO_TARGET :=

Metadata

Metadata

Assignees

Labels

F2-bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions