intel / dynamic-application-loader-host-interface Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
LinuxService.cpp:79:24: error: ‘JHI_VERSION’ was not declared in this scope
std::cout<<JHI_VERSION<<std::endl;
When I execute the first build step as of 9fba7df2d1ce6dde95c639d8ef1afb4509ffba45
, I get this:
dynamic-application-loader-host-interface$ cmake .
CMake Error at CMakeLists.txt:274 (install):
install FILES given no DESTINATION!
What am I missing?
Upon Performing this command, "cmake .;make;sudo make install;sudo systemctl enable jhi"
CMake Error at CMakeLists.txt:274 (install):
cmake .;make;sudo make install;sudo systemctl enable jhi"_
CMake Error at CMakeLists.txt:274 (install):
install FILES given no DESTINATION!
-- Configuring incomplete, errors occurred!
See also "/home/erictran/Downloads/dynamic-application-loader-host-interface/CMakeFiles/CMakeOutput.log".
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
This can be replicated by performing the command again, or individually.
System library path of CentOS/RHEL 64bit is /usr/lib64. While default Install path of libraries is /usr/lib. jhi service fails to start because of cannot finding the libraries.
:~/dynamic-application-loader-host-interface-master$ cmake .
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.3")
CMake Error at CMakeLists.txt:274 (install):
install FILES given no DESTINATION!
-- Configuring incomplete, errors occurred!
See also "/home/user1/dynamic-application-loader-host-interface-master/CMakeFiles/CMakeOutput.log".
Can you add README to announce OS support, building/executing instruction?
Hi, @jlahav and whoever encountered this problem,
On Azure VM after building the jhi service runs into the error:
main@PigramUbuntu1804:~/work/wind/dynamic-application-loader-host-interface/bin_linux$ sudo service jhi restart
main@PigramUbuntu1804:~/work/wind/dynamic-application-loader-host-interface/bin_linux$ sudo service jhi status
● jhi.service - Intel Dynamic Application Loader Host Interface (JHI)
Loaded: loaded (/lib/systemd/system/jhi.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2019-09-01 08:23:37 UTC; 5s ago
Main PID: 45749 (jhid)
Tasks: 1 (limit: 9487)
CGroup: /system.slice/jhi.service
└─45749 /usr/local/sbin/jhid
Sep 01 08:23:37 PigramUbuntu1804 systemd[1]: Starting Intel Dynamic Application Loader Host Interface (JHI)...
Sep 01 08:23:37 PigramUbuntu1804 jhi[45749]: --> jhi start
Sep 01 08:23:37 PigramUbuntu1804 jhi[45749]: <-- jhi start
Sep 01 08:23:37 PigramUbuntu1804 systemd[1]: Started Intel Dynamic Application Loader Host Interface (JHI).
main@PigramUbuntu1804:~/work/wind/dynamic-application-loader-host-interface/bin_linux$ ./bist
Opening Intel SD session... TEE_OpenSDSession failed. Status: TEE_STATUS_NO_FW_CONNECTION
main@PigramUbuntu1804:~/work/wind/dynamic-application-loader-host-interface/bin_linux$ sudo service jhi status
● jhi.service - Intel Dynamic Application Loader Host Interface (JHI)
Loaded: loaded (/lib/systemd/system/jhi.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2019-09-01 08:23:37 UTC; 16s ago
Main PID: 45749 (jhid)
Tasks: 1 (limit: 9487)
CGroup: /system.slice/jhi.service
└─45749 /usr/local/sbin/jhid
Sep 01 08:23:37 PigramUbuntu1804 systemd[1]: Starting Intel Dynamic Application Loader Host Interface (JHI)...
Sep 01 08:23:37 PigramUbuntu1804 jhi[45749]: --> jhi start
Sep 01 08:23:37 PigramUbuntu1804 jhi[45749]: <-- jhi start
Sep 01 08:23:37 PigramUbuntu1804 systemd[1]: Started Intel Dynamic Application Loader Host Interface (JHI).
Sep 01 08:23:49 PigramUbuntu1804 jhi[45749]: JHI service release prints are enabled
Sep 01 08:23:49 PigramUbuntu1804 jhi[45749]: AppletsManager::discoverVmType(), Couldn't connect to either BHv1 or BHv2.
Sep 01 08:23:49 PigramUbuntu1804 jhi[45749]: Error: discoverVmType() failed
Sep 01 08:23:49 PigramUbuntu1804 jhi[45749]: JHI init failed
main@PigramUbuntu1804:~/work/wind/dynamic-application-loader-host-interface/bin_linux$ uname -a
Linux PigramUbuntu1804 5.0.0-1014-azure #14~18.04.1-Ubuntu SMP Fri Aug 2 17:17:57 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
the Azure VM has /dev/sgx but lspci prompts nothing, anything I missed before running bist?
Thank you and kindest regards,
Main C
Latest download produces this error on Ubuntu 16.04
home/mpdemo/dynamic-application-loader-host-interface/service/LinuxService.cpp:39:31: fatal error: systemd/sd-daemon.h: No such file or directory
compilation terminated.
CMakeFiles/jhid.dir/build.make:470: recipe for target 'CMakeFiles/jhid.dir/service/LinuxService.cpp.o' failed
make[2]: *** [CMakeFiles/jhid.dir/service/LinuxService.cpp.o] Error 1
CMakeFiles/Makefile2:252: recipe for target 'CMakeFiles/jhid.dir/all' failed
make[1]: *** [CMakeFiles/jhid.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
The JHI service appears to start fine but once I restart AESMD I get the following errors related to JHI:
systemd[1]: Started Intel Dynamic Application Loader Host Interface (JHI).
(...)
jhi[9634]: Error: discoverVmType() failed
jhi[9634]: JHI init failed
jhi[9634]: JHI service release prints are enabled
jhi[9634]: AppletsManager::discoverVmType(), Couldn't connect to either BHv1 or BHv2.
jhi[9634]: Error: discoverVmType() failed
jhi[9634]: JHI init failed
jhi[9634]: JHI service release prints are enabled
jhi[9634]: AppletsManager::discoverVmType(), Couldn't connect to either BHv1 or BHv2.
jhi[9634]: Error: discoverVmType() failed
jhi[9634]: JHI init failed
(...)
jhi[9678]: JHI init at server side failed
jhi[9678]: JHI init failed. Status: 768
aesm_service[9678]: [ADMIN]Platform Services initializing
aesm_service[9678]: [ADMIN]Platform Services initialization failed due to DAL error
The OS is Ubuntu 16.04.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.