Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
neaos opened this issue Oct 11, 2024 · 1 comment
Open

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

neaos opened this issue Oct 11, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@neaos
Copy link

neaos commented Oct 11, 2024

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::VarHolderImplPoco::DateTime::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::VarHolderImplPoco::Data::Time::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::VarHolderImplPoco::Data::Date::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

@neaos neaos added the bug Something isn't working label Oct 11, 2024
@lanyy9527
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants