songdongsheng opened a new issue, #1765:
URL: https://github.com/apache/incubator-brpc/issues/1765
**Describe the bug (描述bug)**
```
$ cmake ..
...
CMake Error at
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Threads (missing: Threads_FOUND)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594
(_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake/Modules/FindThreads.cmake:238
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:146 (find_package)
-- Configuring incomplete, errors occurred!
See also "/tmp/tmp.XYgLIzv7nY/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/tmp.XYgLIzv7nY/build/CMakeFiles/CMakeError.log".
```
$ cat CMakeError.log
```
gmake[1]: Entering directory '/tmp/tmp.XYgLIzv7nY/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_b263f.dir/CheckIncludeFile.c.o
/usr/bin/gcc -DBRPC_WITH_GLOG=0 -DGFLAGS_NS=google
-DBTHREAD_USE_FAST_PTHREAD_MUTEX -D__const__= -D_GNU_SOURCE -DUSE_SYMBOLIZE
-DNO_TCMALLOC -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-D__STDC_CONSTANT_MACROS -DBRPC_REVISION=\"1.1.0\" -D__STRICT_ANSI__ -g -O2
-pipe -Wall -W -fPIC -fstrict-aliasing -Wno-unused-parameter
-fno-omit-frame-pointer -o CMakeFiles/cmTC_b263f.dir/CheckIncludeFile.c.o -c
/tmp/tmp.XYgLIzv7nY/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
In file included from /usr/include/features.h:488,
from /usr/include/pthread.h:21,
from
/tmp/tmp.XYgLIzv7nY/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:
/usr/include/sys/cdefs.h:256:60: error: macro "__has_attribute" requires an
identifier
256 | #if __GNUC_PREREQ (2,5) || __glibc_has_attribute (__const__)
| ^
gmake[1]: *** [CMakeFiles/cmTC_b263f.dir/build.make:78:
CMakeFiles/cmTC_b263f.dir/CheckIncludeFile.c.o] Error 1
gmake[1]: Leaving directory '/tmp/tmp.XYgLIzv7nY/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_b263f/fast] Error 2
```
**To Reproduce (复现方法)**
```
podman run --pull always --rm -it registry.access.redhat.com/ubi9
dnf --best --setopt=install_weak_deps=False -y install \
clang \
cmake \
lld \
make \
openssl-devel \
sqlite-devel
```
**Expected behavior (期望行为)**
Build successfully.
**Versions (各种版本)**
OS: UBI9, i.e. RHEL 9
Compiler: clang 13.0.1, or gcc 11.2.1
brpc: 1.1.0
protobuf: 3.20.1
**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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]