vinllen opened a new issue, #2480:
URL: https://github.com/apache/brpc/issues/2480

   **Describe the bug (描述bug)**
   在0.9.6和1.5编译都是ok的,升级1.7符合找不到
   ```
   
bazel-out/k8-fastbuild/bin/third-party/brpc-1.7.0-bthread-tag/libbrpc.a(usercode_backup_pool.pic.o):
 In function `brpc::UserCodeRunner(void*)':
   
/proc/self/cwd/third-party/brpc-1.7.0-bthread-tag/src/brpc/details/usercode_backup_pool.cpp:95:
 undefined reference to `butil::PlatformThread::SetName(char const*)'
   
bazel-out/k8-fastbuild/bin/third-party/brpc-1.7.0-bthread-tag/libbthread.a(execution_queue.pic.o):
 In function `bthread::ExecutionQueueBase::_execute_tasks_pthread(void*)':
   
/proc/self/cwd/third-party/brpc-1.7.0-bthread-tag/src/bthread/execution_queue.cpp:212:
 undefined reference to `butil::PlatformThread::SetName(char const*)'
   
bazel-out/k8-fastbuild/bin/third-party/brpc-1.7.0-bthread-tag/libbthread.a(task_control.pic.o):
 In function `bthread::TaskControl::worker_thread(void*)':
   
/proc/self/cwd/third-party/brpc-1.7.0-bthread-tag/src/bthread/task_control.cpp:93:
 undefined reference to `butil::PlatformThread::SetName(char const*)'
   
bazel-out/k8-fastbuild/bin/third-party/brpc-1.7.0-bthread-tag/libbthread.a(timer_thread.pic.o):
 In function `bthread::TimerThread::run_this(void*)':
   
/proc/self/cwd/third-party/brpc-1.7.0-bthread-tag/src/bthread/timer_thread.cpp:121:
 undefined reference to `butil::PlatformThread::SetName(char const*)'
   
bazel-out/k8-fastbuild/bin/third-party/brpc-1.7.0-bthread-tag/libbvar.a(collector.pic.o):
 In function `bvar::Collector::run_grab_thread(void*)':
   /proc/self/cwd/third-party/brpc-1.7.0-bthread-tag/src/bvar/collector.cpp:80: 
undefined reference to `butil::PlatformThread::SetName(char const*)'
   
bazel-out/k8-fastbuild/bin/third-party/brpc-1.7.0-bthread-tag/libbvar.a(collector.pic.o):/proc/self/cwd/third-party/brpc-1.7.0-bthread-tag/src/bvar/collector.cpp:86:
 more undefined references to `butil::PlatformThread::SetName(char const*)' 
follow
   
bazel-out/k8-fastbuild/bin/third-party/brpc-1.7.0-bthread-tag/libbutil.a(file_path.pic.o):
 In function `butil::FilePath::LossyDisplayName[abi:cxx11]() const':
   
/proc/self/cwd/third-party/brpc-1.7.0-bthread-tag/src/butil/files/file_path.cc:585:
 undefined reference to 
`butil::SysNativeMBToWide(butil::BasicStringPiece<std::__cxx11::basic_string<char,
 std::char_traits<char>, std::allocator<char> > > const&)'
   
bazel-out/k8-fastbuild/bin/third-party/brpc-1.7.0-bthread-tag/libbutil.a(file_path.pic.o):
 In function `butil::FilePath::AsUTF8Unsafe[abi:cxx11]() const':
   
/proc/self/cwd/third-party/brpc-1.7.0-bthread-tag/src/butil/files/file_path.cc:598:
 undefined reference to 
`butil::SysNativeMBToWide(butil::BasicStringPiece<std::__cxx11::basic_string<char,
 std::char_traits<char>, std::allocator<char> > > const&)'
   
bazel-out/k8-fastbuild/bin/third-party/brpc-1.7.0-bthread-tag/libbutil.a(file_path.pic.o):
 In function `butil::FilePath::FromUTF8Unsafe(std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&)':
   
/proc/self/cwd/third-party/brpc-1.7.0-bthread-tag/src/butil/files/file_path.cc:615:
 undefined reference to 
`butil::SysWideToNativeMB(std::__cxx11::basic_string<wchar_t, 
std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'
   
bazel-out/k8-fastbuild/bin/third-party/brpc-1.7.0-bthread-tag/libbutil.a(file_path.pic.o):
 In function 
`butil::FilePath::FromUTF16Unsafe(std::__cxx11::basic_string<unsigned short, 
butil::string16_char_traits, std::allocator<unsigned short> > const&)':
   
/proc/self/cwd/third-party/brpc-1.7.0-bthread-tag/src/butil/files/file_path.cc:624:
 undefined reference to 
`butil::SysWideToNativeMB(std::__cxx11::basic_string<wchar_t, 
std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'
   
bazel-out/k8-fastbuild/bin/third-party/brpc-1.7.0-bthread-tag/libbutil.a(platform_thread_posix.pic.o):
 In function `butil::(anonymous namespace)::CreateThread(unsigned long, bool, 
butil::PlatformThread::Delegate*, butil::PlatformThreadHandle*, 
butil::ThreadPriority)':
   
/proc/self/cwd/third-party/brpc-1.7.0-bthread-tag/src/butil/threading/platform_thread_posix.cc:93:
 undefined reference to `butil::InitThreading()'
   
/proc/self/cwd/third-party/brpc-1.7.0-bthread-tag/src/butil/threading/platform_thread_posix.cc:107:
 undefined reference to `butil::GetDefaultThreadStackSize(pthread_attr_t 
const&)'
   
bazel-out/k8-fastbuild/bin/third-party/brpc-1.7.0-bthread-tag/libbutil.a(platform_thread_posix.pic.o):
 In function `butil::(anonymous namespace)::ThreadFunc(void*)':
   
/proc/self/cwd/third-party/brpc-1.7.0-bthread-tag/src/butil/threading/platform_thread_posix.cc:57:
 undefined reference to `butil::InitOnThread()'
   
/proc/self/cwd/third-party/brpc-1.7.0-bthread-tag/src/butil/threading/platform_thread_posix.cc:85:
 undefined reference to `butil::TerminateOnThread()'
   
/proc/self/cwd/third-party/brpc-1.7.0-bthread-tag/src/butil/threading/platform_thread_posix.cc:65:
 undefined reference to 
`butil::PlatformThread::SetThreadPriority(butil::PlatformThreadHandle, 
butil::ThreadPriority)'
   collect2: error: ld returned 1 exit status
   Target //src/store:store failed to build
   INFO: Elapsed time: 129.980s, Critical Path: 128.16s
   INFO: 32 processes, local.
   FAILED: Build did NOT complete successfully
   make: *** [store] Error 1
   ```
   
   **To Reproduce (复现方法)**
   
   
   **Expected behavior (期望行为)**
   
   
   **Versions (各种版本)**
   OS:
   Compiler:
   brpc:
   protobuf:
   
   **Additional context/screenshots (更多上下文/截图)**
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to