fully-homomorphic-encryption icon indicating copy to clipboard operation
fully-homomorphic-encryption copied to clipboard

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

Open Deepansharora27 opened this issue 3 years ago • 1 comments
trafficstars

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)

Deepansharora27 avatar Sep 25 '22 10:09 Deepansharora27

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 avatar Sep 26 '22 20:09 j2kun

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

j2kun avatar Nov 23 '22 21:11 j2kun