以下配置已经在ubuntu 18.04上测试通过, ubuntu16.04以为很多默认so库版本过低(比如glibc, gcc等),需求额外做一些事情, 所有非常建议使用ubuntu18.04 作为编译环境。
Graphene with out SGX
Clone the Graphene Repository:
git clone https://github.com/oscarlab/graphene.git
Build Graphene:
sudo apt-get install -y build-essential autoconf gawk bison
cd graphene
make
Build and Run helloworld:
cd LibOS/shim/test/native
make
./pal_loader helloworld
Test LMBench Application:
cd ../../../../Examples/lmbench
make
cd lmbench-2.5/bin/linux
./pal_loader lat_syscall null
./pal_loader lat_syscall open
./pal_loader