google / fully-homomorphic-encryption

An FHE compiler for C++
Apache License 2.0
3.5k stars 252 forks source link

Error while building the Canonical Example supplied with the Project (MacOS Catalina Version: 10.15.7) #28

Closed Deepansharora27 closed 1 year ago

Deepansharora27 commented 1 year ago

Hi, While I was trying to build the Canonical Calculator Code Sample supplied with the Project, I am consistently facing this error:

/lib/findprog-in.c:137:25: note: did you mean 'access'?
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/unistd.h:431:6: note: 'access' declared here
int      access(const char *, int);
         ^
./lib/findprog-in.c:211:21: error: implicit declaration of function 'eaccess' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                if (eaccess (progpathname, X_OK) == 0)
                    ^
2 errors generated.
_____ END BUILD LOGS _____
rules_foreign_cc: Build wrapper script location: bazel-out/darwin-opt-exec-2B5CBBC6/bin/external/rules_foreign_cc/toolchains/make_tool_foreign_cc/wrapper_build_script.sh
rules_foreign_cc: Build script location: bazel-out/darwin-opt-exec-2B5CBBC6/bin/external/rules_foreign_cc/toolchains/make_tool_foreign_cc/build_script.sh
rules_foreign_cc: Build log location: bazel-out/darwin-opt-exec-2B5CBBC6/bin/external/rules_foreign_cc/toolchains/make_tool_foreign_cc/BootstrapGNUMake.log

Target //transpiler/examples/calculator:calculator_openfhe_testbench failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 85.570s, Critical Path: 50.01s
INFO: 72 processes: 9 internal, 63 darwin-sandbox.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully

Operating System : macOS Catalina (Version 10.15.7)

j2kun commented 1 year ago

It looks like a system-specific issue with your C compiler (it is compiling the dependent C and C++ libraries from source), but I can't tell for sure because I can't see what sub-command is being built. Can you try re-running it with --verbose_failures? We can narrow it down to a specific problematic dependency.

j2kun commented 1 year ago

Closing due to inactivity. Feel free to reopen if you want to pick this up again!