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

Unable to build on Ubuntu 16.04 #25

Open
ychen404 opened this issue Apr 16, 2020 · 4 comments
Open

Unable to build on Ubuntu 16.04 #25

ychen404 opened this issue Apr 16, 2020 · 4 comments

Comments

@ychen404
Copy link

Hi,

I am not able to build the source following the instructions on the website:
http://open-tee.github.io/documentation/
The following is the error that I am getting:

linking opentee-engine
ERROR: /usr/bin/gcc -g -O0 -Wall -Wextra -m64 -pipe -fvisibility=default -Wpointer-arith -I/usr/local/include -fPIC -DOT_LOGGING -D_FORTIFY_SOURCE=2 -I/home/local/ASUAD/ychen404/Open-TEE/emulator/include -o /home/local/ASUAD/ychen404/Op
en-TEE/debug/InternalApi.0d64191a/3a52ce780950d4d9/openssl_1_0_2_beta_rsa_oaep.c.o -c /home/local/ASUAD/ychen404/Open-TEE/emulator/internal_api/openssl_1_0_2_beta_rsa_oaep.c

ERROR: /home/local/ASUAD/ychen404/Open-TEE/emulator/internal_api/openssl_1_0_2_beta_rsa_oaep.c: In function ‘beta_PKCS1_MGF1’:
/home/local/ASUAD/ychen404/Open-TEE/emulator/internal_api/openssl_1_0_2_beta_rsa_oaep.c:39:13: error: storage size of ‘c’ isn’t known
EVP_MD_CTX c;
^
/home/local/ASUAD/ychen404/Open-TEE/emulator/internal_api/openssl_1_0_2_beta_rsa_oaep.c:74:2: warning: implicit declaration of function ‘EVP_MD_CTX_cleanup’; did you mean ‘EVP_MD_CTX_create’? [-Wimplicit-function-declaration]
EVP_MD_CTX_cleanup(&c);
^~~~~~~~~~~~~~~~~~
EVP_MD_CTX_create
/home/local/ASUAD/ychen404/Open-TEE/emulator/internal_api/openssl_1_0_2_beta_rsa_oaep.c:39:13: warning: unused variable ‘c’ [-Wunused-variable]
EVP_MD_CTX c;
^
ERROR: Process failed with exit code 1.

It seems that the problem comes from EVP_MD_CTX.
After googling, I found out EVP_MD_CTX is related to openssl.
But I've no idea which version of openssl should I use, after updating to the latest one (1.1.1f), I am still facing the same problem. Should I downgrade my openssl to a specific version? Or I am running into some other issue?

Following is the version of my openssl.
$ openssl version
OpenSSL 1.1.1f 31 Mar 2020

Any help is appreciated!

@TanelDettenborn
Copy link
Member

Hi ychen404,

Unfortunately OpenTEE is not migrated to use the latest versions of OpenSSL. OpenTEE requires OpenSSL version 1.0.x.

Or I am running into some other issue?

I would suggest to use a VM (run 16.04 with older OpenSSL version), because of OpenSSL downgrade from 1.1.x to 1.0.x might cause stability issues in the system! But OpenTEE should compile and run without problems on 16.04 with 1.0.x :)

@ychen404
Copy link
Author

ychen404 commented Apr 16, 2020 via email

@TanelDettenborn
Copy link
Member

I have troubles to reproduce the issue. I am able to reproduce above compiling error with OpenSSL 1.1.1, but not with 1.0.2. I have downloaded OpenSSL 1.0.2 sources from their Github repository, compiled it and then build OpenTEE against it without any errors. Also build OpenTEE runs without issues.

Therefore I am suspecting that you are still building against OpenSSL 1.1.1 (specially if you are facing exactly same error).

@ychen404
Copy link
Author

ychen404 commented Apr 18, 2020 via email

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