Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Wrong interpreter of sgx_edger8r on target #23

@liux2085

Description

@liux2085

The interpreter of sgx_edger8r was set to be the path on build host.

root@intel-x86-64:/opt/intel/sgxsdk/bin/x64# file sgx_edger8r 
dynamically linked, interpreter /<TOPDIR>/tmp-glibc/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2

This leads the samples in SDK cannot be built.

root@intel-x86-64:/opt/intel/sgxsdk/SampleCode/SampleEnclave# make
make[1]: Entering directory '/opt/intel/sgxsdk/SampleCode/SampleEnclave'
/bin/sh: line 1: /opt/intel/sgxsdk/bin/x64/sgx_edger8r: No such file or directory
make[1]: *** [Makefile:222: App/Enclave_u.h] Error 127
make[1]: Leaving directory '/opt/intel/sgxsdk/SampleCode/SampleEnclave'
make: *** [Makefile:181: all] Error 2

Only after applying "patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 /opt/intel/sgxsdk/bin/x64/sgx_edger8r", the sample can be built on target.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions