secretflow / psi

The repo of Private Set Intersection(PSI) and Private Information Retrieval(PIR) from SecretFlow.
https://www.secretflow.org.cn/docs/psi
Apache License 2.0
27 stars 25 forks source link

[Bug]: 编译报错bazel build //psi:psi_xxx_test #187

Open neaos opened 1 month ago

neaos commented 1 month ago

Describe the bug

编译报错: root@hezhangjie:/opt/isafelinke/goProject/psi# bazel build //psi:psi_datasource_test INFO: Analyzed target //psi:psi_datasource_test (0 packages loaded, 0 targets configured). INFO: Found 1 target... ERROR: /opt/isafelinke/goProject/psi/psi/BUILD.bazel:162:12: Linking psi/psi_datasource_test failed: (Exit 1): gcc failed: error executing command (from target //psi:psi_datasource_test) /usr/bin/gcc @bazel-out/k8-fastbuild/bin/psi/psi_datasource_test-2.params

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging bazel-out/k8-fastbuild/bin/external/org_pocoproject_poco/poco/lib/libPocoData.a(RecordSet.cpp.o):RecordSet.cpp:function Poco::Dynamic::VarHolderImpl::convert(std::cxx11::basic_string<char, std::char_traits, std::allocator >&) const: error: undefined reference to 'Poco::DateTimeFormatter::append(std::cxx11::basic_string<char, std::char_traits, std::allocator >&, Poco::DateTime const&, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, int)' bazel-out/k8-fastbuild/bin/external/org_pocoproject_poco/poco/lib/libPocoData.a(RecordSet.cpp.o):RecordSet.cpp:function Poco::Dynamic::VarHolderImpl::convert(std::cxx11::basic_string<char, std::char_traits, std::allocator >&) const: error: undefined reference to 'Poco::DateTimeFormatter::append(std::cxx11::basic_string<char, std::char_traits, std::allocator >&, Poco::DateTime const&, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, int)' bazel-out/k8-fastbuild/bin/external/org_pocoproject_poco/poco/lib/libPocoData.a(RecordSet.cpp.o):RecordSet.cpp:function Poco::Dynamic::VarHolderImpl::convert(std::cxx11::basic_string<char, std::char_traits, std::allocator >&) const: error: undefined reference to 'Poco::DateTimeFormatter::append(std::cxx11::basic_string<char, std::char_traits, std::allocator >&, Poco::DateTime const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int)' bazel-out/k8-fastbuild/bin/external/org_pocoproject_poco/poco/lib/libPocoData.a(RowFilter.cpp.o):RowFilter.cpp:function Poco::Data::RowFilter::RowFilter(Poco::Data::RecordSet*): error: undefined reference to 'Poco::RefCountedObject::RefCountedObject()'

image

Steps To Reproduce

1

Expected behavior

image

Version

v0.4.3.dev240913

Operating system

ubuntu 20.04.6

Hardware Resources

4c16g

lanyy9527 commented 1 month ago

您好,请检查下开发环境是否完整:Install gcc>=11.2, cmake>=3.26, ninja, nasm>=2.15, python>=3.8, bazel, golang, xxd, lld