Code Monkey home page Code Monkey logo

Comments (10)

chendave avatar chendave commented on August 16, 2024 1

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.

chendave avatar chendave commented on August 16, 2024

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.

jialez0 avatar jialez0 commented on August 16, 2024

@chendave Maybe you can try to update libclang version and try to make again?

from kbs.

jialez0 avatar jialez0 commented on August 16, 2024

@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.

chendave avatar chendave commented on August 16, 2024

@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.

jialez0 avatar jialez0 commented on August 16, 2024

@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.

jialez0 avatar jialez0 commented on August 16, 2024

@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.

jialez0 avatar jialez0 commented on August 16, 2024

@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.

jialez0 avatar jialez0 commented on August 16, 2024

@chendave This issue may can help you: kata-containers/kata-containers#6365 (comment)

from kbs.

chendave avatar chendave commented on August 16, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.