ccc-certifier-framework / certifier-framework-for-confidential-computing

The Confidential Computing Certifier Framework consists of a client API called the Certifier-API and server-based policy evaluation called the Certifier Service. It simplifies and unifies programming and operations support for multi-vendor Confidential Computing platforms by providing support for scalable, policy-driven trust management including
Apache License 2.0
52 stars 16 forks source link

MacOSX: Support building Certifier Framework (library and Certifier tests) on Mac/OSX. #177

Open gapisback opened 1 year ago

gapisback commented 1 year ago

The Certifier Framework code base only partially builds on MacOSX. This requires that the right versions of Google protocol buffers, protoc, and other libraries be installed on Mac.

Currently, on /main, using Cellar/protobuf@3/3.20.3 version of protobuf, we get some ways in the build, but then fails as shown below [1].

Under this issue, resolve all s/w components' version-levels needed to build-and-test Certifier code base on Mac.

[1] Build failure:

compiling certifier_proofs.cc
g++ -I ../include -I/usr/local/opt/openssl@1.1/include/ -I ./sev-snp -g -Wall -std=c++11 -Wno-unused-variable -D X64 -Wno-deprecated-declarations -O3 -D SEV_SNP  -o ./certifier_proofs.o -c certifier_proofs.cc
In file included from certifier_proofs.cc:23:
./sev-snp/attestation.h:7:12: fatal error: 'linux/types.h' file not found
#  include <linux/types.h>
           ^~~~~~~~~~~~~~~
1 error generated.
make: *** [certifier_proofs.o] Error 1
gapisback commented 2 days ago

9/25/2024: Revisited w/ team and new members who joined the CFCC monthly meeting.

No immediate push for this MacOSX platform, but will be nice to have this working so it saves new users the extra effort / cost of deploying a Linux env somewhere else on the Cloud.