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

Question: ERROR [builder 41/48] RUN cmake3 -DCMAKE_PREFIX_PATH=/usr -DCMAKE_INSTALL_PREFIX=/usr -GNinja -S aws-nitro-enclaves-sdk-c -B aws-nitro-enclaves-sdk-c/ #669

Closed
Sivakajan-tech opened this issue Mar 3, 2025 · 1 comment

Comments

@Sivakajan-tech
Copy link

I am setting up a Security Enclaved instance in my machine. I created a Amazon Linux 2 AMI with c5.xlarge instance according to the document, officially provided. -> https://github.com/aws/aws-nitro-enclaves-sdk-c/blob/main/docs/kmstool.md

I tried every steps specified in the document. But when I run the docker build command,
docker build --target kmstool-instance -t kmstool-instance .,
It gives an error,

 => CACHED [builder 39/48] RUN mv aws-nitro-enclaves-nsm-api/target/release/nsm.h /usr/include                                                               0.0s
 => [builder 40/48] COPY . aws-nitro-enclaves-sdk-c                                                                                                          1.3s
 => ERROR [builder 41/48] RUN cmake3 -DCMAKE_PREFIX_PATH=/usr -DCMAKE_INSTALL_PREFIX=/usr -GNinja  -S aws-nitro-enclaves-sdk-c -B aws-nitro-enclaves-sdk-c/  0.2s
------
 > [builder 41/48] RUN cmake3 -DCMAKE_PREFIX_PATH=/usr -DCMAKE_INSTALL_PREFIX=/usr -GNinja      -S aws-nitro-enclaves-sdk-c -B aws-nitro-enclaves-sdk-c/build:
0.195 CMake Error: The source directory "/tmp/crt-builder/aws-nitro-enclaves-sdk-c" does not appear to contain CMakeLists.txt.
0.195 Specify --help for usage, or press the help button on the CMake GUI.
------
Dockerfile:71
--------------------
  70 |     COPY . aws-nitro-enclaves-sdk-c
  71 | >>> RUN cmake3 -DCMAKE_PREFIX_PATH=/usr -DCMAKE_INSTALL_PREFIX=/usr -GNinja \
  72 | >>>      -S aws-nitro-enclaves-sdk-c -B aws-nitro-enclaves-sdk-c/build
  73 |     RUN cmake3 --build aws-nitro-enclaves-sdk-c/build --parallel $(nproc) --target install
--------------------
ERROR: failed to solve: process "/bin/sh -c cmake3 -DCMAKE_PREFIX_PATH=/usr -DCMAKE_INSTALL_PREFIX=/usr -GNinja \t-S aws-nitro-enclaves-sdk-c -B aws-nitro-enclaves-sdk-c/build" did not complete successfully: exit code: 1

Please give me a way to solve this!!!

@Sivakajan-tech
Copy link
Author

I can close this issue. I need to go inside the aws-nitro-enclaves-sdk-c directory and execute the docker command.

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