TIRPCINCLUDEDIRS NOTFOUND解决Kylin10
# 一、问题复现(hadoop-pipes 失败)
现场信息
Bigtop 3.2.0 · Hadoop 3.3.4 · Kylin v10 (x86_64) · 构建目标:hadoop-pipes
```bash
[INFO] mkdirs '/opt/modules/bigtop/build/hadoop/rpm/BUILD/hadoop-3.3.4-src/hadoop-tools/hadoop-pipes/target/native'
[INFO] Running cmake /opt/modules/bigtop/build/hadoop/rpm/BUILD/hadoop-3.3.4-src/hadoop-tools/hadoop-pipes/src -DJVM_ARCH_DATA_MODEL=64 -G Unix Makefiles
[INFO] with extra environment variables {}
[WARNING] CMake Warning (dev) in CMakeLists.txt:
[WARNING] No project() command is present. The top-level CMakeLists.txt file must
[WARNING] contain a literal, direct call to the project() command. Add a line of
[WARNING] code such as
[WARNING]
[WARNING] project(ProjectName)
[WARNING]
[WARNING] near the top of the file, but after cmake_minimum_required().
[WARNING]
[WARNING] CMake is pretending there is a "project(Project)" command on the first
[WARNING] line.
[WARNING] This warning is for project developers. Use -Wno-dev to suppress it.
[WARNING]
[WARNING] -- The C compiler identification is GNU 7.3.0
[WARNING] -- The CXX compiler identification is GNU 7.3.0
[WARNING] -- Check for working C compiler: /usr/bin/cc
[WARNING] -- Check for working C compiler: /usr/bin/cc -- works
[WARNING] -- Detecting C compiler ABI info
[WARNING] -- Detecting C compiler ABI info - done
[WARNING] -- Detecting C compile features
[WARNING] -- Detecting C compile features - done
[WARNING] -- Check for working CXX compiler: /usr/bin/c++
[WARNING] -- Check for working CXX compiler: /usr/bin/c++ -- works
[WARNING] -- Detecting CXX compiler ABI info
[WARNING] -- Detecting CXX compiler ABI info - done
[WARNING] -- Detecting CXX compile features
[WARNING] -- Detecting CXX compile features - done
[WARNING] -- Looking for pthread.h
[WARNING] -- Looking for pthread.h - found
[WARNING] -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
[WARNING] -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
[WARNING] -- Looking for pthread_create in pthreads
[WARNING] -- Looking for pthread_create in pthreads - not found
[WARNING] -- Looking for pthread_create in pthread
[WARNING] -- Looking for pthread_create in pthread - found
[WARNING] -- Found Threads: TRUE
[WARNING] -- Found OpenSSL: /usr/lib64/libcrypto.so (found version "1.1.1f")
[WARNING] -- Checking for module 'libtirpc'
[WARNING] -- Package 'libtirpc', required by 'virtual:world', not found
[WARNING] -- Looking for dlopen in dl
[WARNING] -- Looking for dlopen in dl - found
[WARNING] CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
[WARNING] Please set them or make sure they are set and tested correctly in the CMake files:
[WARNING] TIRPC_INCLUDE_DIRS
[WARNING] used as include directory in directory /opt/modules/bigtop/build/hadoop/rpm/BUILD/hadoop-3.3.4-src/hadoop-tools/hadoop-pipes/src
[WARNING] used as include directory in directory /opt/modules/bigtop/build/hadoop/rpm/BUILD/hadoop-3.3.4-src/hadoop-tools/hadoop-pipes/src
[WARNING] used as include directory in directory /opt/modules/bigtop/build/hadoop/rpm/BUILD/hadoop-3.3.4-src/hadoop-tools/hadoop-pipes/src
[WARNING] used as include directory in directory /opt/modules/bigtop/build/hadoop/rpm/BUILD/hadoop-3.3.4-src/hadoop-tools/hadoop-pipes/src
[WARNING] used as include directory in directory /opt/modules/bigtop/build/hadoop/rpm/BUILD/hadoop-3.3.4-src/hadoop-tools/hadoop-pipes/src
[WARNING] used as include directory in directory /opt/modules/bigtop/build/hadoop/rpm/BUILD/hadoop-3.3.4-src/hadoop-tools/hadoop-pipes/src
[WARNING] used as include directory in directory /opt/modules/bigtop/build/hadoop/rpm/BUILD/hadoop-3.3.4-src/hadoop-tools/hadoop-pipes/src
[WARNING] used as include directory in directory /opt/modules/bigtop/build/hadoop/rpm/BUILD/hadoop-3.3.4-src/hadoop-tools/hadoop-pipes/src
[WARNING]
[WARNING] -- Configuring incomplete, errors occurred!
[WARNING] See also "/opt/modules/bigtop/build/hadoop/rpm/BUILD/hadoop-3.3.4-src/hadoop-tools/hadoop-pipes/target/native/CMakeFiles/CMakeOutput.log".
[WARNING] See also "/opt/modules/bigtop/build/hadoop/rpm/BUILD/hadoop-3.3.4-src/hadoop-tools/hadoop-pipes/target/native/CMakeFiles/CMakeError.log".
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Apache Hadoop Main 3.3.4:
[INFO]
[INFO] Apache Hadoop Main ................................. SUCCESS [ 15.789 s]
[INFO] Apache Hadoop Build Tools .......................... SUCCESS [ 1.620 s]
[INFO] Apache Hadoop Project POM .......................... SUCCESS [ 3.215 s]
[INFO] Apache Hadoop Annotations .......................... SUCCESS [ 2.484 s]
[INFO] Apache Hadoop Assemblies ........................... SUCCESS [ 0.585 s]
[INFO] Apache Hadoop Project Dist POM ..................... SUCCESS [ 3.025 s]
[INFO] Apache Hadoop Maven Plugins ........................ SUCCESS [ 10.636 s]
[INFO] Apache Hadoop MiniKDC .............................. SUCCESS [ 3.881 s]
[INFO] Apache Hadoop Auth ................................. SUCCESS [ 19.895 s]
[INFO] Apache Hadoop Auth Examples ........................ SUCCESS [ 4.975 s]
[INFO] Apache Hadoop Common ............................... SUCCESS [01:14 min]
[INFO] Apache Hadoop NFS .................................. SUCCESS [ 14.053 s]
[INFO] Apache Hadoop KMS .................................. SUCCESS [ 17.475 s]
[INFO] Apache Hadoop Registry ............................. SUCCESS [ 18.599 s]
[INFO] Apache Hadoop Common Project ....................... SUCCESS [ 0.558 s]
[INFO] Apache Hadoop HDFS Client .......................... SUCCESS [ 30.451 s]
[INFO] Apache Hadoop HDFS ................................. SUCCESS [01:03 min]
[INFO] Apache Hadoop HDFS Native Client ................... SUCCESS [01:32 min]
[INFO] Apache Hadoop HttpFS ............................... SUCCESS [ 25.277 s]
[INFO] Apache Hadoop HDFS-NFS ............................. SUCCESS [ 19.868 s]
[INFO] Apache Hadoop HDFS-RBF ............................. SUCCESS [ 26.298 s]
[INFO] Apache Hadoop HDFS Project ......................... SUCCESS [ 0.524 s]
[INFO] Apache Hadoop YARN ................................. SUCCESS [ 0.502 s]
[INFO] Apache Hadoop YARN API ............................. SUCCESS [ 17.309 s]
[INFO] Apache Hadoop YARN Common .......................... SUCCESS [ 26.198 s]
[INFO] Apache Hadoop YARN Server .......................... SUCCESS [ 0.574 s]
[INFO] Apache Hadoop YARN Server Common ................... SUCCESS [ 16.911 s]
[INFO] Apache Hadoop YARN NodeManager ..................... SUCCESS [ 38.140 s]
[INFO] Apache Hadoop YARN Web Proxy ....................... SUCCESS [ 17.733 s]
[INFO] Apache Hadoop YARN ApplicationHistoryService ....... SUCCESS [ 11.936 s]
[INFO] Apache Hadoop YARN Timeline Service ................ SUCCESS [ 14.720 s]
[INFO] Apache Hadoop YARN ResourceManager ................. SUCCESS [ 24.901 s]
[INFO] Apache Hadoop YARN Server Tests .................... SUCCESS [ 12.317 s]
[INFO] Apache Hadoop YARN Client .......................... SUCCESS [ 14.328 s]
[INFO] Apache Hadoop YARN SharedCacheManager .............. SUCCESS [ 15.782 s]
[INFO] Apache Hadoop YARN Timeline Plugin Storage ......... SUCCESS [ 16.704 s]
[INFO] Apache Hadoop YARN TimelineService HBase Backend ... SUCCESS [ 0.522 s]
[INFO] Apache Hadoop YARN TimelineService HBase Common .... SUCCESS [ 17.679 s]
[INFO] Apache Hadoop YARN TimelineService HBase Client .... SUCCESS [ 31.811 s]
[INFO] Apache Hadoop YARN TimelineService HBase Servers ... SUCCESS [ 0.497 s]
[INFO] Apache Hadoop YARN TimelineService HBase Server 1.2 SUCCESS [ 31.896 s]
[INFO] Apache Hadoop YARN TimelineService HBase tests ..... SUCCESS [ 17.615 s]
[INFO] Apache Hadoop YARN Router .......................... SUCCESS [ 16.423 s]
[INFO] Apache Hadoop YARN TimelineService DocumentStore ... SUCCESS [ 14.605 s]
[INFO] Apache Hadoop YARN Applications .................... SUCCESS [ 0.522 s]
[INFO] Apache Hadoop YARN DistributedShell ................ SUCCESS [ 18.557 s]
[INFO] Apache Hadoop YARN Unmanaged Am Launcher ........... SUCCESS [ 16.112 s]
[INFO] Apache Hadoop MapReduce Client ..................... SUCCESS [ 8.425 s]
[INFO] Apache Hadoop MapReduce Core ....................... SUCCESS [ 15.506 s]
[INFO] Apache Hadoop MapReduce Common ..................... SUCCESS [ 16.698 s]
[INFO] Apache Hadoop MapReduce Shuffle .................... SUCCESS [ 20.599 s]
[INFO] Apache Hadoop MapReduce App ........................ SUCCESS [ 24.351 s]
[INFO] Apache Hadoop MapReduce HistoryServer .............. SUCCESS [ 22.650 s]
[INFO] Apache Hadoop MapReduce JobClient .................. SUCCESS [ 23.108 s]
[INFO] Apache Hadoop Mini-Cluster ......................... SUCCESS [ 14.500 s]
[INFO] Apache Hadoop YARN Services ........................ SUCCESS [ 0.526 s]
[INFO] Apache Hadoop YARN Services Core ................... SUCCESS [ 20.407 s]
[INFO] Apache Hadoop YARN Services API .................... SUCCESS [ 22.026 s]
[INFO] Apache Hadoop YARN Application Catalog ............. SUCCESS [ 0.535 s]
[INFO] Apache Hadoop YARN Application Catalog Webapp ...... SUCCESS [ 44.506 s]
[INFO] Apache Hadoop YARN Application Catalog Docker Image SUCCESS [ 0.524 s]
[INFO] Apache Hadoop YARN Application MaWo ................ SUCCESS [ 0.509 s]
[INFO] Apache Hadoop YARN Application MaWo Core ........... SUCCESS [ 12.254 s]
[INFO] Apache Hadoop YARN Site ............................ SUCCESS [ 0.482 s]
[INFO] Apache Hadoop YARN Registry ........................ SUCCESS [ 4.848 s]
[INFO] Apache Hadoop YARN UI .............................. SUCCESS [01:33 min]
[INFO] Apache Hadoop YARN CSI ............................. SUCCESS [ 16.295 s]
[INFO] Apache Hadoop YARN Project ......................... SUCCESS [ 29.716 s]
[INFO] Apache Hadoop MapReduce HistoryServer Plugins ...... SUCCESS [ 13.318 s]
[INFO] Apache Hadoop MapReduce NativeTask ................. SUCCESS [ 36.867 s]
[INFO] Apache Hadoop MapReduce Uploader ................... SUCCESS [ 14.067 s]
[INFO] Apache Hadoop MapReduce Examples ................... SUCCESS [ 20.990 s]
[INFO] Apache Hadoop MapReduce ............................ SUCCESS [ 14.181 s]
[INFO] Apache Hadoop MapReduce Streaming .................. SUCCESS [ 22.647 s]
[INFO] Apache Hadoop Distributed Copy ..................... SUCCESS [ 19.256 s]
[INFO] Apache Hadoop Client Aggregator .................... SUCCESS [ 14.551 s]
[INFO] Apache Hadoop Dynamometer Workload Simulator ....... SUCCESS [ 14.312 s]
[INFO] Apache Hadoop Dynamometer Cluster Simulator ........ SUCCESS [ 21.008 s]
[INFO] Apache Hadoop Dynamometer Block Listing Generator .. SUCCESS [ 13.448 s]
[INFO] Apache Hadoop Dynamometer Dist ..................... SUCCESS [ 20.395 s]
[INFO] Apache Hadoop Dynamometer .......................... SUCCESS [ 0.508 s]
[INFO] Apache Hadoop Archives ............................. SUCCESS [ 18.854 s]
[INFO] Apache Hadoop Archive Logs ......................... SUCCESS [ 20.924 s]
[INFO] Apache Hadoop Rumen ................................ SUCCESS [ 23.878 s]
[INFO] Apache Hadoop Gridmix .............................. SUCCESS [ 21.550 s]
[INFO] Apache Hadoop Data Join ............................ SUCCESS [ 21.809 s]
[INFO] Apache Hadoop Extras ............................... SUCCESS [ 21.838 s]
[INFO] Apache Hadoop Pipes ................................ FAILURE [ 1.816 s]
[INFO] Apache Hadoop OpenStack support .................... SKIPPED
[INFO] Apache Hadoop Amazon Web Services support .......... SKIPPED
[INFO] Apache Hadoop Kafka Library support ................ SKIPPED
[INFO] Apache Hadoop Azure support ........................ SKIPPED
[INFO] Apache Hadoop Aliyun OSS support ................... SKIPPED
[INFO] Apache Hadoop Scheduler Load Simulator ............. SKIPPED
[INFO] Apache Hadoop Resource Estimator Service ........... SKIPPED
[INFO] Apache Hadoop Azure Data Lake support .............. SKIPPED
[INFO] Apache Hadoop Image Generation Tool ................ SKIPPED
[INFO] Apache Hadoop Tools Dist ........................... SKIPPED
[INFO] Apache Hadoop Tools ................................ SKIPPED
[INFO] Apache Hadoop Client API ........................... SKIPPED
[INFO] Apache Hadoop Client Runtime ....................... SKIPPED
[INFO] Apache Hadoop Client Packaging Invariants .......... SKIPPED
[INFO] Apache Hadoop Client Test Minicluster .............. SKIPPED
[INFO] Apache Hadoop Client Packaging Invariants for Test . SKIPPED
[INFO] Apache Hadoop Client Packaging Integration Tests ... SKIPPED
[INFO] Apache Hadoop Distribution ......................... SKIPPED
[INFO] Apache Hadoop Client Modules ....................... SKIPPED
[INFO] Apache Hadoop Cloud Storage ........................ SKIPPED
[INFO] Apache Hadoop Tencent COS Support .................. SKIPPED
[INFO] Apache Hadoop Cloud Storage Project ................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26:42 min
[INFO] Finished at: 2025-09-27T00:42:44Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:3.3.4:cmake-compile (cmake-compile) on project hadoop-pipes: CMake failed with error code 1 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :hadoop-pipes
error: Bad exit status from /var/tmp/rpm-tmp.oJrxTr (%build)
RPM build errors:
line 507: second Description
Bad exit status from /var/tmp/rpm-tmp.oJrxTr (%build)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200

关键信号
Package 'libtirpc' not foundTIRPC_INCLUDE_DIRS NOTFOUND- 附带的
line 507: second Description属于 spec 描述段重复 的独立问题,见文末“常见坑位”。
# 二、根因分析(glibc → 外置 TIRPC)
# 1、背景
- Kylin v10 的 glibc 已不再内置传统 SunRPC 头文件与库(
rpc/rpc.h等),RPC 能力外置到 libtirpc。 - hadoop-pipes 在本地编译时会检测并使用 RPC 能力,若缺少
libtirpc及其 -devel 头文件,CMake 就找不到TIRPC_INCLUDE_DIRS。
# 2、日志解读
Checking for module 'libtirpc' → not found:pkg-config没有输出该模块信息;TIRPC_INCLUDE_DIRS NOTFOUND:CMake 的 Find 模块或自探测无法定位到头文件路径(如/usr/include/tirpc)。
# 三、最小可行修复(在线/内网镜像均适用)
# 1、安装依赖
yum install -y libtirpc libtirpc-devel pkgconf-pkg-config
1
# 2、验证探测
pkg-config --cflags --libs libtirpc
# 期望输出:包含 -I/usr/include/tirpc 以及 -ltirpc
1
2
2
# 3、重试构建(精准回打)
只重试失败模块可节省时间:
cd /opt/modules/bigtop/build/hadoop/rpm/BUILD/hadoop-3.3.4-src
mvn -pl hadoop-tools/hadoop-pipes -am -DskipTests -DskipITs clean install
1
2
2
如果你的构建系统使用了自定义前缀
当 libtirpc 安装在非标准路径时,补充 PKG_CONFIG_PATH 或 CMake 变量显式指向:
export PKG_CONFIG_PATH=/opt/tirpc/lib/pkgconfig:$PKG_CONFIG_PATH
cmake .. -DTIRPC_INCLUDE_DIRS=/opt/tirpc/include/tirpc -DTIRPC_LIBRARIES=/opt/tirpc/lib/libtirpc.so
1
2
2
- 01
- Ambari开启Kerberos认证加密类型错误 Kylin V1011-05
- 02
- KERBEROS SERVICE CHECK 报错11-04