Comments (10)
thanks @jialez0 , I will try to find a host with a Ubuntu22.04 and check it again, pls let this issue open for couple of days.
from kbs.
seems like the server doesn't have the feature of tdx supported, anyway for us to disable the feature? I don't think tdx should be a must-have for only building the AS and kbs.
from kbs.
@chendave Maybe you can try to update libclang version and try to make again?
from kbs.
@chendave In fact, the platform for compiling and running KBS and AS does not need to support any TEE feature, but only needs to install relevant dependencies. With regard to the problems caused by the step of install dependencies, we are planning to provide Dockerfile to make it easier for users to deploy KBS and AS.
from kbs.
@jialez0 thanks for the quick response!
but which version is the minimal required, I tried both 1:6.0-41~exp4
and 1:6.0-41~exp5~ubuntu1
on two different x86 server, hit the same issue,
# dpkg -l libclang-dev
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==================-==============-==============-=========================================
ii libclang-dev 1:6.0-41~exp5~ amd64 clang library - Development package
Here is all I have on UBUNTU18.04,
# apt-cache policy libclang-dev
libclang-dev:
Installed: 1:6.0-41~exp5~ubuntu1
Candidate: 1:6.0-41~exp5~ubuntu1
Version table:
*** 1:6.0-41~exp5~ubuntu1 500
500 http://hk.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
100 /var/lib/dpkg/status
1:6.0-41~exp4 500
500 http://hk.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
from kbs.
@chendave Hi, I have take a quick test:
First, I start a brand-new Ubuntu22.04 container:
docker run -it --name=kbs-complie-test ubuntu:22.04
Then I run the following commands in the container to build KBS and AS:
cd /root
sudo apt-get update
sudo apt-get install -y libssl-dev pkg-config curl git protobuf-compiler libprotobuf-dev gnupg make cmake clang libclang-dev golang
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"
sudo curl -L https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key | sudo apt-key add -
sudo echo 'deb [arch=amd64] https://download.01.org/intel-sgx/sgx_repo/ubuntu focal main' | sudo tee /etc/apt/sources.list.d/intel-sgx.list
sudo apt-get update
sudo apt-get install -y libtdx-attest-dev libsgx-dcap-quote-verify-dev
cd /root
git clone https://github.com/confidential-containers/kbs
cd kbs
make
cd /root
git clone https://github.com/confidential-containers/attestation-service
cd attestation-service
make
And I haven't encountered the problems you have encountered.
from kbs.
@chendave Here is my clang version:
apt-cache policy libclang-dev
libclang-dev:
Installed: 1:14.0-55~exp2
Candidate: 1:14.0-55~exp2
Version table:
*** 1:14.0-55~exp2 500
500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
100 /var/lib/dpkg/status
from kbs.
@chendave I think the reason for this issue may be that the OS version (ubuntu18.04) you are using is old, resulting in the incompatibility between the installed libclang-dev
version and the dependency of AS.
from kbs.
@chendave This issue may can help you: kata-containers/kata-containers#6365 (comment)
from kbs.
@jialez0 thanks!
the issue has been fixed, something I have done on my desktop,
- upgrade system from 18.04 to 20.04
- reinstall all the packages by:
sudo apt-get update
sudo apt-get install -y libssl-dev pkg-config curl git protobuf-compiler libprotobuf-dev gnupg make cmake clang libclang-dev golang
- then
make kbs
again.
from kbs.
Related Issues (20)
- KBS: Add a `Delete` method to /resource/{repository}/{type}/{tag} HOT 5
- AS: accessing configuration from verifiers HOT 3
- AS/Verifier: Support quote verification in multi-thread in tdx under high concurrent load HOT 1
- Rename Container Image Build Process from gRPC to RESTful
- kbs: Add support for configurable policy
- Using go instead of rust to implement trustee ? HOT 3
- AS: PolicyEngine should differentiate user and internal errors
- AS & RVPS | Proposal for an attestation applied policy format HOT 7
- Extend KBS to provide the resources required to create an encrypted overlay network HOT 13
- Release cadence? HOT 4
- AS: tdx-quote verification unit test fails HOT 5
- Reference values in evidence bundle HOT 6
- ci: IBM s390x image pushing failed
- Dockerfile: optimize the KBS image size
- kbs build warning when no `as` features are enabled
- kubernetes: Support for https key+cert in kustomize deployment
- `zero_repeat_side_effects` with `sgx_quote3_t`
- Add Choi as maintainer HOT 2
- KBS Cluster Start-Up documentation is outdated HOT 2
- Verifier bails instead of automatically fetching certificate from KDS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kbs.