mc2-project / mc2-project/secure-aggregation

fatal error: mbedtls/config.h: no such file or dectory.

Open
#20 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
6
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Hello, I used sudo apt install libmbedtls-dev, but why is it still showing that there is no header file? Is it a version issue? If so, could you please provide me with this version.
detals:
(base) ethtest@ethtest:~/secure-aggregation-master/server/build$ make
[ 7%] Building CXX object enclave/CMakeFiles/enclave.dir/ecalls.cpp.o
In file included from /home/ethtest/secure-aggregation-master/server/../common/encryption/encrypt.h:4,
from /home/ethtest/secure-aggregation-master/server/enclave/ecalls.cpp:15:
/home/ethtest/secure-aggregation-master/server/../common/encryption/crypto.h:13:10: fatal error: mbedtls/config.h: no such file or dectory.
13 | #include "mbedtls/config.h"
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [enclave/CMakeFiles/enclave.dir/build.make:73:enclave/CMakeFiles/enclave.dir/ecalls.cpp.o] error 1
make[1]: *** [CMakeFiles/Makefile2:979:enclave/CMakeFiles/enclave.dir/all] error 2
make: *** [Makefile:95:all] error 2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure from server/build with make, then inspect common/encryption/crypto.h and the enclave/ecalls.cpp build target referenced in the error. Check how the installed mbedtls package exposes mbedtls/config.h and how this target discovers it. Done means the header is found and make proceeds past enclave/ecalls.cpp.o.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.