Git Product home page Git Product logo

Comments (9)

Cam2337 avatar Cam2337 commented on May 8, 2024 1

@jlogelin, @wobushizhanghua I believe that this is a separate issue from the previous errors seen here for macOS. It looks like the Docker image was broken by an upstream change to the debian:bullseye tag from a few hours ago.

Could you try and change:

FROM debian:bullseye

to:

FROM debian:bullseye-20210511

in the Dockerfile and try building again? This should pin to the previously-working parent image.

from fully-homomorphic-encryption.

dibakch avatar dibakch commented on May 8, 2024

Thanks for reporting! What was the command that you were running?

from fully-homomorphic-encryption.

s-naveen avatar s-naveen commented on May 8, 2024

Thanks for reporting! What was the command that you were running?

docker build -t google-fhe-transpiler .

I just followed the steps mentioned in the readme.

from fully-homomorphic-encryption.

dibakch avatar dibakch commented on May 8, 2024

Just out of curiosity: What is the max memory that you assign to docker? You can find this in Preferences -> Resources -> Advanced as far as I can tell from this screenshot:
screenshot

The default for Docker on Mac seems to be 2 GB, which on my Linux workstation is not enough to build LLVM (after adding --memory=2g LLVM failed to compile). Could you set this to all memory that is available and try again?

Thanks :)

from fully-homomorphic-encryption.

10d9e avatar 10d9e commented on May 8, 2024

I can confirm there is an error with the docker installation on a mac, even after I up my memory from 2g to 6g.

% docker build -t google-fhe-transpiler .
[+] Building 19.1s (13/13) FINISHED                                                                                                                                                              
 => [internal] load build definition from Dockerfile                                                                                                                                        0.0s
 => => transferring dockerfile: 37B                                                                                                                                                         0.0s
 => [internal] load .dockerignore                                                                                                                                                           0.0s
 => => transferring context: 2B                                                                                                                                                             0.0s
 => [internal] load metadata for docker.io/library/debian:bullseye                                                                                                                          1.0s
 => [auth] library/debian:pull token for registry-1.docker.io                                                                                                                               0.0s
 => [1/8] FROM docker.io/library/debian:bullseye@sha256:f5d8b0737991a13284b86adb3e6605f41794fcdfd5d0f0b36939f7e30b323358                                                                    0.0s
 => [internal] load build context                                                                                                                                                           0.0s
 => => transferring context: 12.63kB                                                                                                                                                        0.0s
 => CACHED [2/8] RUN apt-get update && apt-get install -y  gcc  git  libtinfo5  python  python3  python3-pip  wget                                                                          0.0s
 => CACHED [3/8] RUN wget -O bazelisk "https://github.com/bazelbuild/bazelisk/releases/download/v1.8.0/bazelisk-linux-amd64"  && test "cde5b2769d0633bb4fdc3e41800a1b2c867b68bd724b1dd2325  0.0s
 => CACHED [4/8] WORKDIR /usr/src/fhe/                                                                                                                                                      0.0s
 => CACHED [5/8] COPY .bazelversion .                                                                                                                                                       0.0s
 => CACHED [6/8] RUN bazelisk version                                                                                                                                                       0.0s
 => CACHED [7/8] COPY . .                                                                                                                                                                   0.0s
 => ERROR [8/8] RUN bazelisk build ...                                                                                                                                                     18.0s
------                                                                                                                                                                                           
 > [8/8] RUN bazelisk build ...:                                                                                                                                                                 
#13 0.320 2021/06/23 02:37:42 Downloading https://releases.bazel.build/4.0.0/release/bazel-4.0.0-linux-x86_64...                                                                                 
#13 10.49 Extracting Bazel installation...                                                                                                                                                       
#13 11.92 Starting local Bazel server and connecting to it...                                                                                                                                    
#13 13.87 Loading:                                                                                                                                                                               
#13 13.88 Loading: 0 packages loaded
#13 14.88 Loading: 0 packages loaded
#13 15.89 Loading: 0 packages loaded
#13 17.06 Loading: 0 packages loaded
#13 17.79 INFO: Repository llvm_toolchain instantiated at:
#13 17.79   /usr/src/fhe/WORKSPACE:59:15: in <toplevel>
#13 17.79 Repository rule llvm_toolchain defined at:
#13 17.79   /root/.cache/bazel/_bazel_root/595596dc4dacd40e54f4e8ca596c8a84/external/com_grail_bazel_toolchain/toolchain/rules.bzl:24:33: in <toplevel>
#13 17.79 ERROR: An error occurred during the fetch of repository 'llvm_toolchain':
#13 17.79    Traceback (most recent call last):
#13 17.79 	File "/root/.cache/bazel/_bazel_root/595596dc4dacd40e54f4e8ca596c8a84/external/com_grail_bazel_toolchain/toolchain/internal/configure.bzl", line 110, column 37, in llvm_toolchain_impl
#13 17.79 		_download_llvm_preconfigured(rctx)
#13 17.79 	File "/root/.cache/bazel/_bazel_root/595596dc4dacd40e54f4e8ca596c8a84/external/com_grail_bazel_toolchain/toolchain/internal/llvm_distributions.bzl", line 169, column 17, in download_llvm_preconfigured
#13 17.79 		fail("Failed to detect host OS version: \n%s\n%s" % (exec_result.stdout, exec_result.stderr))
#13 17.79 Error in fail: Failed to detect host OS version: 
#13 17.79 
#13 17.79 Unsupported linux distribution and version: debian, 11
#13 17.80 ERROR: Error fetching repository: Traceback (most recent call last):
#13 17.80 	File "/root/.cache/bazel/_bazel_root/595596dc4dacd40e54f4e8ca596c8a84/external/com_grail_bazel_toolchain/toolchain/internal/configure.bzl", line 110, column 37, in llvm_toolchain_impl
#13 17.80 		_download_llvm_preconfigured(rctx)
#13 17.80 	File "/root/.cache/bazel/_bazel_root/595596dc4dacd40e54f4e8ca596c8a84/external/com_grail_bazel_toolchain/toolchain/internal/llvm_distributions.bzl", line 169, column 17, in download_llvm_preconfigured
#13 17.80 		fail("Failed to detect host OS version: \n%s\n%s" % (exec_result.stdout, exec_result.stderr))
#13 17.80 Error in fail: Failed to detect host OS version: 
#13 17.80 
#13 17.80 Unsupported linux distribution and version: debian, 11
#13 17.82 ERROR: no such package '@llvm_toolchain//': Failed to detect host OS version: 
#13 17.82 
#13 17.82 Unsupported linux distribution and version: debian, 11
#13 17.83 INFO: Elapsed time: 7.285s
#13 17.83 INFO: 0 processes.
#13 17.83 FAILED: Build did NOT complete successfully (0 packages loaded)
#13 17.84 FAILED: Build did NOT complete successfully (0 packages loaded)
------
executor failed running [/bin/sh -c bazelisk build ...]: exit code: 1

from fully-homomorphic-encryption.

wobushizhanghua avatar wobushizhanghua commented on May 8, 2024

I can confirm there is an error with the docker installation on a mac, even after I up my memory from 2g to 6g.

% docker build -t google-fhe-transpiler .
[+] Building 19.1s (13/13) FINISHED                                                                                                                                                              
 => [internal] load build definition from Dockerfile                                                                                                                                        0.0s
 => => transferring dockerfile: 37B                                                                                                                                                         0.0s
 => [internal] load .dockerignore                                                                                                                                                           0.0s
 => => transferring context: 2B                                                                                                                                                             0.0s
 => [internal] load metadata for docker.io/library/debian:bullseye                                                                                                                          1.0s
 => [auth] library/debian:pull token for registry-1.docker.io                                                                                                                               0.0s
 => [1/8] FROM docker.io/library/debian:bullseye@sha256:f5d8b0737991a13284b86adb3e6605f41794fcdfd5d0f0b36939f7e30b323358                                                                    0.0s
 => [internal] load build context                                                                                                                                                           0.0s
 => => transferring context: 12.63kB                                                                                                                                                        0.0s
 => CACHED [2/8] RUN apt-get update && apt-get install -y  gcc  git  libtinfo5  python  python3  python3-pip  wget                                                                          0.0s
 => CACHED [3/8] RUN wget -O bazelisk "https://github.com/bazelbuild/bazelisk/releases/download/v1.8.0/bazelisk-linux-amd64"  && test "cde5b2769d0633bb4fdc3e41800a1b2c867b68bd724b1dd2325  0.0s
 => CACHED [4/8] WORKDIR /usr/src/fhe/                                                                                                                                                      0.0s
 => CACHED [5/8] COPY .bazelversion .                                                                                                                                                       0.0s
 => CACHED [6/8] RUN bazelisk version                                                                                                                                                       0.0s
 => CACHED [7/8] COPY . .                                                                                                                                                                   0.0s
 => ERROR [8/8] RUN bazelisk build ...                                                                                                                                                     18.0s
------                                                                                                                                                                                           
 > [8/8] RUN bazelisk build ...:                                                                                                                                                                 
#13 0.320 2021/06/23 02:37:42 Downloading https://releases.bazel.build/4.0.0/release/bazel-4.0.0-linux-x86_64...                                                                                 
#13 10.49 Extracting Bazel installation...                                                                                                                                                       
#13 11.92 Starting local Bazel server and connecting to it...                                                                                                                                    
#13 13.87 Loading:                                                                                                                                                                               
#13 13.88 Loading: 0 packages loaded
#13 14.88 Loading: 0 packages loaded
#13 15.89 Loading: 0 packages loaded
#13 17.06 Loading: 0 packages loaded
#13 17.79 INFO: Repository llvm_toolchain instantiated at:
#13 17.79   /usr/src/fhe/WORKSPACE:59:15: in <toplevel>
#13 17.79 Repository rule llvm_toolchain defined at:
#13 17.79   /root/.cache/bazel/_bazel_root/595596dc4dacd40e54f4e8ca596c8a84/external/com_grail_bazel_toolchain/toolchain/rules.bzl:24:33: in <toplevel>
#13 17.79 ERROR: An error occurred during the fetch of repository 'llvm_toolchain':
#13 17.79    Traceback (most recent call last):
#13 17.79 	File "/root/.cache/bazel/_bazel_root/595596dc4dacd40e54f4e8ca596c8a84/external/com_grail_bazel_toolchain/toolchain/internal/configure.bzl", line 110, column 37, in llvm_toolchain_impl
#13 17.79 		_download_llvm_preconfigured(rctx)
#13 17.79 	File "/root/.cache/bazel/_bazel_root/595596dc4dacd40e54f4e8ca596c8a84/external/com_grail_bazel_toolchain/toolchain/internal/llvm_distributions.bzl", line 169, column 17, in download_llvm_preconfigured
#13 17.79 		fail("Failed to detect host OS version: \n%s\n%s" % (exec_result.stdout, exec_result.stderr))
#13 17.79 Error in fail: Failed to detect host OS version: 
#13 17.79 
#13 17.79 Unsupported linux distribution and version: debian, 11
#13 17.80 ERROR: Error fetching repository: Traceback (most recent call last):
#13 17.80 	File "/root/.cache/bazel/_bazel_root/595596dc4dacd40e54f4e8ca596c8a84/external/com_grail_bazel_toolchain/toolchain/internal/configure.bzl", line 110, column 37, in llvm_toolchain_impl
#13 17.80 		_download_llvm_preconfigured(rctx)
#13 17.80 	File "/root/.cache/bazel/_bazel_root/595596dc4dacd40e54f4e8ca596c8a84/external/com_grail_bazel_toolchain/toolchain/internal/llvm_distributions.bzl", line 169, column 17, in download_llvm_preconfigured
#13 17.80 		fail("Failed to detect host OS version: \n%s\n%s" % (exec_result.stdout, exec_result.stderr))
#13 17.80 Error in fail: Failed to detect host OS version: 
#13 17.80 
#13 17.80 Unsupported linux distribution and version: debian, 11
#13 17.82 ERROR: no such package '@llvm_toolchain//': Failed to detect host OS version: 
#13 17.82 
#13 17.82 Unsupported linux distribution and version: debian, 11
#13 17.83 INFO: Elapsed time: 7.285s
#13 17.83 INFO: 0 processes.
#13 17.83 FAILED: Build did NOT complete successfully (0 packages loaded)
#13 17.84 FAILED: Build did NOT complete successfully (0 packages loaded)
------
executor failed running [/bin/sh -c bazelisk build ...]: exit code: 1

I think it's not only an error on Mac OS but an error in the docker file.
get the same problem in Linux:

Step 8/8 : RUN bazelisk build ...
 ---> Running in 265ebd50c188
2021/06/23 03:03:42 Downloading https://releases.bazel.build/4.0.0/release/bazel-4.0.0-linux-x86_64...
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: Repository llvm_toolchain instantiated at:
  /usr/src/fhe/WORKSPACE:59:15: in <toplevel>
Repository rule llvm_toolchain defined at:
  /root/.cache/bazel/_bazel_root/595596dc4dacd40e54f4e8ca596c8a84/external/com_grail_bazel_toolchain/toolchain/rules.bzl:24:33: in <toplevel>
ERROR: An error occurred during the fetch of repository 'llvm_toolchain':
   Traceback (most recent call last):
        File "/root/.cache/bazel/_bazel_root/595596dc4dacd40e54f4e8ca596c8a84/external/com_grail_bazel_toolchain/toolchain/internal/configure.bzl", line 110, column 37, in llvm_toolchain_impl
                _download_llvm_preconfigured(rctx)
        File "/root/.cache/bazel/_bazel_root/595596dc4dacd40e54f4e8ca596c8a84/external/com_grail_bazel_toolchain/toolchain/internal/llvm_distributions.bzl", line 169, column 17, in download_llvm_preconfigured
                fail("Failed to detect host OS version: \n%s\n%s" % (exec_result.stdout, exec_result.stderr))
Error in fail: Failed to detect host OS version: 

Unsupported linux distribution and version: debian, 11
ERROR: Error fetching repository: Traceback (most recent call last):
        File "/root/.cache/bazel/_bazel_root/595596dc4dacd40e54f4e8ca596c8a84/external/com_grail_bazel_toolchain/toolchain/internal/configure.bzl", line 110, column 37, in llvm_toolchain_impl

from fully-homomorphic-encryption.

s-naveen avatar s-naveen commented on May 8, 2024

@dibakch
Yes thank you that fixed the problem. Increased from 2GB to 8GB did it.

from fully-homomorphic-encryption.

dibakch avatar dibakch commented on May 8, 2024

Thanks for confirming! In our tests, it worked fine with 8 GB memory and 1 GB swap.

We are preparing an update for the documentation.

from fully-homomorphic-encryption.

ThISavage avatar ThISavage commented on May 8, 2024

Guys, I have a bug in the current version
PS. OS Windows
error
However, when I change the version to debian:bullseye-20210511 в Dockerfile it's work
work

from fully-homomorphic-encryption.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.