質問編集履歴

2

ああ

2021/06/13 09:47

投稿

Clementine
Clementine

スコア158

test CHANGED
@@ -1 +1 @@
1
- OSRMのビルド作業中のcmakeが実行できない
1
+ OSRMのビルド作業中のcmakeが実行できない
test CHANGED
@@ -93,295 +93,3 @@
93
93
 
94
94
 
95
95
  しかしGCCのバージョンは7.3.0の為、原因が分からない状態です。
96
-
97
-
98
-
99
- ### 頂いた回答より追記
100
-
101
- buildディレクトリ内のファイルを削除して実行しましたが症状変わらず次のコマンドを実行しても変化なしでした。
102
-
103
- ```
104
-
105
- # CC=gcc-7.3 CXX=/usr/bin/g++-7.3 cmake -G "Unix Makefiles" ..
106
-
107
- CMake Deprecation Warning at CMakeLists.txt:57 (cmake_policy):
108
-
109
- The OLD behavior for policy CMP0048 will be removed from a future version
110
-
111
- of CMake.
112
-
113
-
114
-
115
- The cmake-policies(7) manual explains that the OLD behaviors of all
116
-
117
- policies are deprecated and that a policy should be set to OLD only under
118
-
119
- specific short-term circumstances. Projects should be ported to the NEW
120
-
121
- behavior and not rely on setting a policy to OLD.
122
-
123
-
124
-
125
-
126
-
127
- -- Building on a 64 bit system
128
-
129
- CMake Error at CMakeLists.txt:125 (message):
130
-
131
- GCC>=5.0 required. In case you are on Ubuntu upgrade via
132
-
133
- ppa:ubuntu-toolchain-r/test
134
-
135
-
136
-
137
-
138
-
139
- -- Configuring incomplete, errors occurred!
140
-
141
- See also "/var/www/html/osrm/osrm-backend/build/CMakeFiles/CMakeOutput.log".
142
-
143
- ```
144
-
145
- またログを確認するようにアラートが出たので参考情報として以下に転記します。
146
-
147
- ```
148
-
149
- cat /var/www/html/osrm/osrm-backend/build/CMakeFiles/CMakeOutput.log
150
-
151
- The system is: Linux - 3.10.0-1127.19.1.el7.x86_64 - x86_64
152
-
153
- Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
154
-
155
- Compiler: /usr/bin/cc
156
-
157
- Build flags:
158
-
159
- Id flags:
160
-
161
-
162
-
163
- The output was:
164
-
165
- 0
166
-
167
-
168
-
169
-
170
-
171
- Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out"
172
-
173
-
174
-
175
- The C compiler identification is GNU, found in "/var/www/html/osrm/osrm-backend/build/CMakeFiles/3.20.3/CompilerIdC/a.out"
176
-
177
-
178
-
179
- Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
180
-
181
- Compiler: /usr/bin/c++
182
-
183
- Build flags:
184
-
185
- Id flags:
186
-
187
-
188
-
189
- The output was:
190
-
191
- 0
192
-
193
-
194
-
195
-
196
-
197
- Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"
198
-
199
-
200
-
201
- // 省略
202
-
203
-
204
-
205
- Detecting CXX [-std=c++1y] compiler features compiled with the following output:
206
-
207
- Change Dir: /var/www/html/osrm/osrm-backend/build/CMakeFiles/CMakeTmp
208
-
209
-
210
-
211
- Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_70cc8/fast && /usr/bin/gmake -f CMakeFiles/cmTC_70cc8.dir/build.make CMakeFiles/cmTC_70cc8.dir/build
212
-
213
- gmake[1]: Entering directory `/var/www/html/osrm/osrm-backend/build/CMakeFiles/CMakeTmp'
214
-
215
- Building CXX object CMakeFiles/cmTC_70cc8.dir/feature_tests.cxx.o
216
-
217
- /usr/bin/c++ -std=c++1y -o CMakeFiles/cmTC_70cc8.dir/feature_tests.cxx.o -c /var/www/html/osrm/osrm-backend/build/CMakeFiles/feature_tests.cxx
218
-
219
- Linking CXX executable cmTC_70cc8
220
-
221
- /opt/cmake-3.20.3-linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTC_70cc8.dir/link.txt --verbose=1
222
-
223
- /usr/bin/c++ -rdynamic CMakeFiles/cmTC_70cc8.dir/feature_tests.cxx.o -o cmTC_70cc8
224
-
225
- gmake[1]: Leaving directory `/var/www/html/osrm/osrm-backend/build/CMakeFiles/CMakeTmp'
226
-
227
-
228
-
229
-
230
-
231
-
232
-
233
- Feature record: CXX_FEATURE:1cxx_template_template_parameters
234
-
235
- Feature record: CXX_FEATURE:1cxx_alias_templates
236
-
237
- Feature record: CXX_FEATURE:1cxx_alignas
238
-
239
- Feature record: CXX_FEATURE:1cxx_alignof
240
-
241
- Feature record: CXX_FEATURE:1cxx_attributes
242
-
243
- Feature record: CXX_FEATURE:1cxx_auto_type
244
-
245
- Feature record: CXX_FEATURE:1cxx_constexpr
246
-
247
- Feature record: CXX_FEATURE:1cxx_decltype
248
-
249
- Feature record: CXX_FEATURE:1cxx_decltype_incomplete_return_types
250
-
251
- Feature record: CXX_FEATURE:1cxx_default_function_template_args
252
-
253
- Feature record: CXX_FEATURE:1cxx_defaulted_functions
254
-
255
- Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers
256
-
257
- Feature record: CXX_FEATURE:1cxx_delegating_constructors
258
-
259
- Feature record: CXX_FEATURE:1cxx_deleted_functions
260
-
261
- Feature record: CXX_FEATURE:1cxx_enum_forward_declarations
262
-
263
- Feature record: CXX_FEATURE:1cxx_explicit_conversions
264
-
265
- Feature record: CXX_FEATURE:1cxx_extended_friend_declarations
266
-
267
- Feature record: CXX_FEATURE:1cxx_extern_templates
268
-
269
- Feature record: CXX_FEATURE:1cxx_final
270
-
271
- Feature record: CXX_FEATURE:1cxx_func_identifier
272
-
273
- Feature record: CXX_FEATURE:1cxx_generalized_initializers
274
-
275
- Feature record: CXX_FEATURE:1cxx_inheriting_constructors
276
-
277
- Feature record: CXX_FEATURE:1cxx_inline_namespaces
278
-
279
- Feature record: CXX_FEATURE:1cxx_lambdas
280
-
281
- Feature record: CXX_FEATURE:1cxx_local_type_template_args
282
-
283
- Feature record: CXX_FEATURE:1cxx_long_long_type
284
-
285
- Feature record: CXX_FEATURE:1cxx_noexcept
286
-
287
- Feature record: CXX_FEATURE:1cxx_nonstatic_member_init
288
-
289
- Feature record: CXX_FEATURE:1cxx_nullptr
290
-
291
- Feature record: CXX_FEATURE:1cxx_override
292
-
293
- Feature record: CXX_FEATURE:1cxx_range_for
294
-
295
- Feature record: CXX_FEATURE:1cxx_raw_string_literals
296
-
297
- Feature record: CXX_FEATURE:1cxx_reference_qualified_functions
298
-
299
- Feature record: CXX_FEATURE:1cxx_right_angle_brackets
300
-
301
- Feature record: CXX_FEATURE:1cxx_rvalue_references
302
-
303
- Feature record: CXX_FEATURE:1cxx_sizeof_member
304
-
305
- Feature record: CXX_FEATURE:1cxx_static_assert
306
-
307
- Feature record: CXX_FEATURE:1cxx_strong_enums
308
-
309
- Feature record: CXX_FEATURE:1cxx_thread_local
310
-
311
- Feature record: CXX_FEATURE:1cxx_trailing_return_types
312
-
313
- Feature record: CXX_FEATURE:1cxx_unicode_literals
314
-
315
- Feature record: CXX_FEATURE:1cxx_uniform_initialization
316
-
317
- Feature record: CXX_FEATURE:1cxx_unrestricted_unions
318
-
319
- Feature record: CXX_FEATURE:1cxx_user_literals
320
-
321
- Feature record: CXX_FEATURE:1cxx_variadic_macros
322
-
323
- Feature record: CXX_FEATURE:1cxx_variadic_templates
324
-
325
- Feature record: CXX_FEATURE:0cxx_aggregate_default_initializers
326
-
327
- Feature record: CXX_FEATURE:0cxx_attribute_deprecated
328
-
329
- Feature record: CXX_FEATURE:0cxx_binary_literals
330
-
331
- Feature record: CXX_FEATURE:0cxx_contextual_conversions
332
-
333
- Feature record: CXX_FEATURE:0cxx_decltype_auto
334
-
335
- Feature record: CXX_FEATURE:0cxx_digit_separators
336
-
337
- Feature record: CXX_FEATURE:0cxx_generic_lambdas
338
-
339
- Feature record: CXX_FEATURE:0cxx_lambda_init_captures
340
-
341
- Feature record: CXX_FEATURE:0cxx_relaxed_constexpr
342
-
343
- Feature record: CXX_FEATURE:0cxx_return_type_deduction
344
-
345
- Feature record: CXX_FEATURE:0cxx_variable_templates
346
-
347
- ```
348
-
349
-
350
-
351
- ログより何処が原因なのか未だわかりませんが。教えて頂いたCMAKE_CXX_COMPILER_VERSIONの変数によりCMakeLists.txtを確認したところ、
352
-
353
- ```
354
-
355
- if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
356
-
357
- if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0)
358
-
359
- message(FATAL_ERROR "GCC>=5.0 required. In case you are on Ubuntu upgrade via ppa:ubuntu-toolchain-r/test")
360
-
361
- endif()
362
-
363
- elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
364
-
365
- if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.4)
366
-
367
- message(FATAL_ERROR "Clang>=3.4 required. In case you are on Ubuntu upgrade via http://apt.llvm.org")
368
-
369
- endif()
370
-
371
- endif()
372
-
373
- ```
374
-
375
- のコードより
376
-
377
- ```
378
-
379
- GCC>=5.0 required. In case you are on Ubuntu upgrade via ppa:ubuntu-toolchain-r/test
380
-
381
- ```
382
-
383
- のエラーが原因で止まっているように見えないように感じます。
384
-
385
-
386
-
387
- 私の認識が間違っているのでしょうか?

1

追記

2021/06/13 09:47

投稿

Clementine
Clementine

スコア158

test CHANGED
File without changes
test CHANGED
@@ -93,3 +93,295 @@
93
93
 
94
94
 
95
95
  しかしGCCのバージョンは7.3.0の為、原因が分からない状態です。
96
+
97
+
98
+
99
+ ### 頂いた回答より追記
100
+
101
+ buildディレクトリ内のファイルを削除して実行しましたが症状変わらず次のコマンドを実行しても変化なしでした。
102
+
103
+ ```
104
+
105
+ # CC=gcc-7.3 CXX=/usr/bin/g++-7.3 cmake -G "Unix Makefiles" ..
106
+
107
+ CMake Deprecation Warning at CMakeLists.txt:57 (cmake_policy):
108
+
109
+ The OLD behavior for policy CMP0048 will be removed from a future version
110
+
111
+ of CMake.
112
+
113
+
114
+
115
+ The cmake-policies(7) manual explains that the OLD behaviors of all
116
+
117
+ policies are deprecated and that a policy should be set to OLD only under
118
+
119
+ specific short-term circumstances. Projects should be ported to the NEW
120
+
121
+ behavior and not rely on setting a policy to OLD.
122
+
123
+
124
+
125
+
126
+
127
+ -- Building on a 64 bit system
128
+
129
+ CMake Error at CMakeLists.txt:125 (message):
130
+
131
+ GCC>=5.0 required. In case you are on Ubuntu upgrade via
132
+
133
+ ppa:ubuntu-toolchain-r/test
134
+
135
+
136
+
137
+
138
+
139
+ -- Configuring incomplete, errors occurred!
140
+
141
+ See also "/var/www/html/osrm/osrm-backend/build/CMakeFiles/CMakeOutput.log".
142
+
143
+ ```
144
+
145
+ またログを確認するようにアラートが出たので参考情報として以下に転記します。
146
+
147
+ ```
148
+
149
+ cat /var/www/html/osrm/osrm-backend/build/CMakeFiles/CMakeOutput.log
150
+
151
+ The system is: Linux - 3.10.0-1127.19.1.el7.x86_64 - x86_64
152
+
153
+ Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
154
+
155
+ Compiler: /usr/bin/cc
156
+
157
+ Build flags:
158
+
159
+ Id flags:
160
+
161
+
162
+
163
+ The output was:
164
+
165
+ 0
166
+
167
+
168
+
169
+
170
+
171
+ Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out"
172
+
173
+
174
+
175
+ The C compiler identification is GNU, found in "/var/www/html/osrm/osrm-backend/build/CMakeFiles/3.20.3/CompilerIdC/a.out"
176
+
177
+
178
+
179
+ Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
180
+
181
+ Compiler: /usr/bin/c++
182
+
183
+ Build flags:
184
+
185
+ Id flags:
186
+
187
+
188
+
189
+ The output was:
190
+
191
+ 0
192
+
193
+
194
+
195
+
196
+
197
+ Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"
198
+
199
+
200
+
201
+ // 省略
202
+
203
+
204
+
205
+ Detecting CXX [-std=c++1y] compiler features compiled with the following output:
206
+
207
+ Change Dir: /var/www/html/osrm/osrm-backend/build/CMakeFiles/CMakeTmp
208
+
209
+
210
+
211
+ Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_70cc8/fast && /usr/bin/gmake -f CMakeFiles/cmTC_70cc8.dir/build.make CMakeFiles/cmTC_70cc8.dir/build
212
+
213
+ gmake[1]: Entering directory `/var/www/html/osrm/osrm-backend/build/CMakeFiles/CMakeTmp'
214
+
215
+ Building CXX object CMakeFiles/cmTC_70cc8.dir/feature_tests.cxx.o
216
+
217
+ /usr/bin/c++ -std=c++1y -o CMakeFiles/cmTC_70cc8.dir/feature_tests.cxx.o -c /var/www/html/osrm/osrm-backend/build/CMakeFiles/feature_tests.cxx
218
+
219
+ Linking CXX executable cmTC_70cc8
220
+
221
+ /opt/cmake-3.20.3-linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTC_70cc8.dir/link.txt --verbose=1
222
+
223
+ /usr/bin/c++ -rdynamic CMakeFiles/cmTC_70cc8.dir/feature_tests.cxx.o -o cmTC_70cc8
224
+
225
+ gmake[1]: Leaving directory `/var/www/html/osrm/osrm-backend/build/CMakeFiles/CMakeTmp'
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+ Feature record: CXX_FEATURE:1cxx_template_template_parameters
234
+
235
+ Feature record: CXX_FEATURE:1cxx_alias_templates
236
+
237
+ Feature record: CXX_FEATURE:1cxx_alignas
238
+
239
+ Feature record: CXX_FEATURE:1cxx_alignof
240
+
241
+ Feature record: CXX_FEATURE:1cxx_attributes
242
+
243
+ Feature record: CXX_FEATURE:1cxx_auto_type
244
+
245
+ Feature record: CXX_FEATURE:1cxx_constexpr
246
+
247
+ Feature record: CXX_FEATURE:1cxx_decltype
248
+
249
+ Feature record: CXX_FEATURE:1cxx_decltype_incomplete_return_types
250
+
251
+ Feature record: CXX_FEATURE:1cxx_default_function_template_args
252
+
253
+ Feature record: CXX_FEATURE:1cxx_defaulted_functions
254
+
255
+ Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers
256
+
257
+ Feature record: CXX_FEATURE:1cxx_delegating_constructors
258
+
259
+ Feature record: CXX_FEATURE:1cxx_deleted_functions
260
+
261
+ Feature record: CXX_FEATURE:1cxx_enum_forward_declarations
262
+
263
+ Feature record: CXX_FEATURE:1cxx_explicit_conversions
264
+
265
+ Feature record: CXX_FEATURE:1cxx_extended_friend_declarations
266
+
267
+ Feature record: CXX_FEATURE:1cxx_extern_templates
268
+
269
+ Feature record: CXX_FEATURE:1cxx_final
270
+
271
+ Feature record: CXX_FEATURE:1cxx_func_identifier
272
+
273
+ Feature record: CXX_FEATURE:1cxx_generalized_initializers
274
+
275
+ Feature record: CXX_FEATURE:1cxx_inheriting_constructors
276
+
277
+ Feature record: CXX_FEATURE:1cxx_inline_namespaces
278
+
279
+ Feature record: CXX_FEATURE:1cxx_lambdas
280
+
281
+ Feature record: CXX_FEATURE:1cxx_local_type_template_args
282
+
283
+ Feature record: CXX_FEATURE:1cxx_long_long_type
284
+
285
+ Feature record: CXX_FEATURE:1cxx_noexcept
286
+
287
+ Feature record: CXX_FEATURE:1cxx_nonstatic_member_init
288
+
289
+ Feature record: CXX_FEATURE:1cxx_nullptr
290
+
291
+ Feature record: CXX_FEATURE:1cxx_override
292
+
293
+ Feature record: CXX_FEATURE:1cxx_range_for
294
+
295
+ Feature record: CXX_FEATURE:1cxx_raw_string_literals
296
+
297
+ Feature record: CXX_FEATURE:1cxx_reference_qualified_functions
298
+
299
+ Feature record: CXX_FEATURE:1cxx_right_angle_brackets
300
+
301
+ Feature record: CXX_FEATURE:1cxx_rvalue_references
302
+
303
+ Feature record: CXX_FEATURE:1cxx_sizeof_member
304
+
305
+ Feature record: CXX_FEATURE:1cxx_static_assert
306
+
307
+ Feature record: CXX_FEATURE:1cxx_strong_enums
308
+
309
+ Feature record: CXX_FEATURE:1cxx_thread_local
310
+
311
+ Feature record: CXX_FEATURE:1cxx_trailing_return_types
312
+
313
+ Feature record: CXX_FEATURE:1cxx_unicode_literals
314
+
315
+ Feature record: CXX_FEATURE:1cxx_uniform_initialization
316
+
317
+ Feature record: CXX_FEATURE:1cxx_unrestricted_unions
318
+
319
+ Feature record: CXX_FEATURE:1cxx_user_literals
320
+
321
+ Feature record: CXX_FEATURE:1cxx_variadic_macros
322
+
323
+ Feature record: CXX_FEATURE:1cxx_variadic_templates
324
+
325
+ Feature record: CXX_FEATURE:0cxx_aggregate_default_initializers
326
+
327
+ Feature record: CXX_FEATURE:0cxx_attribute_deprecated
328
+
329
+ Feature record: CXX_FEATURE:0cxx_binary_literals
330
+
331
+ Feature record: CXX_FEATURE:0cxx_contextual_conversions
332
+
333
+ Feature record: CXX_FEATURE:0cxx_decltype_auto
334
+
335
+ Feature record: CXX_FEATURE:0cxx_digit_separators
336
+
337
+ Feature record: CXX_FEATURE:0cxx_generic_lambdas
338
+
339
+ Feature record: CXX_FEATURE:0cxx_lambda_init_captures
340
+
341
+ Feature record: CXX_FEATURE:0cxx_relaxed_constexpr
342
+
343
+ Feature record: CXX_FEATURE:0cxx_return_type_deduction
344
+
345
+ Feature record: CXX_FEATURE:0cxx_variable_templates
346
+
347
+ ```
348
+
349
+
350
+
351
+ ログより何処が原因なのか未だわかりませんが。教えて頂いたCMAKE_CXX_COMPILER_VERSIONの変数によりCMakeLists.txtを確認したところ、
352
+
353
+ ```
354
+
355
+ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
356
+
357
+ if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0)
358
+
359
+ message(FATAL_ERROR "GCC>=5.0 required. In case you are on Ubuntu upgrade via ppa:ubuntu-toolchain-r/test")
360
+
361
+ endif()
362
+
363
+ elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
364
+
365
+ if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.4)
366
+
367
+ message(FATAL_ERROR "Clang>=3.4 required. In case you are on Ubuntu upgrade via http://apt.llvm.org")
368
+
369
+ endif()
370
+
371
+ endif()
372
+
373
+ ```
374
+
375
+ のコードより
376
+
377
+ ```
378
+
379
+ GCC>=5.0 required. In case you are on Ubuntu upgrade via ppa:ubuntu-toolchain-r/test
380
+
381
+ ```
382
+
383
+ のエラーが原因で止まっているように見えないように感じます。
384
+
385
+
386
+
387
+ 私の認識が間違っているのでしょうか?