apache / apache/pulsar-client-node
About cmake pulsar-client-cpp
- Ngôn ngữ chính
- C++
- Star
- 164
- Fork
- 98
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
clang-tidy found at /usr/bin/clang-tidy
clang-format not found
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
GMOCK_INCLUDE_PATH
used as include directory in directory /home/liutt/Downloads/pulsar/pulsar-client-cpp
.......
-- Configuring incomplete, errors occurred!
See also "/home/liutt/Downloads/pulsar/pulsar-client-cpp/CMakeFiles/CMakeOutput.log".
See also "/home/liutt/Downloads/pulsar/pulsar-client-cpp/CMakeFiles/CMakeError.log".
CMakeError.log:
Linking C executable cmTC_aa1c4
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_aa1c4.dir/link.txt --verbose=1
/usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD CMakeFiles/cmTC_aa1c4.dir/src.c.o -o cmTC_aa1c4
/usr/bin/ld: CMakeFiles/cmTC_aa1c4.dir/src.c.o: in function `main':
src.c:(.text+0x46): undefined reference to `pthread_create'
/usr/bin/ld: src.c:(.text+0x52): undefined reference to `pthread_detach'
/usr/bin/ld: src.c:(.text+0x63): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_aa1c4.dir/build.make:87:cmTC_aa1c4] 错误 1
make[1]: 离开目录“/home/liutt/Downloads/pulsar/pulsar-client-cpp/build/CMakeFiles/CMakeTmp”
make: *** [Makefile:121:cmTC_aa1c4/fast] 错误 2
Source file was:
#include
void* test_func(void* data)
{
return data;
}
int main(void)
{
pthread_t thread;
pthread_create(&thread, NULL, test_func, NULL);
pthread_detach(thread);
pthread_join(thread, NULL);
pthread_atfork(NULL, NULL, NULL);
pthread_exit(NULL);
return 0;
}
Determining if the getauxval exist failed with the following output:
Change Dir: /home/liutt/Downloads/pulsar/pulsar-client-cpp/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_b8f12/fast && /usr/bin/make -f CMakeFiles/cmTC_b8f12.dir/build.make CMakeFiles/cmTC_b8f12.dir/build
make[1]: 进入目录“/home/liutt/Downloads/pulsar/pulsar-client-cpp/build/CMakeFiles/CMakeTmp”
Building CXX object CMakeFiles/cmTC_b8f12.dir/CheckSymbolExists.cxx.o
/usr/bin/c++ -D_PULSAR_VERSION_INTERNAL_=\"\" -fPIE -o CMakeFiles/cmTC_b8f12.dir/CheckSymbolExists.cxx.o -c /home/liutt/Downloads/pulsar/pulsar-client-cpp/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx
/home/liutt/Downloads/pulsar/pulsar-client-cpp/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:2:10: fatal error: auvx.h: 没有那个文件或目录
2 | #include
| ^~~~~~~~
compilation terminated.
make[1]: *** [CMakeFiles/cmTC_b8f12.dir/build.make:66:CMakeFiles/cmTC_b8f12.dir/CheckSymbolExists.cxx.o] 错误 1
make[1]: 离开目录“/home/liutt/Downloads/pulsar/pulsar-client-cpp/build/CMakeFiles/CMakeTmp”
make: *** [Makefile:121:cmTC_b8f12/fast] 错误 2
File /home/liutt/Downloads/pulsar/pulsar-client-cpp/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:
/* */
#include
int main(int argc, char** argv)
{
(void)argv;
#ifndef getauxval
return ((int*)(&getauxval))[argc];
#else
(void)argc;
return 0;
#endif
}
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Bắt đầu với đầu ra cấu hình CMake cùng các tệp CMakeOutput.log và CMakeError.log được tạo ra. Tái hiện lỗi cấu hình, sau đó điều tra GMOCK_INCLUDE_PATH bị thiếu, bước kiểm tra liên kết pthread, bước kiểm tra getauxval và clang-format bị thiếu; hoàn tất khi CMake cấu hình thành công mà không có các lỗi này.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- cmake, cpp
- Lĩnh vực
- build-system
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100