Giter Club home page Giter Club logo

Comments (9)

anakinxc avatar anakinxc commented on June 12, 2024

Error downloading [https://github.com/facebook/zstd/releases/download/v1.5.0/zstd-1.5.0.tar.gz]

麻烦检查一下网络连接

from spu.

dage0127 avatar dage0127 commented on June 12, 2024

谢谢及时支持。更新之后出现新的错误:
(sfhost) deepl@ht-PowerEdge-R740:~/spu$ bazel build //examples/cpp/pir:generate_pir_data -c opt
DEBUG: Rule 'yacl' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1682254325 +0800"
DEBUG: Repository yacl instantiated at:
/home/haitaiwork/deepl/spu/WORKSPACE:19:9: in
/home/haitaiwork/deepl/spu/bazel/repositories.bzl:45:10: in spu_deps
/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/external/bazel_tools/tools/build_defs/repo/utils.bzl:233:18: in maybe
Repository rule git_repository defined at:
/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/external/xla/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'tf_runtime' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/external/xla/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'llvm-raw' because it already exists.
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/ed372d194f938b750855ad1297517d26f1102250.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/tensorflow/runtime/archive/0aaa6e679847a4eeb407136e7b0bcef93ec652e6.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'com_google_absl' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'pybind11_bazel' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'com_google_protobuf' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'com_google_googletest' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'com_github_grpc_grpc' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'zlib' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'rules_python' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'pybind11' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'upb' because it already exists.
WARNING: Download from https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/081771d4a0e9d7d3aa0eed2ef389fa4700dfb23e.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
DEBUG: Rule 'org_interconnection' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1669271462 +0800"
DEBUG: Repository org_interconnection instantiated at:
/home/haitaiwork/deepl/spu/WORKSPACE:28:10: in
/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/external/yacl/bazel/repositories.bzl:59:10: in yacl_deps
/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/external/bazel_tools/tools/build_defs/repo/utils.bzl:233:18: in maybe
Repository rule git_repository defined at:
/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in
INFO: Analyzed target //examples/cpp/pir:generate_pir_data (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
INFO: From Compiling llvm/lib/Support/VirtualFileSystem.cpp:
external/llvm-project/llvm/lib/Support/VirtualFileSystem.cpp: In member function 'std::unique_ptrllvm::vfs::RedirectingFileSystem::Entry llvm::vfs::RedirectingFileSystemParser::parseEntry(llvm::yaml::Node*, llvm::vfs::RedirectingFileSystem*, bool)':
external/llvm-project/llvm/lib/Support/VirtualFileSystem.cpp:1961:5: warning: 'Kind' may be used uninitialized in this function [-Wmaybe-uninitialized]
switch (Kind) {
^~~~~~
INFO: From Compiling llvm/lib/Support/UnicodeCaseFold.cpp:
external/llvm-project/llvm/lib/Support/UnicodeCaseFold.cpp:8:1: warning: multi-line comment [-Wcomment]
// utils/unicode-case-fold.py
^
INFO: From Compiling llvm/lib/Support/RISCVISAInfo.cpp:
external/llvm-project/llvm/lib/Support/RISCVISAInfo.cpp: In member function 'void llvm::RISCVISAInfo::updateMaxELen()':
external/llvm-project/llvm/lib/Support/RISCVISAInfo.cpp:1092:16: warning: 'ZveELen' may be used uninitialized in this function [-Wmaybe-uninitialized]
unsigned ZveELen;
^~~~~~~
INFO: From Compiling llvm/lib/Support/APFloat.cpp:
external/llvm-project/llvm/lib/Support/APFloat.cpp: In member function 'llvm::Expectedllvm::APFloatBase::opStatus llvm::detail::IEEEFloat::convertFromDecimalString(llvm::StringRef, llvm::APFloatBase::roundingMode)':
external/llvm-project/llvm/lib/Support/APFloat.cpp:3091:38: warning: 'D.llvm::decimalInfo::exponent' may be used uninitialized in this function [-Wmaybe-uninitialized]
fs = roundSignificandWithExponent(decSignificand, partCount,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
D.exponent, rounding_mode);
~~~~~~~~~~~~~~~~~~~~~~~~~~
external/llvm-project/llvm/lib/Support/APFloat.cpp:3027:36: warning: 'D.llvm::decimalInfo::normalizedExponent' may be used uninitialized in this function [-Wmaybe-uninitialized]
(D.normalizedExponent + 1) * 28738 <=
~~~~~~~~~~~~~~~~~~~~~~^~~~
external/llvm-project/llvm/lib/Support/APFloat.cpp:3088:16: warning: 'D.llvm::decimalInfo::lastSigDigit' may be used uninitialized in this function [-Wmaybe-uninitialized]
} while (p <= D.lastSigDigit);
~~^~~~~~~~~~~~~~~~~
external/llvm-project/llvm/lib/Support/APFloat.cpp:3047:58: warning: 'D.llvm::decimalInfo::firstSigDigit' may be used uninitialized in this function [-Wmaybe-uninitialized]
partCount = static_cast(D.lastSigDigit - D.firstSigDigit) + 1;
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
INFO: From Compiling llvm/lib/Support/YAMLParser.cpp:
external/llvm-project/llvm/lib/Support/YAMLParser.cpp: In member function 'bool llvm::yaml::Scanner::findBlockScalarIndent(unsigned int&, unsigned int, unsigned int&, bool&)':
external/llvm-project/llvm/lib/Support/YAMLParser.cpp:1637:17: warning: 'LongestAllSpaceLine' may be used uninitialized in this function [-Wmaybe-uninitialized]
setError(
~~~~~~~~^
"Leading all-spaces line must be smaller than the block indent",
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LongestAllSpaceLine);
~~~~~~~~~~~~~~~~~~~~
ERROR: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/external/com_github_microsoft_seal/BUILD.bazel:24:19: Foreign Cc - CMake: Building seal failed: (Exit 1): bash failed: error executing command /bin/bash -c bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal_foreign_cc/wrapper_build_script.sh

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
rules_foreign_cc: Build failed!
rules_foreign_cc: Keeping temp build directory and dependencies directory for debug.
rules_foreign_cc: Please note that the directories inside a sandbox are still cleaned unless you specify --sandbox_debug Bazel command line flag.
rules_foreign_cc: Printing build logs:
_____ BEGIN BUILD LOGS _____

Bazel external C/C++ Rules. Building library seal

Environment:______________
LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:/usr/local/openmpi/lib/
EXT_BUILD_ROOT=/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/sandbox/linux-sandbox/648/execroot/spulib
INSTALLDIR=/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/sandbox/linux-sandbox/648/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal
PWD=/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/sandbox/linux-sandbox/648/execroot/spulib
BUILD_TMPDIR=/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/sandbox/linux-sandbox/648/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal.build_tmpdir
TMPDIR=/tmp
EXT_BUILD_DEPS=/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/sandbox/linux-sandbox/648/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal.ext_build_deps
SHLVL=3
BUILD_LOG=bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal_foreign_cc/CMake.log
BUILD_SCRIPT=bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal_foreign_cc/build_script.sh
BUILD_WRAPPER_SCRIPT=bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal_foreign_cc/wrapper_build_script.sh
PATH=/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/sandbox/linux-sandbox/648/execroot/spulib:/home/haitaiwork/deepl/bin:/home/haitaiwork/deepl/anaconda3/envs/sfhost/bin:/home/haitaiwork/deepl/anaconda3/condabin:/root/ll/bin:/home/haitaiwork/deepl/anaconda3/bin:/home/haoxh/apache-jmeter-5.4/bin:/home/haitaiwork/data/projects/fate/common/jdk/jdk-8u345/bin:/home/haitaiwork/data/projects/fate/common/jdk/jdk-8u345/jre/bin:/home/haitaiwork/data/projects/fate/common/spark/bin:/home/haitaiwork/data/projects/fate/common/jdk/jdk-8u345/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/haitaiwork/data/projects/fate/common/hadoop/bin:/home/haitaiwork/data/projects/fate/common/hadoop/sbin:/usr/local/openmpi/bin:/usr/local/rabbitmq/rabbitmq_server-3.8.1/sbin:/home/haitaiwork/deepl/download/neo4j-community-4.2.18/bin
_=/usr/bin/env


  • cmake -DSEAL_USE_MSGSL=OFF -DSEAL_BUILD_DEPS=OFF -DSEAL_USE_ZSTD=ON -DSEAL_USE_ZLIB=OFF -DSEAL_INTEL_HEXL=ON -DSEAL_THROW_ON_TRANSPARENT_CIPHERTEXT=OFF -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_TOOLCHAIN_FILE=/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/sandbox/linux-sandbox/648/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal.build_tmpdir/crosstool_bazel.cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/sandbox/linux-sandbox/648/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal -DCMAKE_PREFIX_PATH=/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/sandbox/linux-sandbox/648/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal.ext_build_deps -DCMAKE_RANLIB= -DCMAKE_MAKE_PROGRAM=ninja -G Ninja /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/sandbox/linux-sandbox/648/execroot/spulib/external/com_github_microsoft_seal
    -- Build type (CMAKE_BUILD_TYPE): Release
    -- The CXX compiler identification is GNU 7.5.0
    -- The C compiler identification is GNU 7.5.0
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/gcc - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: /usr/bin/gcc - skipped
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Microsoft SEAL debug mode: OFF
    -- SEAL_USE_CXX17: ON
    -- SEAL_BUILD_DEPS: OFF
    -- SEAL_USE_MSGSL: OFF
    -- SEAL_USE_ZLIB: OFF
    -- SEAL_USE_ZSTD: ON
    -- SEAL_USE_INTEL_HEXL: OFF
    -- BUILD_SHARED_LIBS: OFF
    -- SEAL_THROW_ON_TRANSPARENT_CIPHERTEXT: OFF
    -- SEAL_USE_GAUSSIAN_NOISE: OFF
    -- SEAL_DEFAULT_PRNG: Blake2xb
    -- SEAL_AVOID_BRANCHING: OFF
    -- x86intrin.h - found
    -- SEAL_USE_INTRIN: ON
    -- Performing Test SEAL_MEMSET_S_FOUND
    -- Performing Test SEAL_MEMSET_S_FOUND - Failed
    -- Looking for explicit_bzero
    -- Looking for explicit_bzero - found
    -- Looking for explicit_memset
    -- Looking for explicit_memset - not found
    -- SEAL_USE_MEMSET_S: OFF
    -- SEAL_USE_EXPLICIT_BZERO: ON
    -- SEAL_USE_EXPLICIT_MEMSET: OFF
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
    -- Found Threads: TRUE
    -- SEAL_BUILD_SEAL_C: OFF
    -- SEAL_BUILD_EXAMPLES: OFF
    -- SEAL_BUILD_TESTS: OFF
    -- SEAL_BUILD_BENCH: OFF
    -- Configuring done (2.3s)
    -- Generating done (0.0s)
    CMake Warning:
    Manually-specified variables were not used by the project:

    SEAL_INTEL_HEXL

-- Build files have been written to: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/sandbox/linux-sandbox/648/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal.build_tmpdir

  • cmake --build . --config Release
    [1/40] Building C object CMakeFiles/seal.dir/native/src/seal/util/blake2xb.c.o
    [2/40] Building C object CMakeFiles/seal.dir/native/src/seal/util/blake2b.c.o
    [3/40] Building C object CMakeFiles/seal.dir/native/src/seal/util/fips202.c.o
    [4/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/clipnormal.cpp.o
    [5/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/hash.cpp.o
    [6/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/common.cpp.o
    [7/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/memorymanager.cpp.o
    [8/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/mempool.cpp.o
    [9/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/uintcore.cpp.o
    [10/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/uintarithmod.cpp.o
    [11/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/croots.cpp.o
    [12/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/numth.cpp.o
    [13/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/uintarith.cpp.o
    [14/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/encryptionparams.cpp.o
    [15/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/streambuf.cpp.o
    [16/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/serialization.cpp.o
    [17/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/polyarithsmallmod.cpp.o
    [18/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/rns.cpp.o
    FAILED: CMakeFiles/seal.dir/native/src/seal/util/rns.cpp.o
    /usr/bin/gcc -I/home/haitaiwork/deepl/.cache/bazel/bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/sandbox/linux-sandbox/648/execroot/spulib/external/com_github_microsoft_seal/native/src -I/home/haitaiwork/deepl/.cache/bazel/bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/sandbox/linux-sandbox/648/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal.build_tmpdir/native/src -isystem /home/haitaiwork/deepl/.cache/bazel/bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/sandbox/linux-sandbox/648/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal.ext_build_deps/zstd/include -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -D_FORTIFY_SOURCE=1 -DNDEBUG -ffunction-sections -fdata-sections -std=c++0x -fno-canonical-system-headers -Wno-builtin-macro-redefined -D__DATE="redacted" -D__TIMESTAMP_="redacted" -D__TIME__="redacted" -fdiagnostics-color=always -Wl,-z,noexecstack -fopenmp -fPIC -fstack-protector-strong -std=c++17 -O3 -DNDEBUG -fPIC -MD -MT CMakeFiles/seal.dir/native/src/seal/util/rns.cpp.o -MF CMakeFiles/seal.dir/native/src/seal/util/rns.cpp.o.d -o CMakeFiles/seal.dir/native/src/seal/util/rns.cpp.o -c /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/sandbox/linux-sandbox/648/execroot/spulib/external/com_github_microsoft_seal/native/src/seal/util/rns.cpp
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/sandbox/linux-sandbox/648/execroot/spulib/external/com_github_microsoft_seal/native/src/seal/util/rns.cpp: In instantiation of ‘seal::util::RNSTool::mod_t_and_divide_q_last_inplace(seal::util::RNSIter, seal::MemoryPoolHandle) const::<lambda(auto:83)> [with auto:83 = std::tuple<seal::util::PtrIter<long unsigned int*>, const seal::Modulus&, seal::util::MultiplyUIntModOperand&>]’:
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/sandbox/linux-sandbox/648/execroot/spulib/external/com_github_microsoft_seal/native/src/seal/util/common.h:35:21: required from ‘ForwardIt seal::util::seal_for_each_n(ForwardIt, Size, Func&&) [with ForwardIt = seal::util::IterTuple<seal::util::RNSIter, seal::util::PtrIter<const seal::Modulus*>, seal::util::PtrIterseal::util::MultiplyUIntModOperand* >; Size = long unsigned int; Func = seal::util::RNSTool::mod_t_and_divide_q_last_inplace(seal::util::RNSIter, seal::MemoryPoolHandle) const::<lambda(auto:83)>]’
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/sandbox/linux-sandbox/648/execroot/spulib/external/com_github_microsoft_seal/native/src/seal/util/rns.cpp:1239:14: required from here
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/sandbox/linux-sandbox/648/execroot/spulib/external/com_github_microsoft_seal/native/src/seal/util/rns.cpp:1232:32: warning: variable ‘two_times_q_i’ set but not used [-Wunused-but-set-variable]
    const uint64_t two_times_q_i = get<1>(I).value() << 1;
    ^~~~~~~~~~~~~
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/sandbox/linux-sandbox/648/execroot/spulib/external/com_github_microsoft_seal/native/src/seal/util/rns.cpp: In instantiation of ‘seal::util::RNSTool::mod_t_and_divide_q_last_inplace(seal::util::RNSIter, seal::MemoryPoolHandle) const::<lambda(auto:83)>::<lambda(auto:84)> [with auto:84 = std::tuple<long unsigned int&, long unsigned int&, long unsigned int&>; auto:83 = std::tuple<seal::util::PtrIter<long unsigned int*>, const seal::Modulus&, seal::util::MultiplyUIntModOperand&>]’:
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/sandbox/linux-sandbox/648/execroot/spulib/external/com_github_microsoft_seal/native/src/seal/util/common.h:35:21: required from ‘ForwardIt seal::util::seal_for_each_n(ForwardIt, Size, Func&&) [with ForwardIt = seal::util::IterTuple<seal::util::PtrIter<long unsigned int*>, seal::util::PtrIter<long unsigned int*>, seal::util::PtrIter<long unsigned int*> >; Size = long unsigned int; Func = seal::util::RNSTool::mod_t_and_divide_q_last_inplace(seal::util::RNSIter, seal::MemoryPoolHandle) const::<lambda(auto:83)> [with auto:83 = std::tuple<seal::util::PtrIter<long unsigned int*>, const seal::Modulus&, seal::util::MultiplyUIntModOperand&>]::<lambda(auto:84)>]’
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/sandbox/linux-sandbox/648/execroot/spulib/external/com_github_microsoft_seal/native/src/seal/util/rns.cpp:1233:29: required from ‘seal::util::RNSTool::mod_t_and_divide_q_last_inplace(seal::util::RNSIter, seal::MemoryPoolHandle) const::<lambda(auto:83)> [with auto:83 = std::tuple<seal::util::PtrIter<long unsigned int*>, const seal::Modulus&, seal::util::MultiplyUIntModOperand&>]’
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/sandbox/linux-sandbox/648/execroot/spulib/external/com_github_microsoft_seal/native/src/seal/util/common.h:35:21: required from ‘ForwardIt seal::util::seal_for_each_n(ForwardIt, Size, Func&&) [with ForwardIt = seal::util::IterTuple<seal::util::RNSIter, seal::util::PtrIter<const seal::Modulus*>, seal::util::PtrIterseal::util::MultiplyUIntModOperand* >; Size = long unsigned int; Func = seal::util::RNSTool::mod_t_and_divide_q_last_inplace(seal::util::RNSIter, seal::MemoryPoolHandle) const::<lambda(auto:83)>]’
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/sandbox/linux-sandbox/648/execroot/spulib/external/com_github_microsoft_seal/native/src/seal/util/rns.cpp:1239:14: required from here
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/dff317ed9a5fa06fa40d05f23b79ff75/sandbox/linux-sandbox/648/execroot/spulib/external/com_github_microsoft_seal/native/src/seal/util/rns.cpp:1232:54: internal compiler error: in tsubst_copy, at cp/pt.c:14588
    const uint64_t two_times_q_i = get<1>(I).value() << 1;
    ~~~~~~^~~
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See file:///usr/share/doc/gcc-7/README.Bugs for instructions.
    [19/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/uintarithsmallmod.cpp.o
    [20/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/modulus.cpp.o
    [21/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/galois.cpp.o
    [22/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/ztools.cpp.o
    [23/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/randomgen.cpp.o
    [24/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/globals.cpp.o
    [25/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/iterator.cpp.o
    [26/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/ntt.cpp.o
    [27/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/valcheck.cpp.o
    [28/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/plaintext.cpp.o
    [29/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/scalingvariant.cpp.o
    [30/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/kswitchkeys.cpp.o
    [31/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/rlwe.cpp.o
    [32/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/ckks.cpp.o
    [33/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/batchencoder.cpp.o
    [34/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/encryptor.cpp.o
    [35/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/ciphertext.cpp.o
    [36/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/decryptor.cpp.o
    [37/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/context.cpp.o
    [38/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/keygenerator.cpp.o
    [39/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/evaluator.cpp.o
    ninja: build stopped: subcommand failed.
    _____ END BUILD LOGS _____
    rules_foreign_cc: Build wrapper script location: bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal_foreign_cc/wrapper_build_script.sh
    rules_foreign_cc: Build script location: bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal_foreign_cc/build_script.sh
    rules_foreign_cc: Build log location: bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal_foreign_cc/CMake.log

Target //examples/cpp/pir:generate_pir_data failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 39.910s, Critical Path: 39.11s
INFO: 652 processes: 37 internal, 615 linux-sandbox.
FAILED: Build did NOT complete successfully

from spu.

anakinxc avatar anakinxc commented on June 12, 2024

gcc 版本太低了,要求请参考这里

from spu.

dage0127 avatar dage0127 commented on June 12, 2024

更换成gcc 12,还是报错。
(sfhost) deepl@ht-PowerEdge-R740:~/spu-main$ gcc -v
使用内建 specs。
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/12.2.0/lto-wrapper
目标:x86_64-pc-linux-gnu
配置为:./configure -enable-checking=release -enable-languages=c,c++ -disable-multilib
线程模型:posix
Supported LTO compression algorithms: zlib
gcc 版本 12.2.0 (GCC)

编译错误,
(sfhost) deepl@ht-PowerEdge-R740:~/spu-main$ bazel build //examples/cpp/pir:generate_pir_data -c opt
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/xla/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'tf_runtime' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/xla/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'llvm-raw' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'com_google_absl' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'pybind11_bazel' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'com_google_protobuf' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'com_google_googletest' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'com_github_grpc_grpc' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'zlib' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'rules_python' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'pybind11' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'upb' because it already exists.
INFO: Analyzed target //examples/cpp/pir:generate_pir_data (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/com_github_microsoft_seal/BUILD.bazel:24:19: Foreign Cc - CMake: Building seal failed: (Exit 1): bash failed: error executing command /bin/bash -c bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal_foreign_cc/wrapper_build_script.sh

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
rules_foreign_cc: Build failed!
rules_foreign_cc: Keeping temp build directory and dependencies directory for debug.
rules_foreign_cc: Please note that the directories inside a sandbox are still cleaned unless you specify --sandbox_debug Bazel command line flag.
rules_foreign_cc: Printing build logs:
_____ BEGIN BUILD LOGS _____

Bazel external C/C++ Rules. Building library seal

Environment:______________
LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:/usr/local/openmpi/lib/
EXT_BUILD_ROOT=/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/100/execroot/spulib
INSTALLDIR=/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/100/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal
PWD=/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/100/execroot/spulib
BUILD_TMPDIR=/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/100/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal.build_tmpdir
TMPDIR=/tmp
EXT_BUILD_DEPS=/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/100/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal.ext_build_deps
SHLVL=3
BUILD_LOG=bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal_foreign_cc/CMake.log
BUILD_SCRIPT=bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal_foreign_cc/build_script.sh
BUILD_WRAPPER_SCRIPT=bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal_foreign_cc/wrapper_build_script.sh
PATH=/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/100/execroot/spulib:/home/haitaiwork/deepl/bin:/home/haitaiwork/deepl/anaconda3/envs/sfhost/bin:/home/haitaiwork/deepl/anaconda3/condabin:/root/ll/bin:/home/haitaiwork/deepl/anaconda3/bin:/home/haoxh/apache-jmeter-5.4/bin:/home/haitaiwork/data/projects/fate/common/jdk/jdk-8u345/bin:/home/haitaiwork/data/projects/fate/common/jdk/jdk-8u345/jre/bin:/home/haitaiwork/data/projects/fate/common/spark/bin:/home/haitaiwork/data/projects/fate/common/jdk/jdk-8u345/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/haitaiwork/data/projects/fate/common/hadoop/bin:/home/haitaiwork/data/projects/fate/common/hadoop/sbin:/usr/local/openmpi/bin:/usr/local/rabbitmq/rabbitmq_server-3.8.1/sbin:/home/haitaiwork/deepl/download/neo4j-community-4.2.18/bin
_=/usr/bin/env


  • cmake -DSEAL_USE_MSGSL=OFF -DSEAL_BUILD_DEPS=OFF -DSEAL_USE_ZSTD=ON -DSEAL_USE_ZLIB=OFF -DSEAL_INTEL_HEXL=ON -DSEAL_THROW_ON_TRANSPARENT_CIPHERTEXT=OFF -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_TOOLCHAIN_FILE=/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/100/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal.build_tmpdir/crosstool_bazel.cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/100/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal -DCMAKE_PREFIX_PATH=/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/100/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal.ext_build_deps -DCMAKE_RANLIB= -DCMAKE_MAKE_PROGRAM=ninja -G Ninja /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/100/execroot/spulib/external/com_github_microsoft_seal
    -- Build type (CMAKE_BUILD_TYPE): Release
    -- The CXX compiler identification is GNU 7.5.0
    -- The C compiler identification is GNU 7.5.0
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/gcc - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: /usr/bin/gcc - skipped
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Microsoft SEAL debug mode: OFF
    -- SEAL_USE_CXX17: ON
    -- SEAL_BUILD_DEPS: OFF
    -- SEAL_USE_MSGSL: OFF
    -- SEAL_USE_ZLIB: OFF
    -- SEAL_USE_ZSTD: ON
    -- SEAL_USE_INTEL_HEXL: OFF
    -- BUILD_SHARED_LIBS: OFF
    -- SEAL_THROW_ON_TRANSPARENT_CIPHERTEXT: OFF
    -- SEAL_USE_GAUSSIAN_NOISE: OFF
    -- SEAL_DEFAULT_PRNG: Blake2xb
    -- SEAL_AVOID_BRANCHING: OFF
    -- x86intrin.h - found
    -- SEAL_USE_INTRIN: ON
    -- Performing Test SEAL_MEMSET_S_FOUND
    -- Performing Test SEAL_MEMSET_S_FOUND - Failed
    -- Looking for explicit_bzero
    -- Looking for explicit_bzero - found
    -- Looking for explicit_memset
    -- Looking for explicit_memset - not found
    -- SEAL_USE_MEMSET_S: OFF
    -- SEAL_USE_EXPLICIT_BZERO: ON
    -- SEAL_USE_EXPLICIT_MEMSET: OFF
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
    -- Found Threads: TRUE
    -- SEAL_BUILD_SEAL_C: OFF
    -- SEAL_BUILD_EXAMPLES: OFF
    -- SEAL_BUILD_TESTS: OFF
    -- SEAL_BUILD_BENCH: OFF
    -- Configuring done (2.5s)
    -- Generating done (0.0s)
    CMake Warning:
    Manually-specified variables were not used by the project:

    SEAL_INTEL_HEXL

-- Build files have been written to: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/100/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal.build_tmpdir

  • cmake --build . --config Release
    [1/40] Building C object CMakeFiles/seal.dir/native/src/seal/util/blake2xb.c.o
    [2/40] Building C object CMakeFiles/seal.dir/native/src/seal/util/blake2b.c.o
    [3/40] Building C object CMakeFiles/seal.dir/native/src/seal/util/fips202.c.o
    [4/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/common.cpp.o
    [5/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/hash.cpp.o
    [6/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/clipnormal.cpp.o
    [7/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/uintcore.cpp.o
    [8/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/uintarith.cpp.o
    [9/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/memorymanager.cpp.o
    [10/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/ztools.cpp.o
    [11/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/uintarithsmallmod.cpp.o
    [12/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/globals.cpp.o
    [13/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/galois.cpp.o
    [14/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/croots.cpp.o
    [15/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/rns.cpp.o
    FAILED: CMakeFiles/seal.dir/native/src/seal/util/rns.cpp.o
    /usr/bin/gcc -I/home/haitaiwork/deepl/.cache/bazel/bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/100/execroot/spulib/external/com_github_microsoft_seal/native/src -I/home/haitaiwork/deepl/.cache/bazel/bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/100/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal.build_tmpdir/native/src -isystem /home/haitaiwork/deepl/.cache/bazel/bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/100/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal.ext_build_deps/zstd/include -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -D_FORTIFY_SOURCE=1 -DNDEBUG -ffunction-sections -fdata-sections -std=c++0x -fno-canonical-system-headers -Wno-builtin-macro-redefined -D__DATE="redacted" -D__TIMESTAMP_="redacted" -D__TIME__="redacted" -fdiagnostics-color=always -Wl,-z,noexecstack -fopenmp -fPIC -fstack-protector-strong -std=c++17 -O3 -DNDEBUG -fPIC -MD -MT CMakeFiles/seal.dir/native/src/seal/util/rns.cpp.o -MF CMakeFiles/seal.dir/native/src/seal/util/rns.cpp.o.d -o CMakeFiles/seal.dir/native/src/seal/util/rns.cpp.o -c /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/100/execroot/spulib/external/com_github_microsoft_seal/native/src/seal/util/rns.cpp
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/100/execroot/spulib/external/com_github_microsoft_seal/native/src/seal/util/rns.cpp: In instantiation of ‘seal::util::RNSTool::mod_t_and_divide_q_last_inplace(seal::util::RNSIter, seal::MemoryPoolHandle) const::<lambda(auto:83)> [with auto:83 = std::tuple<seal::util::PtrIter<long unsigned int*>, const seal::Modulus&, seal::util::MultiplyUIntModOperand&>]’:
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/100/execroot/spulib/external/com_github_microsoft_seal/native/src/seal/util/common.h:35:21: required from ‘ForwardIt seal::util::seal_for_each_n(ForwardIt, Size, Func&&) [with ForwardIt = seal::util::IterTuple<seal::util::RNSIter, seal::util::PtrIter<const seal::Modulus*>, seal::util::PtrIterseal::util::MultiplyUIntModOperand* >; Size = long unsigned int; Func = seal::util::RNSTool::mod_t_and_divide_q_last_inplace(seal::util::RNSIter, seal::MemoryPoolHandle) const::<lambda(auto:83)>]’
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/100/execroot/spulib/external/com_github_microsoft_seal/native/src/seal/util/rns.cpp:1239:14: required from here
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/100/execroot/spulib/external/com_github_microsoft_seal/native/src/seal/util/rns.cpp:1232:32: warning: variable ‘two_times_q_i’ set but not used [-Wunused-but-set-variable]
    const uint64_t two_times_q_i = get<1>(I).value() << 1;
    ^~~~~~~~~~~~~
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/100/execroot/spulib/external/com_github_microsoft_seal/native/src/seal/util/rns.cpp: In instantiation of ‘seal::util::RNSTool::mod_t_and_divide_q_last_inplace(seal::util::RNSIter, seal::MemoryPoolHandle) const::<lambda(auto:83)>::<lambda(auto:84)> [with auto:84 = std::tuple<long unsigned int&, long unsigned int&, long unsigned int&>; auto:83 = std::tuple<seal::util::PtrIter<long unsigned int*>, const seal::Modulus&, seal::util::MultiplyUIntModOperand&>]’:
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/100/execroot/spulib/external/com_github_microsoft_seal/native/src/seal/util/common.h:35:21: required from ‘ForwardIt seal::util::seal_for_each_n(ForwardIt, Size, Func&&) [with ForwardIt = seal::util::IterTuple<seal::util::PtrIter<long unsigned int*>, seal::util::PtrIter<long unsigned int*>, seal::util::PtrIter<long unsigned int*> >; Size = long unsigned int; Func = seal::util::RNSTool::mod_t_and_divide_q_last_inplace(seal::util::RNSIter, seal::MemoryPoolHandle) const::<lambda(auto:83)> [with auto:83 = std::tuple<seal::util::PtrIter<long unsigned int*>, const seal::Modulus&, seal::util::MultiplyUIntModOperand&>]::<lambda(auto:84)>]’
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/100/execroot/spulib/external/com_github_microsoft_seal/native/src/seal/util/rns.cpp:1233:29: required from ‘seal::util::RNSTool::mod_t_and_divide_q_last_inplace(seal::util::RNSIter, seal::MemoryPoolHandle) const::<lambda(auto:83)> [with auto:83 = std::tuple<seal::util::PtrIter<long unsigned int*>, const seal::Modulus&, seal::util::MultiplyUIntModOperand&>]’
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/100/execroot/spulib/external/com_github_microsoft_seal/native/src/seal/util/common.h:35:21: required from ‘ForwardIt seal::util::seal_for_each_n(ForwardIt, Size, Func&&) [with ForwardIt = seal::util::IterTuple<seal::util::RNSIter, seal::util::PtrIter<const seal::Modulus*>, seal::util::PtrIterseal::util::MultiplyUIntModOperand* >; Size = long unsigned int; Func = seal::util::RNSTool::mod_t_and_divide_q_last_inplace(seal::util::RNSIter, seal::MemoryPoolHandle) const::<lambda(auto:83)>]’
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/100/execroot/spulib/external/com_github_microsoft_seal/native/src/seal/util/rns.cpp:1239:14: required from here
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/100/execroot/spulib/external/com_github_microsoft_seal/native/src/seal/util/rns.cpp:1232:54: internal compiler error: in tsubst_copy, at cp/pt.c:14588
    const uint64_t two_times_q_i = get<1>(I).value() << 1;
    ~~~~~~^~~
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See file:///usr/share/doc/gcc-7/README.Bugs for instructions.
    [16/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/uintarithmod.cpp.o
    [17/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/randomgen.cpp.o
    [18/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/mempool.cpp.o
    [19/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/streambuf.cpp.o
    [20/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/encryptionparams.cpp.o
    [21/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/serialization.cpp.o
    [22/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/modulus.cpp.o
    [23/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/polyarithsmallmod.cpp.o
    [24/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/ntt.cpp.o
    [25/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/numth.cpp.o
    [26/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/iterator.cpp.o
    [27/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/kswitchkeys.cpp.o
    [28/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/batchencoder.cpp.o
    [29/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/plaintext.cpp.o
    [30/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/scalingvariant.cpp.o
    [31/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/valcheck.cpp.o
    [32/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/rlwe.cpp.o
    [33/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/ckks.cpp.o
    [34/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/ciphertext.cpp.o
    [35/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/encryptor.cpp.o
    [36/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/decryptor.cpp.o
    [37/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/context.cpp.o
    [38/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/keygenerator.cpp.o
    [39/40] Building CXX object CMakeFiles/seal.dir/native/src/seal/evaluator.cpp.o
    ninja: build stopped: subcommand failed.
    _____ END BUILD LOGS _____
    rules_foreign_cc: Build wrapper script location: bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal_foreign_cc/wrapper_build_script.sh
    rules_foreign_cc: Build script location: bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal_foreign_cc/build_script.sh
    rules_foreign_cc: Build log location: bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal_foreign_cc/CMake.log

Target //examples/cpp/pir:generate_pir_data failed to build
Use --verbose_failures to see the command lines of failed build steps.
ERROR: /home/haitaiwork/deepl/spu-main/examples/cpp/pir/BUILD.bazel:81:14 Linking examples/cpp/pir/generate_pir_data failed: (Exit 1): bash failed: error executing command /bin/bash -c bazel-out/k8-opt/bin/external/com_github_microsoft_seal/seal_foreign_cc/wrapper_build_script.sh

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
INFO: Elapsed time: 8.629s, Critical Path: 7.99s
INFO: 13 processes: 13 internal.
FAILED: Build did NOT complete successfully

from spu.

anakinxc avatar anakinxc commented on June 12, 2024
-- The CXX compiler identification is GNU 7.5.0
-- The C compiler identification is GNU 7.5.0

bazel 依然在用 gcc 7.5.0

试一下 bazel clean --expunge 然后重新开始 build

from spu.

dage0127 avatar dage0127 commented on June 12, 2024

清理:
(sfhost) deepl@ht-PowerEdge-R740:~/spu-main$ bazel clean --expunge --async
INFO: Starting clean.
INFO: Output base moved to /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032_tmp_6007_c93e1b60-f3eb-483b-a4d3-1408f9dfae0b for deletion

编译,报错:

(sfhost) deepl@ht-PowerEdge-R740:/spu-main$ bazel build //examples/cpp/pir:generate_pir_data -c opt
Starting local Bazel server and connecting to it...
DEBUG: Rule 'yacl' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1682574473 +0800"
DEBUG: Repository yacl instantiated at:
/home/haitaiwork/deepl/spu-main/WORKSPACE:19:9: in
/home/haitaiwork/deepl/spu-main/bazel/repositories.bzl:45:10: in spu_deps
/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/bazel_tools/tools/build_defs/repo/utils.bzl:233:18: in maybe
Repository rule git_repository defined at:
/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/xla/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'tf_runtime' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/xla/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'llvm-raw' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'com_google_absl' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'pybind11_bazel' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'com_google_protobuf' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'com_google_googletest' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'com_github_grpc_grpc' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'zlib' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'rules_python' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'pybind11' because it already exists.
DEBUG: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'upb' because it already exists.
DEBUG: Rule 'org_interconnection' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1669271462 +0800"
DEBUG: Repository org_interconnection instantiated at:
/home/haitaiwork/deepl/spu-main/WORKSPACE:28:10: in
/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/yacl/bazel/repositories.bzl:59:10: in yacl_deps
/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/bazel_tools/tools/build_defs/repo/utils.bzl:233:18: in maybe
Repository rule git_repository defined at:
/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in
INFO: Analyzed target //examples/cpp/pir:generate_pir_data (113 packages loaded, 10146 targets configured).
INFO: Found 1 target...
INFO: From Compiling llvm/lib/Support/UnicodeCaseFold.cpp:
external/llvm-project/llvm/lib/Support/UnicodeCaseFold.cpp:8:1: warning: multi-line comment [-Wcomment]
8 | // utils/unicode-case-fold.py
| ^
INFO: From Compiling src/google/protobuf/message_lite.cc:
In file included from /usr/include/string.h:494,
from external/com_google_protobuf/src/google/protobuf/stubs/port.h:39,
from external/com_google_protobuf/src/google/protobuf/stubs/common.h:48,
from external/com_google_protobuf/src/google/protobuf/message_lite.h:45,
from external/com_google_protobuf/src/google/protobuf/message_lite.cc:36:
In function 'void* memcpy(void*, const void*, size_t)',
inlined from 'uint8_t* google::protobuf::io::EpsCopyOutputStream::WriteRaw(const void*, int, uint8_t*)' at external/com_google_protobuf/src/google/protobuf/io/coded_stream.h:706:16,
inlined from 'virtual uint8_t* google::protobuf::internal::ImplicitWeakMessage::_InternalSerialize(uint8_t*, google::protobuf::io::EpsCopyOutputStream*) const' at external/com_google_protobuf/src/google/protobuf/implicit_weak_message.h:84:28,
inlined from 'bool google::protobuf::MessageLite::SerializePartialToZeroCopyStream(google::protobuf::io::ZeroCopyOutputStream*) const' at external/com_google_protobuf/src/google/protobuf/message_lite.cc:412:30:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:34:33: warning: 'void* __builtin___memcpy_chk(void*, const void*, long unsigned int, long unsigned int)' specified size between 18446744071562067968 and 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
34 | return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
INFO: From Compiling src/google/protobuf/message_lite.cc:
In file included from /usr/include/string.h:494,
from external/com_google_protobuf/src/google/protobuf/stubs/port.h:39,
from external/com_google_protobuf/src/google/protobuf/stubs/common.h:48,
from external/com_google_protobuf/src/google/protobuf/message_lite.h:45,
from external/com_google_protobuf/src/google/protobuf/message_lite.cc:36:
In function 'void* memcpy(void*, const void*, size_t)',
inlined from 'uint8_t* google::protobuf::io::EpsCopyOutputStream::WriteRaw(const void*, int, uint8_t*)' at external/com_google_protobuf/src/google/protobuf/io/coded_stream.h:706:16,
inlined from 'virtual uint8_t* google::protobuf::internal::ImplicitWeakMessage::_InternalSerialize(uint8_t*, google::protobuf::io::EpsCopyOutputStream*) const' at external/com_google_protobuf/src/google/protobuf/implicit_weak_message.h:84:28,
inlined from 'bool google::protobuf::MessageLite::SerializePartialToZeroCopyStream(google::protobuf::io::ZeroCopyOutputStream*) const' at external/com_google_protobuf/src/google/protobuf/message_lite.cc:412:30:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:34:33: warning: 'void* __builtin___memcpy_chk(void*, const void*, long unsigned int, long unsigned int)' specified size between 18446744071562067968 and 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
34 | return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
INFO: From Compiling llvm/lib/Support/RISCVISAInfo.cpp:
external/llvm-project/llvm/lib/Support/RISCVISAInfo.cpp: In member function 'void llvm::RISCVISAInfo::updateMaxELen()':
external/llvm-project/llvm/lib/Support/RISCVISAInfo.cpp:1111:16: warning: 'ZveELen' may be used uninitialized [-Wmaybe-uninitialized]
1111 | unsigned ZveELen;
| ^~~~~~~
INFO: From Compiling llvm/lib/Support/JSON.cpp:
In file included from external/llvm-project/llvm/include/llvm/Support/FormatVariadic.h:34,
from external/llvm-project/llvm/include/llvm/Support/JSON.h:54,
from external/llvm-project/llvm/lib/Support/JSON.cpp:9:
In static member function 'static size_t llvm::detail::HelperFunctions::consumeNumHexDigits(llvm::StringRef&, llvm::HexPrintStyle, size_t)',
inlined from 'static void llvm::format_provider<T, typename std::enable_if<llvm::detail::use_integral_formatter::value, void>::type>::format(const T&, llvm::raw_ostream&, llvm::StringRef) [with T = unsigned int]' at external/llvm-project/llvm/include/llvm/Support/FormatProviders.h:136:35:
external/llvm-project/llvm/include/llvm/Support/FormatProviders.h:96:27: warning: 'HS' may be used uninitialized [-Wmaybe-uninitialized]
96 | if (isPrefixedHexStyle(Style))
| ~~~~~~~~~~~~~~~~~~^~~~~~~
external/llvm-project/llvm/include/llvm/Support/FormatProviders.h: In static member function 'static void llvm::format_provider<T, typename std::enable_if<llvm::detail::use_integral_formatter::value, void>::type>::format(const T&, llvm::raw_ostream&, llvm::StringRef) [with T = unsigned int]':
external/llvm-project/llvm/include/llvm/Support/FormatProviders.h:133:19: note: 'HS' was declared here
133 | HexPrintStyle HS;
| ^

INFO: From Compiling llvm/lib/Support/Signals.cpp:
In file included from external/llvm-project/llvm/include/llvm/Support/Chrono.h:13,
from external/llvm-project/llvm/include/llvm/Support/FileSystem.h:33,
from external/llvm-project/llvm/lib/Support/Signals.cpp:22:
In static member function 'static size_t llvm::detail::HelperFunctions::consumeNumHexDigits(llvm::StringRef&, llvm::HexPrintStyle, size_t)',
inlined from 'static void llvm::format_provider<T, typename std::enable_if<llvm::detail::use_integral_formatter::value, void>::type>::format(const T&, llvm::raw_ostream&, llvm::StringRef) [with T = int]' at external/llvm-project/llvm/include/llvm/Support/FormatProviders.h:136:35:
external/llvm-project/llvm/include/llvm/Support/FormatProviders.h:96:27: warning: 'HS' may be used uninitialized [-Wmaybe-uninitialized]
96 | if (isPrefixedHexStyle(Style))
| ~~~~~~~~~~~~~~~~~~^~~~~~~
external/llvm-project/llvm/include/llvm/Support/FormatProviders.h: In static member function 'static void llvm::format_provider<T, typename std::enable_if<llvm::detail::use_integral_formatter::value, void>::type>::format(const T&, llvm::raw_ostream&, llvm::StringRef) [with T = int]':
external/llvm-project/llvm/include/llvm/Support/FormatProviders.h:133:19: note: 'HS' was declared here
133 | HexPrintStyle HS;
| ^~
INFO: From Compiling llvm/lib/Support/ThreadPool.cpp:
In file included from external/llvm-project/llvm/include/llvm/Support/FormatVariadic.h:34,
from external/llvm-project/llvm/lib/Support/ThreadPool.cpp:18:
In static member function 'static size_t llvm::detail::HelperFunctions::consumeNumHexDigits(llvm::StringRef&, llvm::HexPrintStyle, size_t)',
inlined from 'static void llvm::format_provider<T, typename std::enable_if<llvm::detail::use_integral_formatter::value, void>::type>::format(const T&, llvm::raw_ostream&, llvm::StringRef) [with T = int]' at external/llvm-project/llvm/include/llvm/Support/FormatProviders.h:136:35:
external/llvm-project/llvm/include/llvm/Support/FormatProviders.h:96:27: warning: 'HS' may be used uninitialized [-Wmaybe-uninitialized]
96 | if (isPrefixedHexStyle(Style))
| ~~~~~~~~~~~~~~~~~~^~~~~~~
external/llvm-project/llvm/include/llvm/Support/FormatProviders.h: In static member function 'static void llvm::format_provider<T, typename std::enable_if<llvm::detail::use_integral_formatter::value, void>::type>::format(const T&, llvm::raw_ostream&, llvm::StringRef) [with T = int]':
external/llvm-project/llvm/include/llvm/Support/FormatProviders.h:133:19: note: 'HS' was declared here
133 | HexPrintStyle HS;
| ^~
INFO: From Compiling llvm/lib/Support/YAMLParser.cpp:
In member function 'void llvm::yaml::Scanner::setError(const llvm::Twine&, llvm::StringRef::iterator)',
inlined from 'bool llvm::yaml::Scanner::findBlockScalarIndent(unsigned int&, unsigned int, unsigned int&, bool&)' at external/llvm-project/llvm/lib/Support/YAMLParser.cpp:1637:17:
external/llvm-project/llvm/lib/Support/YAMLParser.cpp:267:5: warning: 'LongestAllSpaceLine' may be used uninitialized [-Wmaybe-uninitialized]
267 | if (Position >= End)
| ^~
external/llvm-project/llvm/lib/Support/YAMLParser.cpp: In member function 'bool llvm::yaml::Scanner::findBlockScalarIndent(unsigned int&, unsigned int, unsigned int&, bool&)':
external/llvm-project/llvm/lib/Support/YAMLParser.cpp:1624:23: note: 'LongestAllSpaceLine' was declared here
1624 | StringRef::iterator LongestAllSpaceLine;
| ^~~~~~~~~~~~~~~~~~~
INFO: From Compiling llvm/lib/Support/APFloat.cpp:
external/llvm-project/llvm/lib/Support/APFloat.cpp: In member function 'llvm::Expectedllvm::APFloatBase::opStatus llvm::detail::IEEEFloat::convertFromDecimalString(llvm::StringRef, llvm::APFloatBase::roundingMode)':
external/llvm-project/llvm/lib/Support/APFloat.cpp:3078:36: warning: 'D.llvm::decimalInfo::lastSigDigit' may be used uninitialized [-Wmaybe-uninitialized]
3078 | } while (p <= D.lastSigDigit && multiplier <= (~ (integerPart) 0 - 9) / 10);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/llvm-project/llvm/lib/Support/APFloat.cpp:2979:15: note: 'D.llvm::decimalInfo::lastSigDigit' was declared here
2979 | decimalInfo D;
| ^
external/llvm-project/llvm/lib/Support/APFloat.cpp:3011:53: warning: 'D.llvm::decimalInfo::firstSigDigit' may be used uninitialized [-Wmaybe-uninitialized]
3011 | if (D.firstSigDigit == str.end() || decDigitValue(D.firstSigDigit) >= 10U) {
| ^~~~~~~~~~~~~~~~
external/llvm-project/llvm/lib/Support/APFloat.cpp:2979:15: note: 'D.llvm::decimalInfo::firstSigDigit' was declared here
2979 | decimalInfo D;
| ^
INFO: From Compiling llvm/lib/Support/VirtualFileSystem.cpp:
external/llvm-project/llvm/lib/Support/VirtualFileSystem.cpp: In member function 'std::unique_ptrllvm::vfs::RedirectingFileSystem::Entry llvm::vfs::RedirectingFileSystemParser::parseEntry(llvm::yaml::Node
, llvm::vfs::RedirectingFileSystem*, bool)':
external/llvm-project/llvm/lib/Support/VirtualFileSystem.cpp:1961:5: warning: 'Kind' may be used uninitialized [-Wmaybe-uninitialized]
1961 | switch (Kind) {
| ^~~~~~
external/llvm-project/llvm/lib/Support/VirtualFileSystem.cpp:1793:38: note: 'Kind' was declared here
1793 | RedirectingFileSystem::EntryKind Kind;
| ^~~~
INFO: From Compiling src/butil/endpoint.cpp:
external/com_github_brpc_brpc/src/butil/endpoint.cpp: In function 'int butil::tcp_connect(EndPoint, int*)':
external/com_github_brpc_brpc/src/butil/endpoint.cpp:394:25: warning: the address of 'int bthread_connect(int, const sockaddr*, socklen_t)' will never be NULL [-Waddress]
394 | if (bthread_connect != NULL) {
| ^
external/com_github_brpc_brpc/src/butil/endpoint.cpp:46:16: note: 'int bthread_connect(int, const sockaddr*, socklen_t)' declared here
46 | int BAIDU_WEAK bthread_connect(
| ^~~~~~~~~~~~~~~
INFO: From Compiling src/brpc/parallel_channel.cpp:
In file included from /usr/include/unistd.h:229,
from external/com_github_brpc_brpc/src/butil/build_config.h:44,
from external/com_github_brpc_brpc/src/butil/compiler_specific.h:8,
from external/com_github_brpc_brpc/src/butil/macros.h:16,
from external/com_github_brpc_brpc/src/butil/logging.h:31,
from external/com_github_brpc_brpc/src/bthread/types.h:27,
from external/com_github_brpc_brpc/src/bthread/bthread.h:27,
from external/com_github_brpc_brpc/src/brpc/parallel_channel.cpp:19:
external/com_github_brpc_brpc/src/brpc/parallel_channel.cpp: In static member function 'static brpc::ParallelChannelDone* brpc::ParallelChannelDone::Create(int, int, const brpc::SubCall*, int, brpc::Controller*, google::protobuf::Closure*)':
external/com_github_brpc_brpc/src/brpc/parallel_channel.cpp:104:36: warning: 'offsetof' within non-standard-layout type 'brpc::ParallelChannelDone' is conditionally-supported [-Winvalid-offsetof]
104 | size_t req_size = offsetof(ParallelChannelDone, _sub_done) +
| ^
INFO: From Compiling src/brpc/socket.cpp:
In file included from external/com_github_brpc_brpc/src/butil/logging.h:31,
from external/com_github_brpc_brpc/src/bthread/types.h:27,
from external/com_github_brpc_brpc/src/bthread/unstable.h:27,
from external/com_github_brpc_brpc/src/brpc/socket.cpp:29:
external/com_github_brpc_brpc/src/brpc/socket.cpp: In member function 'void brpc::Socket::GetStat(brpc::SocketStat*) const':
external/com_github_brpc_brpc/src/brpc/socket.cpp:2714:28: warning: 'offsetof' within non-standard-layout type 'brpc::Socket' is conditionally-supported [-Winvalid-offsetof]
2714 | BAIDU_CASSERT(offsetof(Socket, _preferred_index) >= 64, different_cacheline);
| ^
INFO: From Compiling src/brpc/policy/http2_rpc_protocol.cpp:
In file included from /usr/include/x86_64-linux-gnu/bits/socket.h:27,
from /usr/include/x86_64-linux-gnu/sys/socket.h:33,
from /usr/include/netinet/in.h:23,
from external/com_github_brpc_brpc/src/butil/endpoint.h:25,
from external/com_github_brpc_brpc/src/brpc/details/http_message.h:26,
from external/com_github_brpc_brpc/src/brpc/policy/http_rpc_protocol.h:22,
from external/com_github_brpc_brpc/src/brpc/policy/http2_rpc_protocol.h:22,
from external/com_github_brpc_brpc/src/brpc/policy/http2_rpc_protocol.cpp:19:
external/com_github_brpc_brpc/src/brpc/policy/http2_rpc_protocol.cpp: In static member function 'static brpc::policy::H2UnsentRequest* brpc::policy::H2UnsentRequest::New(brpc::Controller*)':
external/com_github_brpc_brpc/src/brpc/policy/http2_rpc_protocol.cpp:1394:37: warning: 'offsetof' within non-standard-layout type 'brpc::policy::H2UnsentRequest' is conditionally-supported [-Winvalid-offsetof]
1394 | const size_t memsize = offsetof(H2UnsentRequest, _list) +
| ^
external/com_github_brpc_brpc/src/brpc/policy/http2_rpc_protocol.cpp: In static member function 'static brpc::policy::H2UnsentResponse* brpc::policy::H2UnsentResponse::New(brpc::Controller*, int, bool)':
external/com_github_brpc_brpc/src/brpc/policy/http2_rpc_protocol.cpp:1652:37: warning: 'offsetof' within non-standard-layout type 'brpc::policy::H2UnsentResponse' is conditionally-supported [-Winvalid-offsetof]
1652 | const size_t memsize = offsetof(H2UnsentResponse, _list) +
| ^
In file included from /usr/local/lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../include/c++/12.2.0/bits/shared_ptr_atomic.h:33,
from /usr/local/lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../include/c++/12.2.0/memory:78,
from external/com_google_protobuf/src/google/protobuf/stubs/common.h:41,
from external/com_google_protobuf/src/google/protobuf/io/zero_copy_stream.h:113,
from external/com_github_brpc_brpc/src/butil/iobuf.h:29,
from external/com_github_brpc_brpc/src/brpc/details/http_message.h:24:
In member function 'std::__atomic_base<_IntTp>::__int_type std::__atomic_base<_IntTp>::fetch_add(__int_type, std::memory_order) [with _ITp = int]',
inlined from 'int brpc::policy::H2UnsentRequest::AddRefManually()' at external/com_github_brpc_brpc/src/brpc/policy/http2_rpc_protocol.h:142:29,
inlined from 'void brpc::policy::PackH2Request(butil::IOBuf*, brpc::SocketMessage**, uint64_t, const google::protobuf::MethodDescriptor*, brpc::Controller*, const butil::IOBuf&, const brpc::Authenticator*)' at external/com_github_brpc_brpc/src/brpc/policy/http2_rpc_protocol.cpp:1795:27:
/usr/local/lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../include/c++/12.2.0/bits/atomic_base.h:618:34: warning: 'unsigned int __atomic_fetch_add_4(volatile void*, unsigned int, int)' writing 4 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=]
618 | { return __atomic_fetch_add(&_M_i, __i, int(__m)); }
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
INFO: From Compiling src/brpc/server.cpp:
In file included from external/com_github_brpc_brpc/src/butil/logging.h:31,
from external/com_github_brpc_brpc/src/bthread/types.h:27,
from external/com_github_brpc_brpc/src/bthread/unstable.h:27,
from external/com_github_brpc_brpc/src/brpc/server.cpp:27:
external/com_github_brpc_brpc/src/brpc/server.cpp: In constructor 'brpc::Server::Server(brpc::ProfilerLinker)':
external/com_github_brpc_brpc/src/brpc/server.cpp:405:28: warning: 'offsetof' within non-standard-layout type 'brpc::Server' is conditionally-supported [-Winvalid-offsetof]
405 | BAIDU_CASSERT(offsetof(Server, _concurrency) % 64 == 0,
| ^
INFO: From Compiling src/json2pb/json_to_pb.cpp:
external/com_github_brpc_brpc/src/json2pb/json_to_pb.cpp: In function 'bool json2pb::JsonValueToProtoField(const butil::rapidjson::Value&, const google::protobuf::FieldDescriptor*, google::protobuf::Message*, const Json2PbOptions&, std::string*)':
external/com_github_brpc_brpc/src/json2pb/json_to_pb.cpp:49:69: warning: 'this' pointer is null [-Wnonnull]
49 | butil::string_appendf(perr, " [%s]", (pb)->GetDescriptor()->name().c_str());
| ~~~~~~~~~~~~~~~~~~~^~
external/com_github_brpc_brpc/src/json2pb/json_to_pb.cpp:40:5: note: in expansion of macro 'J2PERROR_WITH_PB'
40 | J2PERROR_WITH_PB((::google::protobuf::Message*)nullptr, perr, fmt, ##VA_ARGS)
| ^~~~~~~~~~~~~~~~
external/com_github_brpc_brpc/src/json2pb/json_to_pb.cpp:313:13: note: in expansion of macro 'J2PERROR'
313 | J2PERROR(err, "Missing required field: %s", field->full_name().c_str());
| ^~~~~~~~
In file included from external/com_github_brpc_brpc/src/json2pb/json_to_pb.h:24,
from external/com_github_brpc_brpc/src/json2pb/json_to_pb.cpp:30:
external/com_google_protobuf/src/google/protobuf/message.h:352:21: note: in a call to non-static member function 'const google::protobuf::Descriptor* google::protobuf::Message::GetDescriptor() const'
352 | const Descriptor* GetDescriptor() const { return GetMetadata().descriptor; }
| ^~~~~~~~~~~~~
external/com_github_brpc_brpc/src/json2pb/json_to_pb.cpp:49:69: warning: 'this' pointer is null [-Wnonnull]
49 | butil::string_appendf(perr, " [%s]", (pb)->GetDescriptor()->name().c_str());
| ~~~~~~~~~~~~~~~~~~~^~
external/com_github_brpc_brpc/src/json2pb/json_to_pb.cpp:40:5: note: in expansion of macro 'J2PERROR_WITH_PB'
40 | J2PERROR_WITH_PB((::google::protobuf::Message*)nullptr, perr, fmt, ##VA_ARGS)
| ^~~~~~~~~~~~~~~~
external/com_github_brpc_brpc/src/json2pb/json_to_pb.cpp:321:13: note: in expansion of macro 'J2PERROR'
321 | J2PERROR(err, "Invalid value for repeated field: %s",
| ^~~~~~~~
external/com_google_protobuf/src/google/protobuf/message.h:352:21: note: in a call to non-static member function 'const google::protobuf::Descriptor* google::protobuf::Message::GetDescriptor() const'
352 | const Descriptor* GetDescriptor() const { return GetMetadata().descriptor; }
| ^~~~~~~~~~~~~
external/com_github_brpc_brpc/src/json2pb/json_to_pb.cpp: In function 'bool json2pb::JsonMapToProtoMap(const butil::rapidjson::Value&, const google::protobuf::FieldDescriptor*, google::protobuf::Message*, const Json2PbOptions&, std::string*)':
external/com_github_brpc_brpc/src/json2pb/json_to_pb.cpp:49:69: warning: 'this' pointer is null [-Wnonnull]
49 | butil::string_appendf(perr, " [%s]", (pb)->GetDescriptor()->name().c_str());
| ~~~~~~~~~~~~~~~~~~~^~
external/com_github_brpc_brpc/src/json2pb/json_to_pb.cpp:40:5: note: in expansion of macro 'J2PERROR_WITH_PB'
40 | J2PERROR_WITH_PB((::google::protobuf::Message*)nullptr, perr, fmt, ##VA_ARGS)
| ^~~~~~~~~~~~~~~~
external/com_github_brpc_brpc/src/json2pb/json_to_pb.cpp:493:9: note: in expansion of macro 'J2PERROR'
493 | J2PERROR(err, "Non-object value for map field: %s",
| ^~~~~~~~
external/com_google_protobuf/src/google/protobuf/message.h:352:21: note: in a call to non-static member function 'const google::protobuf::Descriptor* google::protobuf::Message::GetDescriptor() const'
352 | const Descriptor* GetDescriptor() const { return GetMetadata().descriptor; }
| ^~~~~~~~~~~~~
external/com_github_brpc_brpc/src/json2pb/json_to_pb.cpp: In function 'bool json2pb::JsonValueToProtoMessage(const butil::rapidjson::Value&, google::protobuf::Message*, const Json2PbOptions&, std::string*, bool)':
external/com_github_brpc_brpc/src/json2pb/json_to_pb.cpp:49:69: warning: 'this' pointer is null [-Wnonnull]
49 | butil::string_appendf(perr, " [%s]", (pb)->GetDescriptor()->name().c_str());
| ~~~~~~~~~~~~~~~~~~~^~
external/com_github_brpc_brpc/src/json2pb/json_to_pb.cpp:40:5: note: in expansion of macro 'J2PERROR_WITH_PB'
40 | J2PERROR_WITH_PB((::google::protobuf::Message*)nullptr, perr, fmt, ##VA_ARGS)
| ^~~~~~~~~~~~~~~~
external/com_github_brpc_brpc/src/json2pb/json_to_pb.cpp:573:17: note: in expansion of macro 'J2PERROR'
573 | J2PERROR(err, "Missing required field: %s", field->full_name().c_str());
| ^~~~~~~~
external/com_google_protobuf/src/google/protobuf/message.h:352:21: note: in a call to non-static member function 'const google::protobuf::Descriptor* google::protobuf::Message::GetDescriptor() const'
352 | const Descriptor* GetDescriptor() const { return GetMetadata().descriptor; }
| ^~~~~~~~~~~~~
ERROR: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/external/com_github_emptoolkit_emp_tool/BUILD.bazel:24:20: Foreign Cc - CMake: Building emp-tool failed: (Exit 1): bash failed: error executing command /bin/bash -c bazel-out/k8-opt/bin/external/com_github_emptoolkit_emp_tool/emp-tool_foreign_cc/wrapper_build_script.sh

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
rules_foreign_cc: Build failed!
rules_foreign_cc: Keeping temp build directory and dependencies directory for debug.
rules_foreign_cc: Please note that the directories inside a sandbox are still cleaned unless you specify --sandbox_debug Bazel command line flag.
rules_foreign_cc: Printing build logs:
_____ BEGIN BUILD LOGS _____

Bazel external C/C++ Rules. Building library emp-tool

Environment:______________
LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:/usr/local/openmpi/lib/
EXT_BUILD_ROOT=/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib
INSTALLDIR=/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_emptoolkit_emp_tool/emp-tool
PWD=/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib
BUILD_TMPDIR=/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_emptoolkit_emp_tool/emp-tool.build_tmpdir
TMPDIR=/tmp
EXT_BUILD_DEPS=/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_emptoolkit_emp_tool/emp-tool.ext_build_deps
SHLVL=3
BUILD_LOG=bazel-out/k8-opt/bin/external/com_github_emptoolkit_emp_tool/emp-tool_foreign_cc/CMake.log
BUILD_SCRIPT=bazel-out/k8-opt/bin/external/com_github_emptoolkit_emp_tool/emp-tool_foreign_cc/build_script.sh
BUILD_WRAPPER_SCRIPT=bazel-out/k8-opt/bin/external/com_github_emptoolkit_emp_tool/emp-tool_foreign_cc/wrapper_build_script.sh
PATH=/home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib:/home/haitaiwork/deepl/bin:/home/haitaiwork/deepl/anaconda3/envs/sfhost/bin:/home/haitaiwork/deepl/anaconda3/condabin:/root/ll/bin:/home/haitaiwork/deepl/anaconda3/bin:/home/haoxh/apache-jmeter-5.4/bin:/home/haitaiwork/data/projects/fate/common/jdk/jdk-8u345/bin:/home/haitaiwork/data/projects/fate/common/jdk/jdk-8u345/jre/bin:/home/haitaiwork/data/projects/fate/common/spark/bin:/home/haitaiwork/data/projects/fate/common/jdk/jdk-8u345/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/haitaiwork/data/projects/fate/common/hadoop/bin:/home/haitaiwork/data/projects/fate/common/hadoop/sbin:/usr/local/openmpi/bin:/usr/local/rabbitmq/rabbitmq_server-3.8.1/sbin:/home/haitaiwork/deepl/download/neo4j-community-4.2.18/bin
_=/usr/bin/env


  • cmake -DOPENSSL_ROOT_DIR=/home/haitaiwork/deepl/.cache/bazel/bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_emptoolkit_emp_tool/emp-tool.ext_build_deps/openssl -DBUILD_TESTING=OFF -DCMAKE_TOOLCHAIN_FILE=/home/haitaiwork/deepl/.cache/bazel/bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_emptoolkit_emp_tool/emp-tool.build_tmpdir/crosstool_bazel.cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/haitaiwork/deepl/.cache/bazel/bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_emptoolkit_emp_tool/emp-tool -DCMAKE_PREFIX_PATH=/home/haitaiwork/deepl/.cache/bazel/bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_emptoolkit_emp_tool/emp-tool.ext_build_deps -DCMAKE_RANLIB= -DCMAKE_MAKE_PROGRAM=ninja -G Ninja /home/haitaiwork/deepl/.cache/bazel/bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/external/com_github_emptoolkit_emp_tool
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: /usr/local/bin/gcc - skipped
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /usr/local/bin/gcc - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Platform: x86_64
    -- Build type: Release
    -- CXX Flags: -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -D_FORTIFY_SOURCE=1 -DNDEBUG -ffunction-sections -fdata-sections -std=c++0x -fno-canonical-system-headers -Wno-builtin-macro-redefined -D__DATE
    ="redacted" -D__TIMESTAMP
    ="redacted" -D__TIME
    _="redacted" -fdiagnostics-color=always -Wl,-z,noexecstack -fopenmp -fPIC -fstack-protector-strong -std=c++17 -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -D_FORTIFY_SOURCE=1 -DNDEBUG -ffunction-sections -fdata-sections -fno-canonical-system-headers -Wno-builtin-macro-redefined -D__DATE__="redacted" -D__TIMESTAMP__="redacted" -D__TIME__="redacted" -fdiagnostics-color=always -Wl,-z,noexecstack -fopenmp -fPIC -fstack-protector-strong -pthread -Wall -funroll-loops -Wno-ignored-attributes -Wno-unused-result -march=native -maes -mrdseed -std=c++11 -O3
    -- Performing Test RDSEED_RUN_RESULT
    -- Performing Test RDSEED_RUN_RESULT - Success
    -- Source of Randomness: rdseed
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
    -- Found Threads: TRUE
    -- Found OpenSSL: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_emptoolkit_emp_tool/emp-tool.ext_build_deps/openssl/lib/libcrypto.a (found version "1.1.1q")
    -- Configuring done (1.6s)
    -- Generating done (0.0s)
    CMake Warning:
    Manually-specified variables were not used by the project:

    BUILD_TESTING

-- Build files have been written to: /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_emptoolkit_emp_tool/emp-tool.build_tmpdir

  • cmake --build . --config Release
    [1/21] Compiling aes_128 circuit file to binary
    [2/21] Compiling Keccak circuit file to binary
    [3/21] Building CXX object CMakeFiles/emp-tool.dir/emp-tool/emp-tool.cpp.o
    [4/21] Building CXX object CMakeFiles/emp-tool.dir/emp-tool/circuits/float32_le.cpp.o
    [5/21] Building CXX object CMakeFiles/emp-tool.dir/emp-tool/circuits/float32_leq.cpp.o
    [6/21] Building CXX object CMakeFiles/emp-tool.dir/emp-tool/circuits/float32_mul.cpp.o
    [7/21] Building CXX object CMakeFiles/emp-tool.dir/emp-tool/circuits/float32_sq.cpp.o
    [8/21] Building CXX object CMakeFiles/emp-tool.dir/emp-tool/circuits/float32_exp2.cpp.o
    [9/21] Building CXX object CMakeFiles/emp-tool.dir/emp-tool/circuits/float32_eq.cpp.o
    [10/21] Building CXX object CMakeFiles/emp-tool.dir/emp-tool/circuits/float32_sub.cpp.o
    [11/21] Building CXX object CMakeFiles/emp-tool.dir/emp-tool/circuits/float32_log2.cpp.o
    [12/21] Building CXX object CMakeFiles/emp-tool.dir/emp-tool/circuits/float32_sin.cpp.o
    [13/21] Building CXX object CMakeFiles/emp-tool.dir/emp-tool/circuits/float32_div.cpp.o
    [14/21] Building CXX object CMakeFiles/emp-tool.dir/emp-tool/circuits/float32_cos.cpp.o
    [15/21] Building CXX object CMakeFiles/emp-tool.dir/emp-tool/circuits/float32_ln.cpp.o
    [16/21] Building CXX object CMakeFiles/emp-tool.dir/emp-tool/circuits/float32_add.cpp.o
    [17/21] Building CXX object CMakeFiles/emp-tool.dir/emp-tool/circuits/float32_sqrt.cpp.o
    [18/21] Building CXX object CMakeFiles/emp-tool.dir/emp-tool/circuits/float32_exp.cpp.o
    [19/21] Building CXX object CMakeFiles/emp-tool.dir/emp-tool/circuits/files/bristol_fashion/aes_128.txt.cpp.o
    FAILED: CMakeFiles/emp-tool.dir/emp-tool/circuits/files/bristol_fashion/aes_128.txt.cpp.o
    /usr/local/bin/gcc -I/home/haitaiwork/deepl/.cache/bazel/bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/external/com_github_emptoolkit_emp_tool -I/home/haitaiwork/deepl/.cache/bazel/bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_emptoolkit_emp_tool/emp-tool.ext_build_deps/openssl/include -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -D_FORTIFY_SOURCE=1 -DNDEBUG -ffunction-sections -fdata-sections -std=c++0x -fno-canonical-system-headers -Wno-builtin-macro-redefined -D__DATE="redacted" -D__TIMESTAMP__="redacted" -D__TIME__="redacted" -fdiagnostics-color=always -Wl,-z,noexecstack -fopenmp -fPIC -fstack-protector-strong -std=c++17 -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -D_FORTIFY_SOURCE=1 -DNDEBUG -ffunction-sections -fdata-sections -fno-canonical-system-headers -Wno-builtin-macro-redefined -D__DATE__="redacted" -D__TIMESTAMP__="redacted" -D__TIME__="redacted" -fdiagnostics-color=always -Wl,-z,noexecstack -fopenmp -fPIC -fstack-protector-strong -pthread -Wall -funroll-loops -Wno-ignored-attributes -Wno-unused-result -march=native -maes -mrdseed -std=c++11 -O3 -O3 -DNDEBUG -MD -MT CMakeFiles/emp-tool.dir/emp-tool/circuits/files/bristol_fashion/aes_128.txt.cpp.o -MF CMakeFiles/emp-tool.dir/emp-tool/circuits/files/bristol_fashion/aes_128.txt.cpp.o.d -o CMakeFiles/emp-tool.dir/emp-tool/circuits/files/bristol_fashion/aes_128.txt.cpp.o -c /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/external/com_github_emptoolkit_emp_tool/emp-tool/circuits/files/bristol_fashion/aes_128.txt.cpp
    In file included from /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/external/com_github_emptoolkit_emp_tool/emp-tool/circuits/files/bristol_fashion/aes_128.txt.cpp:1:
    /home/haitaiwork/deepl/.cache/bazel/bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/external/com_github_emptoolkit_emp_tool/emp-tool/circuits/aes_128_ctr.h:103:14: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
    103 | std::unique_ptr circuit; // ensures circuit is deleted when this is deleted.
    | ^~~~~~~~~~
    /home/haitaiwork/deepl/.cache/bazel/bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/external/com_github_emptoolkit_emp_tool/emp-tool/circuits/aes_128_ctr.h:17:1: note: ‘std::unique_ptr’ is defined in header ‘’; did you forget to ‘#include ’?
    16 | #include <unistd.h>
    +++ |+#include
    17 | #include <errno.h>
    /home/haitaiwork/deepl/.cache/bazel/bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/external/com_github_emptoolkit_emp_tool/emp-tool/circuits/aes_128_ctr.h: In constructor ‘emp::AES_128_CTR_Calculator::AES_128_CTR_Calculator()’:
    /home/haitaiwork/deepl/.cache/bazel/bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/external/com_github_emptoolkit_emp_tool/emp-tool/circuits/aes_128_ctr.h:110:23: error: ‘class emp::AES_128_CTR_Calculator’ has no member named ‘circuit’
    110 | this->circuit = std::unique_ptr(new BristolFashion(circuit_file));
    | ^~~~~~~
    /home/haitaiwork/deepl/.cache/bazel/bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/external/com_github_emptoolkit_emp_tool/emp-tool/circuits/aes_128_ctr.h:110:38: error: ‘unique_ptr’ is not a member of ‘std’
    110 | this->circuit = std::unique_ptr(new BristolFashion(circuit_file));
    | ^~~~~~~~~~
    /home/haitaiwork/deepl/.cache/bazel/bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/external/com_github_emptoolkit_emp_tool/emp-tool/circuits/aes_128_ctr.h:110:38: note: ‘std::unique_ptr’ is defined in header ‘’; did you forget to ‘#include ’?
    /home/haitaiwork/deepl/.cache/bazel/bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/external/com_github_emptoolkit_emp_tool/emp-tool/circuits/aes_128_ctr.h:110:63: error: expected primary-expression before ‘>’ token
    110 | this->circuit = std::unique_ptr(new BristolFashion(circuit_file));
    | ^
    /home/haitaiwork/deepl/.cache/bazel/bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/external/com_github_emptoolkit_emp_tool/emp-tool/circuits/aes_128_ctr.h: In member function ‘int emp::AES_128_CTR_Calculator::aes_128_ctr(const emp::block*, const emp::block*, emp::block*, emp::block*, size_t, int, uint64_t)’:
    /home/haitaiwork/deepl/.cache/bazel/bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/external/com_github_emptoolkit_emp_tool/emp-tool/circuits/aes_128_ctr.h:157:39: error: ‘class emp::AES_128_CTR_Calculator’ has no member named ‘circuit’
    157 | this->circuit->compute(this->blind, this->keyiv);
    | ^~~~~~~
    /home/haitaiwork/deepl/.cache/bazel/bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/external/com_github_emptoolkit_emp_tool/emp-tool/circuits/aes_128_ctr.h:162:39: error: ‘class emp::AES_128_CTR_Calculator’ has no member named ‘circuit’
    162 | this->circuit->compute(this->blind, this->keyiv);
    | ^~~~~~~
    [20/21] Building CXX object CMakeFiles/emp-tool.dir/emp-tool/circuits/files/bristol_fashion/Keccak_f.txt.cpp.o
    FAILED: CMakeFiles/emp-tool.dir/emp-tool/circuits/files/bristol_fashion/Keccak_f.txt.cpp.o
    /usr/local/bin/gcc -I/home/haitaiwork/deepl/.cache/bazel/bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/external/com_github_emptoolkit_emp_tool -I/home/haitaiwork/deepl/.cache/bazel/bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_emptoolkit_emp_tool/emp-tool.ext_build_deps/openssl/include -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -D_FORTIFY_SOURCE=1 -DNDEBUG -ffunction-sections -fdata-sections -std=c++0x -fno-canonical-system-headers -Wno-builtin-macro-redefined -D__DATE="redacted" -D__TIMESTAMP
    ="redacted" -D__TIME
    ="redacted" -fdiagnostics-color=always -Wl,-z,noexecstack -fopenmp -fPIC -fstack-protector-strong -std=c++17 -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -D_FORTIFY_SOURCE=1 -DNDEBUG -ffunction-sections -fdata-sections -fno-canonical-system-headers -Wno-builtin-macro-redefined -D__DATE="redacted" -D__TIMESTAMP="redacted" -D__TIME="redacted" -fdiagnostics-color=always -Wl,-z,noexecstack -fopenmp -fPIC -fstack-protector-strong -pthread -Wall -funroll-loops -Wno-ignored-attributes -Wno-unused-result -march=native -maes -mrdseed -std=c++11 -O3 -O3 -DNDEBUG -MD -MT CMakeFiles/emp-tool.dir/emp-tool/circuits/files/bristol_fashion/Keccak_f.txt.cpp.o -MF CMakeFiles/emp-tool.dir/emp-tool/circuits/files/bristol_fashion/Keccak_f.txt.cpp.o.d -o CMakeFiles/emp-tool.dir/emp-tool/circuits/files/bristol_fashion/Keccak_f.txt.cpp.o -c /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/external/com_github_emptoolkit_emp_tool/emp-tool/circuits/files/bristol_fashion/Keccak_f.txt.cpp
    In file included from /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/external/com_github_emptoolkit_emp_tool/emp-tool/circuits/files/bristol_fashion/Keccak_f.txt.cpp:1:
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/external/com_github_emptoolkit_emp_tool/emp-tool/circuits/sha3_256.h:71:22: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
    71 | std::unique_ptr keccak_f; // ensures keccak_f is deleted when this is deleted.
    | ^~~~~~~~~~
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/external/com_github_emptoolkit_emp_tool/emp-tool/circuits/sha3_256.h:17:1: note: ‘std::unique_ptr’ is defined in header ‘’; did you forget to ‘#include ’?
    16 | #include <unistd.h>
    +++ |+#include
    17 | #include <errno.h>
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/external/com_github_emptoolkit_emp_tool/emp-tool/circuits/sha3_256.h: In constructor ‘emp::SHA3_256_Calculator::SHA3_256_Calculator()’:
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/external/com_github_emptoolkit_emp_tool/emp-tool/circuits/sha3_256.h:80:25: error: ‘keccak_f’ was not declared in this scope; did you mean ‘keccak_f_txt’?
    80 | keccak_f = std::unique_ptr(new BristolFashion(keccak_f_txt));
    | ^~~~~~~~
    | keccak_f_txt
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/external/com_github_emptoolkit_emp_tool/emp-tool/circuits/sha3_256.h:80:41: error: ‘unique_ptr’ is not a member of ‘std’
    80 | keccak_f = std::unique_ptr(new BristolFashion(keccak_f_txt));
    | ^~~~~~~~~~
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/external/com_github_emptoolkit_emp_tool/emp-tool/circuits/sha3_256.h:80:41: note: ‘std::unique_ptr’ is defined in header ‘’; did you forget to ‘#include ’?
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/external/com_github_emptoolkit_emp_tool/emp-tool/circuits/sha3_256.h:80:66: error: expected primary-expression before ‘>’ token
    80 | keccak_f = std::unique_ptr(new BristolFashion(keccak_f_txt));
    | ^
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/external/com_github_emptoolkit_emp_tool/emp-tool/circuits/sha3_256.h: In member function ‘void emp::SHA3_256_Calculator::sha3_256(emp::block*, const emp::block**, const size_t*, size_t)’:
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/external/com_github_emptoolkit_emp_tool/emp-tool/circuits/sha3_256.h:106:49: error: ‘keccak_f’ was not declared in this scope
    106 | keccak_f->compute(blocks, blocks);
    | ^~~~~~~~
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/external/com_github_emptoolkit_emp_tool/emp-tool/circuits/sha3_256.h:122:25: error: ‘keccak_f’ was not declared in this scope
    122 | keccak_f->compute(blocks, blocks);
    | ^~~~~~~~
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/external/com_github_emptoolkit_emp_tool/emp-tool/circuits/sha3_256.h: In member function ‘void emp::SHA3_256_Calculator::sha3_256(emp::block*, const emp::Integer*, size_t)’:
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/external/com_github_emptoolkit_emp_tool/emp-tool/circuits/sha3_256.h:145:49: error: ‘keccak_f’ was not declared in this scope
    145 | keccak_f->compute(blocks, blocks);
    | ^~~~~~~~
    /home/haitaiwork/deepl/.cache/bazel/_bazel_deepl/71ec47afc7f3ce24340b9b547fbea032/sandbox/linux-sandbox/632/execroot/spulib/external/com_github_emptoolkit_emp_tool/emp-tool/circuits/sha3_256.h:161:25: error: ‘keccak_f’ was not declared in this scope
    161 | keccak_f->compute(blocks, blocks);
    | ^~~~~~~~
    ninja: build stopped: subcommand failed.
    _____ END BUILD LOGS _____
    rules_foreign_cc: Build wrapper script location: bazel-out/k8-opt/bin/external/com_github_emptoolkit_emp_tool/emp-tool_foreign_cc/wrapper_build_script.sh
    rules_foreign_cc: Build script location: bazel-out/k8-opt/bin/external/com_github_emptoolkit_emp_tool/emp-tool_foreign_cc/build_script.sh
    rules_foreign_cc: Build log location: bazel-out/k8-opt/bin/external/com_github_emptoolkit_emp_tool/emp-tool_foreign_cc/CMake.log

Target //examples/cpp/pir:generate_pir_data failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 241.738s, Critical Path: 62.05s
INFO: 1008 processes: 81 internal, 927 linux-sandbox.
FAILED: Build did NOT complete successfully

from spu.

anakinxc avatar anakinxc commented on June 12, 2024

这是这个问题 emp-toolkit/emp-tool#170

你能先用 gcc 11.2 或者 11.3 吗?

from spu.

dage0127 avatar dage0127 commented on June 12, 2024

非常感谢节日期间支持。
修改为GCC11之后,编译成功。 另外有个问题请教:编译之后的输出在什么路径,需要更新到什么路径下,才能使用。

Target //examples/cpp/pir:generate_pir_data up-to-date:
bazel-bin/examples/cpp/pir/generate_pir_data
INFO: Elapsed time: 346.100s, Critical Path: 294.20s
INFO: 1072 processes: 79 internal, 993 linux-sandbox.
INFO: Build completed successfully, 1072 total actions

from spu.

dage0127 avatar dage0127 commented on June 12, 2024

多谢。关闭问题

from spu.

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.