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 vtpm-td on Bare Metal (Intel TDX) or Using Dockerfile #261

Open
syambabu8k opened this issue Nov 18, 2024 · 0 comments
Open

Comments

@syambabu8k
Copy link

Encountered an issue while trying to build the vtpm-td project on a bare-metal machine (Intel TDX) as well as inside the provided Docker environment. The build fails with the following error:

Compiling td-shim-interface v0.1.0 (/root/vtpm-td/deps/td-shim/td-shim-interface)
Compiling cc-measurement v0.1.0 (/root/vtpm-td/deps/td-shim/cc-measurement)
Compiling td-layout v0.1.0 (/root/vtpm-td/deps/td-shim/td-layout)
Compiling td-shim v0.1.0 (/root/vtpm-td/deps/td-shim/td-shim)
Compiling protocol v0.1.0 (/root/vtpm-td/src/protocol)
Compiling td-paging v0.1.0 (/root/vtpm-td/deps/td-shim/td-paging)
warning: unused imports: PKCS1, PSS
--> deps/spdm-rs/external/ring/src/rsa/padding.rs:21:13
|
21 | pkcs1::{PKCS1, RSA_PKCS1_SHA256, RSA_PKCS1_SHA384, RSA_PKCS1_SHA512},
| ^^^^^
22 | pss::{PSS, RSA_PSS_SHA256, RSA_PSS_SHA384, RSA_PSS_SHA512},
| ^^^
|
= note: #[warn(unused_imports)] on by default

Compiling webpki v0.22.4 (/root/vtpm-td/deps/spdm-rs/external/webpki)
warning: unused import: CONSTRUCTED
--> deps/spdm-rs/external/webpki/src/der.rs:17:24
|
17 | der::{nested, Tag, CONSTRUCTED},
| ^^^^^^^^^^^
|
= note: #[warn(unused_imports)] on by default

Compiling spdmlib v0.1.0 (/root/vtpm-td/deps/spdm-rs/spdmlib)
Compiling td-payload v0.1.0 (/root/vtpm-td/deps/td-shim/td-payload)
warning: ring (lib) generated 1 warning (run cargo fix --lib -p ring to apply 1 suggestion)
warning: webpki (lib) generated 1 warning (run cargo fix --lib -p webpki to apply 1 suggestion)
Compiling eventlog v0.1.0 (/root/vtpm-td/src/eventlog)
Compiling tdtunnel v0.1.0 (/root/vtpm-td/src/tdtunnel)
warning: unused import: alloc::boxed::Box
--> deps/spdm-rs/spdmlib/src/common/mod.rs:14:5
|
14 | use alloc::boxed::Box;
| ^^^^^^^^^^^^^^^^^
|
= note: #[warn(unused_imports)] on by default

warning: the feature async_fn_in_trait has been stable since 1.75.0 and no longer requires an attribute to enable
--> deps/spdm-rs/spdmlib/src/lib.rs:9:12
|
9 | #![feature(async_fn_in_trait)]
| ^^^^^^^^^^^^^^^^^
|
= note: #[warn(stable_features)] on by default

Compiling crypto v0.1.0 (/root/vtpm-td/src/crypto)
Compiling spdm v0.1.0 (/root/vtpm-td/src/spdm)
warning: spdmlib (lib) generated 2 warnings (run cargo fix --lib -p spdmlib to apply 1 suggestion)
error: could not find native static library migtd_attest, perhaps an -L flag is missing?

error: could not compile attestation (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...

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

1 participant