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

Update GSC with Gramine's new SGX Driver Requirements #227

Closed
anjalirai-intel opened this issue Nov 25, 2024 · 1 comment · Fixed by #228
Closed

Update GSC with Gramine's new SGX Driver Requirements #227

anjalirai-intel opened this issue Nov 25, 2024 · 1 comment · Fixed by #228

Comments

@anjalirai-intel
Copy link
Contributor

Description of the problem

As part of the Remove support for OOT (out-of-tree) SGX driver commit in the Gramine master branch, the options -Dsgx_driver, -Dsgx_driver_include_path, and -Dsgx_driver_device have been removed. Similar changes should be backported into GSC as well. Currently, workloads are failing during the Meson build with the error Unknown options: "sgx_driver, sgx_driver_include_path".`

Comments from Gramine PR

Since Gramine v1.9, we only support upstream, in-kernel driver and the
``-Dsgx_driver`` option, as well as associated ``-Dsgx_driver_include_path`` and
``-Dsgx_driver_device`` options, are gone.

Steps to reproduce

https://github.com/gramineproject/gsc/tree/master/test#building-sample-images

Expected results

GSC master should be fully compatible with Gramine master and kept up-to-date. Any significant changes made in Gramine that impact GSC should be updated to support Gramine and the new build requirements.

Actual results

Step 9/9 : RUN cd /gramine     && meson setup build/ --prefix="/gramine/meson_build_output"        --buildtype=release        -Ddirect=enabled -Dsgx=enabled                        -Dsgx_driver=upstream -Dsgx_driver_include_path=/gramine/driver             && ninja -C build     && ninja -C build install

 ---> Running in 4517253c192f
The Meson build system
Version: 1.6.0
Source dir: /gramine
Build dir: /gramine/build
Build type: native build

meson.build:5:0: ERROR: Unknown options: "sgx_driver, sgx_driver_include_path"

A full log can be found at /gramine/build/meson-logs/meson-log.txt
Failed to build a base-Gramine Docker image `bash20.04`.
@adarshan-intel
Copy link
Contributor

Please see #228

@mkow mkow closed this as completed in #228 Dec 22, 2024
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

Successfully merging a pull request may close this issue.

2 participants