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

Stripped symbols #3

Open
letmaik opened this issue May 20, 2019 · 1 comment
Open

Stripped symbols #3

letmaik opened this issue May 20, 2019 · 1 comment

Comments

@letmaik
Copy link

letmaik commented May 20, 2019

I just had some fun figuring out how to get PSW to have symbols. The prebuilt packages seem to be all stripped now. Building from source by default also gets you stripped libraries. The solution was to use export DEB_BUILD_OPTIONS="nostrip" which Intel mentions only in connection with Ubuntu 16.04 and debug information, whereas I'm on 18.04 and don't care about debug information. Long story short, it's probably helpful to mention this environment variable in the readme and the fact that you have to build from source.

@andrade
Copy link

andrade commented Aug 23, 2019

I had the same issue with SGX v2.6 on Ubuntu 18.04.

$ LD_PRELOAD=path/to/lib/liblogger.so ./app
=== Initializing sgx-perf
(i) No config file found, load defaults
!!! Could not get CEnclavePool::instance(). Check urts for stripped symbols
!!! Error initializing!

The solution was to compile and install the PSW from source with nostrip, as pointed out by @letmaik. I kept the prebuilt driver and SDK, and only reinstalled the PSW.

Note: PSW didn't compile with protobuf v3.9.0 from snap, used instead 3.0.0 from apt repositories.

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

2 participants