Open henrik143 opened 2 years ago
I am currently trying to get the ONNX Runtime to work on the ZCU 102. For this I used the following instructions: https://github.com/edelaye/onnxruntime/blob/gh-pages-update-vitis-ai-doc-1/docs/reference/execution-providers/Vitis-AI-ExecutionProvider.md
When I build the docker I get an error. First I looked for the pyxir.cmake file, however the error others get is already fixed there.
if(Python_EXECUTABLE) execute_process(COMMAND "${Python_EXECUTABLE}" "-c" "import pyxir as px; print(px.get_include_dir()); print(px.get_lib_dir());" RESULT_VARIABLE __result OUTPUT_VARIABLE __output OUTPUT_STRIP_TRAILING_WHITESPACE)
Thanks in advance for your help to solve this problem!
No response
Ubuntu 18.04.6 LTS (VM), Docker 19.03.1
sudo docker build --build-arg PYXIR_FLAG="--use_dpuczdx8g_vart" -t onnxruntime-vitisai -f Dockerfile.vitisai .
[...]
[ 35%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/objectivec/objectivec_enum_field.cc.o [ 35%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/objectivec/objectivec_extension.cc.o [ 35%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/objectivec/objectivec_field.cc.o [ 35%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_file.cc.o [ 35%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/objectivec/objectivec_generator.cc.o [ 36%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/objectivec/objectivec_helpers.cc.o [ 36%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/objectivec/objectivec_map_field.cc.o [ 36%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/objectivec/objectivec_message.cc.o [ 36%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/objectivec/objectivec_message_field.cc.o [ 36%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/objectivec/objectivec_oneof.cc.o [ 36%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/objectivec/objectivec_primitive_field.cc.o [ 36%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/php/php_generator.cc.o [ 36%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/plugin.cc.o [ 36%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/plugin.pb.cc.o [ 36%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/python/python_generator.cc.o [ 36%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/ruby/ruby_generator.cc.o [ 36%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/subprocess.cc.o [ 36%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/zip_writer.cc.o [ 36%] Building CXX object external/abseil-cpp/absl/random/CMakeFiles/absl_random_seed_sequences.dir/seed_sequences.cc.o [ 36%] Linking CXX static library libabsl_random_seed_sequences.a [ 36%] Built target absl_random_seed_sequences [ 36%] Building CXX object external/abseil-cpp/absl/strings/CMakeFiles/absl_cordz_handle.dir/internal/cordz_handle.cc.o [ 36%] Building CXX object external/abseil-cpp/absl/container/CMakeFiles/absl_hashtablez_sampler.dir/internal/hashtablez_sampler.cc.o [ 36%] Building CXX object external/abseil-cpp/absl/flags/CMakeFiles/absl_flags_program_name.dir/internal/program_name.cc.o [ 36%] Building CXX object external/abseil-cpp/absl/container/CMakeFiles/absl_hashtablez_sampler.dir/internal/hashtablez_sampler_force_weak_definition.cc.o [ 37%] Linking CXX static library libabsl_cordz_handle.a [ 37%] Built target absl_cordz_handle [ 37%] Building CXX object external/abseil-cpp/absl/strings/CMakeFiles/absl_cordz_info.dir/internal/cordz_info.cc.o [ 37%] Linking CXX static library libabsl_flags_program_name.a [ 37%] Built target absl_flags_program_name [ 37%] Building CXX object external/abseil-cpp/absl/flags/CMakeFiles/absl_flags_config.dir/usage_config.cc.o [ 37%] Linking CXX static library libabsl_hashtablez_sampler.a [ 37%] Built target absl_hashtablez_sampler [ 37%] Building CXX object external/abseil-cpp/absl/container/CMakeFiles/absl_raw_hash_set.dir/internal/raw_hash_set.cc.o [ 37%] Linking CXX static library libabsl_cordz_info.a [ 37%] Built target absl_cordz_info [ 37%] Building CXX object external/abseil-cpp/absl/strings/CMakeFiles/absl_cordz_sample_token.dir/internal/cordz_sample_token.cc.o [ 37%] Building CXX object external/abseil-cpp/absl/strings/CMakeFiles/absl_cord.dir/cord.cc.o [ 37%] Linking CXX static library libabsl_flags_config.a [ 37%] Built target absl_flags_config [ 37%] Building CXX object external/abseil-cpp/absl/flags/CMakeFiles/absl_flags_internal.dir/internal/flag.cc.o [ 37%] Linking CXX static library libprotoc.a [ 38%] Linking CXX static library libabsl_raw_hash_set.a [ 38%] Built target absl_raw_hash_set [ 38%] Linking CXX static library libabsl_cordz_sample_token.a [ 38%] Built target absl_cordz_sample_token [ 38%] Linking CXX static library libabsl_flags_internal.a [ 38%] Built target absl_flags_internal [ 38%] Built target libprotoc [ 38%] Building CXX object external/protobuf/cmake/CMakeFiles/protoc.dir/__/src/google/protobuf/compiler/main.cc.o [ 38%] Linking CXX executable protoc [ 38%] Linking CXX static library libabsl_cord.a [ 38%] Built target absl_cord [ 38%] Building CXX object external/abseil-cpp/absl/flags/CMakeFiles/absl_flags_reflection.dir/reflection.cc.o [ 38%] Building CXX object external/abseil-cpp/absl/status/CMakeFiles/absl_status.dir/status.cc.o [ 38%] Building CXX object external/abseil-cpp/absl/status/CMakeFiles/absl_status.dir/status_payload_printer.cc.o [ 38%] Built target protoc [ 38%] Running gen_proto.py on onnx/onnx.in.proto Processing /code/onnxruntime/cmake/external/onnx/onnx/onnx.in.proto Writing /code/onnxruntime/build/Linux/RelWithDebInfo/external/onnx/onnx/onnx-ml.proto Writing /code/onnxruntime/build/Linux/RelWithDebInfo/external/onnx/onnx/onnx-ml.proto3 generating /code/onnxruntime/build/Linux/RelWithDebInfo/external/onnx/onnx/onnx_pb.py [ 38%] Running C++ protocol buffer compiler on /code/onnxruntime/build/Linux/RelWithDebInfo/external/onnx/onnx/onnx-ml.proto [ 38%] Built target gen_onnx_proto [ 38%] Running gen_proto.py on onnx/onnx-operators.in.proto [ 38%] Running gen_proto.py on onnx/onnx-data.in.proto Processing /code/onnxruntime/cmake/external/onnx/onnx/onnx-operators.in.proto Writing /code/onnxruntime/build/Linux/RelWithDebInfo/external/onnx/onnx/onnx-operators-ml.proto Writing /code/onnxruntime/build/Linux/RelWithDebInfo/external/onnx/onnx/onnx-operators-ml.proto3 generating /code/onnxruntime/build/Linux/RelWithDebInfo/external/onnx/onnx/onnx_operators_pb.py Processing /code/onnxruntime/cmake/external/onnx/onnx/onnx-data.in.proto Writing /code/onnxruntime/build/Linux/RelWithDebInfo/external/onnx/onnx/onnx-data.proto Writing /code/onnxruntime/build/Linux/RelWithDebInfo/external/onnx/onnx/onnx-data.proto3 generating /code/onnxruntime/build/Linux/RelWithDebInfo/external/onnx/onnx/onnx_data_pb.py [ 38%] Running C++ protocol buffer compiler on /code/onnxruntime/build/Linux/RelWithDebInfo/external/onnx/onnx/onnx-operators-ml.proto [ 38%] Running C++ protocol buffer compiler on /code/onnxruntime/build/Linux/RelWithDebInfo/external/onnx/onnx/onnx-data.proto [ 38%] Built target gen_onnx_operators_proto [ 38%] Built target gen_onnx_data_proto [ 38%] Building CXX object external/onnx/CMakeFiles/onnx_proto.dir/onnx/onnx-data.pb.cc.o [ 38%] Building CXX object external/onnx/CMakeFiles/onnx_proto.dir/onnx/onnx-ml.pb.cc.o [ 38%] Building CXX object external/onnx/CMakeFiles/onnx_proto.dir/onnx/onnx-operators-ml.pb.cc.o [ 38%] Linking CXX static library libabsl_status.a [ 38%] Built target absl_status [ 38%] Building CXX object external/abseil-cpp/absl/status/CMakeFiles/absl_statusor.dir/statusor.cc.o [ 38%] Linking CXX static library libabsl_flags_reflection.a [ 38%] Built target absl_flags_reflection [ 38%] Building CXX object external/abseil-cpp/absl/flags/CMakeFiles/absl_flags.dir/flag.cc.o [ 38%] Linking CXX static library libabsl_statusor.a [ 38%] Built target absl_statusor [ 38%] Linking CXX static library libabsl_flags.a [ 38%] Built target absl_flags [ 38%] Building CXX object external/abseil-cpp/absl/flags/CMakeFiles/absl_flags_usage_internal.dir/internal/usage.cc.o [ 38%] Linking CXX static library libabsl_flags_usage_internal.a [ 38%] Built target absl_flags_usage_internal [ 38%] Building CXX object external/abseil-cpp/absl/flags/CMakeFiles/absl_flags_usage.dir/usage.cc.o [ 38%] Linking CXX static library libabsl_flags_usage.a [ 38%] Built target absl_flags_usage [ 39%] Building CXX object external/abseil-cpp/absl/flags/CMakeFiles/absl_flags_parse.dir/parse.cc.o [ 39%] Linking CXX static library libonnx_proto.a [ 40%] Built target onnx_proto [ 40%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/contrib_ops/attn_lstm_schema_defs.cc.o [ 40%] Building CXX object CMakeFiles/onnxruntime_util.dir/code/onnxruntime/onnxruntime/core/util/math_cpu.cc.o [ 40%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/common/cpuid_info.cc.o [ 40%] Building CXX object CMakeFiles/onnxruntime_test_utils.dir/code/onnxruntime/onnxruntime/test/util/compare_ortvalue.cc.o [ 40%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/allocation_planner.cc.o [ 40%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/common/cpuid_uarch.cc.o [ 40%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/common/denormal.cc.o [ 41%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/contrib_ops/bert_defs.cc.o [ 41%] Linking CXX static library libabsl_flags_parse.a [ 41%] Built target absl_flags_parse [ 41%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/allocator.cc.o [ 41%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/common/helper.cc.o [ 41%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/common/logging/capture.cc.o [ 41%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/common/logging/logging.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/common/logging/sinks/ostream_sink.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/contrib_ops/contrib_defs.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/common/path.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/common/profiler.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/common/profiler_common.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_test_utils.dir/code/onnxruntime/onnxruntime/test/util/default_providers.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/contrib_ops/internal_nhwc_onnx_opset.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/allocatormgr.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/common/status.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/common/threadpool.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/bfc_arena.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_test_utils.dir/code/onnxruntime/onnxruntime/test/util/file_util.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/contrib_ops/nchwc_schema_defs.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_test_utils.dir/code/onnxruntime/onnxruntime/test/util/scoped_env_vars.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/contrib_ops/nhwc_schema_defs.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_test_utils.dir/code/onnxruntime/onnxruntime/test/util/temp_dir.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/platform/env.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/callback.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_test_utils.dir/code/onnxruntime/onnxruntime/test/util/test_allocator.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/platform/env_time.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/platform/logging/make_platform_default_log_sink.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/config_options.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/contrib_ops/onnx_deprecated_operators.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/copy.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/platform/path_lib.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_test_utils.dir/code/onnxruntime/onnxruntime/test/util/test_environment.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/platform/posix/env.cc.o [ 42%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/checker.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_test_utils.dir/code/onnxruntime/onnxruntime/test/util/test_random_seed.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/customregistry.cc.o [ 43%] Building CXX object CMakeFiles/onnxruntime_util.dir/code/onnxruntime/onnxruntime/core/util/thread_utils.cc.o [ 43%] Building CXX object CMakeFiles/onnxruntime_test_utils.dir/code/onnxruntime/onnxruntime/test/util/test_utils.cc.o [ 43%] Linking CXX static library libonnxruntime_util.a [ 43%] Built target onnxruntime_util [ 43%] Building CXX object CMakeFiles/onnxruntime_providers_vitisai.dir/code/onnxruntime/onnxruntime/core/providers/vitisai/vitisai_custom_op.cc.o [ 43%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/platform/posix/env_time.cc.o [ 43%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/platform/posix/ort_mutex.cc.o [ 43%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/contrib_ops/onnx_function_util.cc.o [ 43%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/platform/posix/stacktrace.cc.o [ 45%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/platform/telemetry.cc.o [ 45%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/data_transfer.cc.o [ 45%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/contrib_ops/quantization_defs.cc.o [ 45%] Linking CXX static library libonnxruntime_common.a [ 45%] Built target onnxruntime_common [ 45%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/attention_fusion.cc.o [ 45%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/common/assertions.cc.o /code/onnxruntime/onnxruntime/core/providers/vitisai/vitisai_custom_op.cc: In function ‘onnx::ModelProto onnxruntime::vitisai_ep::GetModelProtoFromFusedNode(const onnxruntime::GraphViewer&, const onnxruntime::logging::Logger&)’: /code/onnxruntime/onnxruntime/core/providers/vitisai/vitisai_custom_op.cc:43:3: error: ‘graph_body_viewer’ was not declared in this scope; did you mean ‘graph_viewer’? 43 | graph_body_viewer.ToProto(model_proto->mutable_graph(), true, true); | ^~~~~ | graph_viewer /code/onnxruntime/onnxruntime/core/providers/vitisai/vitisai_custom_op.cc:43:41: error: base operand of ‘->’ has non-pointer type ‘onnx::ModelProto’ 43 | graph_body_viewer.ToProto(model_proto->mutable_graph(), true, true); | ^~ [ 45%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/common/interned_strings.cc.o CMakeFiles/onnxruntime_providers_vitisai.dir/build.make:75: recipe for target 'CMakeFiles/onnxruntime_providers_vitisai.dir/code/onnxruntime/onnxruntime/core/providers/vitisai/vitisai_custom_op.cc.o' failed make[2]: [CMakeFiles/onnxruntime_providers_vitisai.dir/code/onnxruntime/onnxruntime/core/providers/vitisai/vitisai_custom_op.cc.o] Error 1 CMakeFiles/Makefile2:2337: recipe for target 'CMakeFiles/onnxruntime_providers_vitisai.dir/all' failed make[1]: [CMakeFiles/onnxruntime_providers_vitisai.dir/all] Error 2 make[1]: * Waiting for unfinished jobs.... [ 45%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/data_transfer_manager.cc.o [ 45%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/data_types.cc.o [ 45%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/common/ir_pb_converter.cc.o [ 45%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/contrib_ops/range_schema_defs.cc.o [ 46%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/debug_node_inputs_outputs_utils.cc.o [ 46%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/bias_dropout_fusion.cc.o [ 46%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/contrib_ops/shape_inference_functions.cc.o [ 46%] Linking CXX static library libonnxruntime_test_utils.a [ 46%] Built target onnxruntime_test_utils [ 46%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/bias_gelu_fusion.cc.o [ 46%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/empty.cc.o [ 46%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/endian_utils.cc.o [ 46%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/error_code.cc.o [ 46%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/function.cc.o [ 47%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/bias_softmax_fusion.cc.o [ 47%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/ex_lib_loader.cc.o [ 47%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/cast_elimination.cc.o [ 47%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/common/model_helpers.cc.o [ 47%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/execution_frame.cc.o [ 47%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/common_subexpression_elimination.cc.o [ 48%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/common/path.cc.o [ 48%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/common/status.cc.o [ 48%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/attr_proto_util.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/computation_reduction.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/function_utils.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/concat_slice_elimination.cc.o [ 48%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/controlflow/defs.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/constant_folding.cc.o [ 48%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/controlflow/old.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/constant_sharing.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/conv_activation_fusion.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/execution_provider.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/graph.cc.o [ 48%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/data_type_utils.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/conv_add_act_fusion.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/conv_add_fusion.cc.o [ 48%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/function.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/conv_bn_fusion.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/fallback_cpu_capability.cc.o [ 48%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/generator/defs.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/conv_mul_fusion.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/div_mul_fusion.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/dropout_elimination.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/feeds_fetches_manager.cc.o [ 48%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/generator/old.cc.o [ 49%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/dynamic_quantize_matmul_fusion.cc.o [ 49%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/embed_layer_norm_fusion.cc.o [ 49%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/graph_flatbuffers_utils.cc.o [ 49%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/logical/defs.cc.o [ 49%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/expand_elimination.cc.o [ 49%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/func_kernel.cc.o [ 49%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/logical/old.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/graph_proto_serializer.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/fast_gelu_fusion.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/free_dim_override_transformer.cc.o [ 50%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/math/defs.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/graph_utils.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/fuse_nodes_funcs.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/gather_to_split_fusion.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/gelu_approximation.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/graph_partitioner.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/gelu_fusion.cc.o [ 50%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/math/old.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/graph_viewer.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/model.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/gemm_activation_fusion.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/gemm_sum_fusion.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/node_attr_utils.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/op.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/kernel_def_builder.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/gemm_transpose_fusion.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/op_identifier_utils.cc.o [ 50%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/nn/defs.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/runtime_optimization_record_container.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/kernel_registry.cc.o [ 50%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/nn/old.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/graph_transformer.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/schema_registry.cc.o [ 51%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/object_detection/defs.cc.o [ 51%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/graph_transformer_mgr.cc.o [ 51%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/graph_transformer_utils.cc.o [ 52%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/kernel_registry_manager.cc.o [ 52%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/kernel_type_str_resolver.cc.o [ 52%] Linking CXX static library libonnxruntime_graph.a [ 52%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/object_detection/old.cc.o [ 52%] Built target onnxruntime_graph [ 52%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/optional/defs.cc.o [ 52%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/identity_elimination.cc.o [ 52%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/parser.cc.o [ 52%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/printer.cc.o In file included from /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/implicit_weak_message.h:39, from /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/parse_context.h:42, from /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/map_type_handler.h:34, from /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/map.h:56, from /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/generated_message_table_driven.h:34, from /code/onnxruntime/build/Linux/RelWithDebInfo/external/onnx/onnx/onnx-ml.pb.h:26, from /code/onnxruntime/cmake/external/onnx/onnx/onnx_pb.h:51, from /code/onnxruntime/cmake/external/onnx/onnx/defs/parser.cc:12: /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/repeated_field.h: In member function ‘onnx::Common::Status onnx::OnnxParser::Parse(onnx::TensorProto&, const onnx::TypeProto&)’: /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/repeated_field.h:1379:5: warning: ‘dblval’ may be used uninitialized in this function [-Wmaybe-uninitialized] 1379 | elements()[size] = std::move(tmp); | ^~~~ /code/onnxruntime/cmake/external/onnx/onnx/defs/parser.cc:260:10: note: ‘dblval’ was declared here 260 | double dblval; | ^~ In file included from /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/implicit_weak_message.h:39, from /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/parse_context.h:42, from /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/map_type_handler.h:34, from /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/map.h:56, from /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/generated_message_table_driven.h:34, from /code/onnxruntime/build/Linux/RelWithDebInfo/external/onnx/onnx/onnx-ml.pb.h:26, from /code/onnxruntime/cmake/external/onnx/onnx/onnx_pb.h:51, from /code/onnxruntime/cmake/external/onnx/onnx/defs/parser.cc:12: /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/repeated_field.h:1379:5: warning: ‘floatval’ may be used uninitialized in this function [-Wmaybe-uninitialized] 1379 | elements()[size] = std::move(tmp); | ^~~~ /code/onnxruntime/cmake/external/onnx/onnx/defs/parser.cc:259:9: note: ‘floatval’ was declared here 259 | float floatval; | ^~~~ In file included from /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/implicit_weak_message.h:39, from /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/parse_context.h:42, from /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/map_type_handler.h:34, from /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/map.h:56, from /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/generated_message_table_driven.h:34, from /code/onnxruntime/build/Linux/RelWithDebInfo/external/onnx/onnx/onnx-ml.pb.h:26, from /code/onnxruntime/cmake/external/onnx/onnx/onnx_pb.h:51, from /code/onnxruntime/cmake/external/onnx/onnx/defs/parser.cc:12: /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/repeated_field.h:1379:5: warning: ‘uintval’ may be used uninitialized in this function [-Wmaybe-uninitialized] 1379 | elements()[size] = std::move(tmp); | ^~~~ /code/onnxruntime/cmake/external/onnx/onnx/defs/parser.cc:258:12: note: ‘uintval’ was declared here 258 | uint64_t uintval; | ^~~ [ 52%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/kernel_type_str_resolver_utils.cc.o [ 53%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/initializer.cc.o [ 53%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/quantization/defs.cc.o [ 53%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/insert_cast_transformer.cc.o [ 53%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/memcpy.cc.o [ 53%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/quantization/old.cc.o [ 53%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/isinf_reducesum_fusion.cc.o [ 53%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/memory_info.cc.o [ 53%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/reduction/defs.cc.o [ 53%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/reduction/old.cc.o [ 53%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/layer_norm_fusion.cc.o [ 53%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/mldata_type_utils.cc.o [ 53%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/matmul_add_fusion.cc.o [ 53%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/rnn/defs.cc.o [ 53%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/matmul_integer_to_float.cc.o [ 53%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/murmurhash3.cc.o [ 53%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/node_index_info.cc.o [ 53%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/rnn/old.cc.o [ 53%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/schema.cc.o [ 53%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/onnxruntime_map_type_info.cc.o [ 53%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/matmul_scale_fusion.cc.o [ 53%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/matmul_transpose_fusion.cc.o [ 53%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/sequence/defs.cc.o [ 53%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/shape_inference.cc.o [ 53%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/onnxruntime_sequence_type_info.cc.o [ 54%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/tensor/defs.cc.o [ 54%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/onnxruntime_typeinfo.cc.o [ 54%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/op_kernel.cc.o [ 54%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/op_kernel_info.cc.o [ 54%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/tensor/old.cc.o [ 54%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/nchwc_transformer.cc.o [ 54%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/op_node_proto_helper.cc.o [ 54%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/ort_value_pattern_planner.cc.o [ 54%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/tensor/utils.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/ort_value_tensor_slicer.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/orttraining_partial_executor.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/parallel_executor.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/nhwc_transformer.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/prepacked_weights.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/noop_elimination.cc.o [ 56%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/tensor_proto_util.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/prepacked_weights_container.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/random_generator.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/random_seed.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/not_where_fusion.cc.o [ 56%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/tensor_util.cc.o [ 56%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/traditionalml/defs.cc.o [ 56%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/traditionalml/old.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/optimizer_execution_frame.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/run_options.cc.o [ 56%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/training/defs.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/sequential_executor.cc.o [ 56%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/onnxifi_utils.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/propagate_cast_ops.cc.o [ 56%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/shape_inference/implementation.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/session_options.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/session_state.cc.o [ 57%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/qdq_transformer/avx2_weight_s8_to_u8.cc.o [ 57%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/version_converter/convert.cc.o [ 57%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/session_state_utils.cc.o [ 57%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/version_converter/helper.cc.o [ 57%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/simple_tensor_allocator.cc.o [ 57%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/qdq_transformer/clip_quantizelinear.cc.o [ 57%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/qdq_transformer/qdq_final_cleanup.cc.o [ 57%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/qdq_transformer/qdq_propagation.cc.o [ 57%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/qdq_transformer/qdq_s8_to_u8.cc.o [ 57%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/sparse_tensor.cc.o [ 57%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/qdq_transformer/qdq_util.cc.o [ 58%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/sparse_utils.cc.o [ 58%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/qdq_transformer/relu_quantizelinear.cc.o [ 58%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/qdq_transformer/s8_to_u8.cc.o [ 58%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/qdq_transformer/selectors_actions/qdq_actions.cc.o [ 58%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/qdq_transformer/selectors_actions/qdq_selector_action_transformer.cc.o [ 58%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/qdq_transformer/selectors_actions/qdq_selectors.cc.o [ 58%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/tensor.cc.o [ 58%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/tensor_allocator.cc.o [ 58%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/qdq_transformer/selectors_actions/shared/utils.cc.o [ 58%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/relu_clip_fusion.cc.o [ 58%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/reshape_fusion.cc.o [ 58%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/tensor_external_data_info.cc.o [ 58%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/rule_based_graph_transformer.cc.o [ 58%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/tensor_shape.cc.o [ 58%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/tensor_type_and_shape.cc.o In file included from /code/onnxruntime/cmake/external/onnx/onnx/version_converter/convert.cc:5: /code/onnxruntime/cmake/external/onnx/onnx/version_converter/convert.h: In constructor ‘onnx::version_conversion::DefaultVersionConverter::DefaultVersionConverter()’: /code/onnxruntime/cmake/external/onnx/onnx/version_converter/convert.h:90:3: note: variable tracking size limit exceeded with ‘-fvar-tracking-assignments’, retrying without 90 | DefaultVersionConverter() { | ^~~~~~~ [ 59%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/selectors_actions/actions.cc.o [ 59%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/tensorprotoutils.cc.o [ 59%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/selectors_actions/helpers.cc.o [ 59%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/transpose_helper.cc.o [ 59%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/selectors_actions/selector_action_transformer.cc.o [ 59%] Linking CXX static library libonnx.a [ 59%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/utils.cc.o [ 59%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/skip_layer_norm_fusion.cc.o [ 59%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/slice_elimination.cc.o [ 59%] Built target onnx [ 59%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/transformer_memcpy.cc.o [ 59%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/transpose_optimizer/optimizer_api_impl.cc.o [ 59%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/transpose_optimizer/ort_transpose_optimizer.cc.o [ 59%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/transpose_optimizer/transpose_optimizer.cc.o [ 59%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/unsqueeze_elimination.cc.o [ 59%] Linking CXX static library libonnxruntime_framework.a [ 59%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/utils.cc.o [ 59%] Built target onnxruntime_framework [ 59%] Linking CXX static library libonnxruntime_optimizer.a [ 59%] Built target onnxruntime_optimizer Makefile:165: recipe for target 'all' failed make: * [all] Error 2 Traceback (most recent call last): File "/code/onnxruntime/tools/ci_build/build.py", line 2816, in sys.exit(main()) File "/code/onnxruntime/tools/ci_build/build.py", line 2730, in main build_targets(args, cmake_path, build_dir, configs, num_parallel_jobs, args.target) File "/code/onnxruntime/tools/ci_build/build.py", line 1349, in build_targets run_subprocess(cmd_args, env=env) File "/code/onnxruntime/tools/ci_build/build.py", line 740, in run_subprocess return run(*args, cwd=cwd, capture_stdout=capture_stdout, shell=shell, env=my_env) File "/code/onnxruntime/tools/python/util/run.py", line 57, in run shell=shell, File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow/lib/python3.6/subprocess.py", line 438, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['/code/cmake-3.21.0-linux-x86_64/bin/cmake', '--build', '/code/onnxruntime/build/Linux/RelWithDebInfo', '--config', 'RelWithDebInfo', '--', '-j6']' returned non-zero exit status 2.
CC @jornt-xilinx
Describe the issue
I am currently trying to get the ONNX Runtime to work on the ZCU 102. For this I used the following instructions: https://github.com/edelaye/onnxruntime/blob/gh-pages-update-vitis-ai-doc-1/docs/reference/execution-providers/Vitis-AI-ExecutionProvider.md
When I build the docker I get an error. First I looked for the pyxir.cmake file, however the error others get is already fixed there.
if(Python_EXECUTABLE) execute_process(COMMAND "${Python_EXECUTABLE}" "-c" "import pyxir as px; print(px.get_include_dir()); print(px.get_lib_dir());" RESULT_VARIABLE __result OUTPUT_VARIABLE __output OUTPUT_STRIP_TRAILING_WHITESPACE)
Thanks in advance for your help to solve this problem!
Urgency
No response
Target platform
Ubuntu 18.04.6 LTS (VM), Docker 19.03.1
Build script
sudo docker build --build-arg PYXIR_FLAG="--use_dpuczdx8g_vart" -t onnxruntime-vitisai -f Dockerfile.vitisai .
Error / output
[...]
[ 35%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/objectivec/objectivec_enum_field.cc.o [ 35%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/objectivec/objectivec_extension.cc.o [ 35%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/objectivec/objectivec_field.cc.o [ 35%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_file.cc.o [ 35%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/objectivec/objectivec_generator.cc.o [ 36%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/objectivec/objectivec_helpers.cc.o [ 36%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/objectivec/objectivec_map_field.cc.o [ 36%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/objectivec/objectivec_message.cc.o [ 36%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/objectivec/objectivec_message_field.cc.o [ 36%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/objectivec/objectivec_oneof.cc.o [ 36%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/objectivec/objectivec_primitive_field.cc.o [ 36%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/php/php_generator.cc.o [ 36%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/plugin.cc.o [ 36%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/plugin.pb.cc.o [ 36%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/python/python_generator.cc.o [ 36%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/ruby/ruby_generator.cc.o [ 36%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/subprocess.cc.o [ 36%] Building CXX object external/protobuf/cmake/CMakeFiles/libprotoc.dir//src/google/protobuf/compiler/zip_writer.cc.o [ 36%] Building CXX object external/abseil-cpp/absl/random/CMakeFiles/absl_random_seed_sequences.dir/seed_sequences.cc.o [ 36%] Linking CXX static library libabsl_random_seed_sequences.a [ 36%] Built target absl_random_seed_sequences [ 36%] Building CXX object external/abseil-cpp/absl/strings/CMakeFiles/absl_cordz_handle.dir/internal/cordz_handle.cc.o [ 36%] Building CXX object external/abseil-cpp/absl/container/CMakeFiles/absl_hashtablez_sampler.dir/internal/hashtablez_sampler.cc.o [ 36%] Building CXX object external/abseil-cpp/absl/flags/CMakeFiles/absl_flags_program_name.dir/internal/program_name.cc.o [ 36%] Building CXX object external/abseil-cpp/absl/container/CMakeFiles/absl_hashtablez_sampler.dir/internal/hashtablez_sampler_force_weak_definition.cc.o [ 37%] Linking CXX static library libabsl_cordz_handle.a [ 37%] Built target absl_cordz_handle [ 37%] Building CXX object external/abseil-cpp/absl/strings/CMakeFiles/absl_cordz_info.dir/internal/cordz_info.cc.o [ 37%] Linking CXX static library libabsl_flags_program_name.a [ 37%] Built target absl_flags_program_name [ 37%] Building CXX object external/abseil-cpp/absl/flags/CMakeFiles/absl_flags_config.dir/usage_config.cc.o [ 37%] Linking CXX static library libabsl_hashtablez_sampler.a [ 37%] Built target absl_hashtablez_sampler [ 37%] Building CXX object external/abseil-cpp/absl/container/CMakeFiles/absl_raw_hash_set.dir/internal/raw_hash_set.cc.o [ 37%] Linking CXX static library libabsl_cordz_info.a [ 37%] Built target absl_cordz_info [ 37%] Building CXX object external/abseil-cpp/absl/strings/CMakeFiles/absl_cordz_sample_token.dir/internal/cordz_sample_token.cc.o [ 37%] Building CXX object external/abseil-cpp/absl/strings/CMakeFiles/absl_cord.dir/cord.cc.o [ 37%] Linking CXX static library libabsl_flags_config.a [ 37%] Built target absl_flags_config [ 37%] Building CXX object external/abseil-cpp/absl/flags/CMakeFiles/absl_flags_internal.dir/internal/flag.cc.o [ 37%] Linking CXX static library libprotoc.a [ 38%] Linking CXX static library libabsl_raw_hash_set.a [ 38%] Built target absl_raw_hash_set [ 38%] Linking CXX static library libabsl_cordz_sample_token.a [ 38%] Built target absl_cordz_sample_token [ 38%] Linking CXX static library libabsl_flags_internal.a [ 38%] Built target absl_flags_internal [ 38%] Built target libprotoc [ 38%] Building CXX object external/protobuf/cmake/CMakeFiles/protoc.dir/__/src/google/protobuf/compiler/main.cc.o [ 38%] Linking CXX executable protoc [ 38%] Linking CXX static library libabsl_cord.a [ 38%] Built target absl_cord [ 38%] Building CXX object external/abseil-cpp/absl/flags/CMakeFiles/absl_flags_reflection.dir/reflection.cc.o [ 38%] Building CXX object external/abseil-cpp/absl/status/CMakeFiles/absl_status.dir/status.cc.o [ 38%] Building CXX object external/abseil-cpp/absl/status/CMakeFiles/absl_status.dir/status_payload_printer.cc.o [ 38%] Built target protoc [ 38%] Running gen_proto.py on onnx/onnx.in.proto Processing /code/onnxruntime/cmake/external/onnx/onnx/onnx.in.proto Writing /code/onnxruntime/build/Linux/RelWithDebInfo/external/onnx/onnx/onnx-ml.proto Writing /code/onnxruntime/build/Linux/RelWithDebInfo/external/onnx/onnx/onnx-ml.proto3 generating /code/onnxruntime/build/Linux/RelWithDebInfo/external/onnx/onnx/onnx_pb.py [ 38%] Running C++ protocol buffer compiler on /code/onnxruntime/build/Linux/RelWithDebInfo/external/onnx/onnx/onnx-ml.proto [ 38%] Built target gen_onnx_proto [ 38%] Running gen_proto.py on onnx/onnx-operators.in.proto [ 38%] Running gen_proto.py on onnx/onnx-data.in.proto Processing /code/onnxruntime/cmake/external/onnx/onnx/onnx-operators.in.proto Writing /code/onnxruntime/build/Linux/RelWithDebInfo/external/onnx/onnx/onnx-operators-ml.proto Writing /code/onnxruntime/build/Linux/RelWithDebInfo/external/onnx/onnx/onnx-operators-ml.proto3 generating /code/onnxruntime/build/Linux/RelWithDebInfo/external/onnx/onnx/onnx_operators_pb.py Processing /code/onnxruntime/cmake/external/onnx/onnx/onnx-data.in.proto Writing /code/onnxruntime/build/Linux/RelWithDebInfo/external/onnx/onnx/onnx-data.proto Writing /code/onnxruntime/build/Linux/RelWithDebInfo/external/onnx/onnx/onnx-data.proto3 generating /code/onnxruntime/build/Linux/RelWithDebInfo/external/onnx/onnx/onnx_data_pb.py [ 38%] Running C++ protocol buffer compiler on /code/onnxruntime/build/Linux/RelWithDebInfo/external/onnx/onnx/onnx-operators-ml.proto [ 38%] Running C++ protocol buffer compiler on /code/onnxruntime/build/Linux/RelWithDebInfo/external/onnx/onnx/onnx-data.proto [ 38%] Built target gen_onnx_operators_proto [ 38%] Built target gen_onnx_data_proto [ 38%] Building CXX object external/onnx/CMakeFiles/onnx_proto.dir/onnx/onnx-data.pb.cc.o [ 38%] Building CXX object external/onnx/CMakeFiles/onnx_proto.dir/onnx/onnx-ml.pb.cc.o [ 38%] Building CXX object external/onnx/CMakeFiles/onnx_proto.dir/onnx/onnx-operators-ml.pb.cc.o [ 38%] Linking CXX static library libabsl_status.a [ 38%] Built target absl_status [ 38%] Building CXX object external/abseil-cpp/absl/status/CMakeFiles/absl_statusor.dir/statusor.cc.o [ 38%] Linking CXX static library libabsl_flags_reflection.a [ 38%] Built target absl_flags_reflection [ 38%] Building CXX object external/abseil-cpp/absl/flags/CMakeFiles/absl_flags.dir/flag.cc.o [ 38%] Linking CXX static library libabsl_statusor.a [ 38%] Built target absl_statusor [ 38%] Linking CXX static library libabsl_flags.a [ 38%] Built target absl_flags [ 38%] Building CXX object external/abseil-cpp/absl/flags/CMakeFiles/absl_flags_usage_internal.dir/internal/usage.cc.o [ 38%] Linking CXX static library libabsl_flags_usage_internal.a [ 38%] Built target absl_flags_usage_internal [ 38%] Building CXX object external/abseil-cpp/absl/flags/CMakeFiles/absl_flags_usage.dir/usage.cc.o [ 38%] Linking CXX static library libabsl_flags_usage.a [ 38%] Built target absl_flags_usage [ 39%] Building CXX object external/abseil-cpp/absl/flags/CMakeFiles/absl_flags_parse.dir/parse.cc.o [ 39%] Linking CXX static library libonnx_proto.a [ 40%] Built target onnx_proto [ 40%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/contrib_ops/attn_lstm_schema_defs.cc.o [ 40%] Building CXX object CMakeFiles/onnxruntime_util.dir/code/onnxruntime/onnxruntime/core/util/math_cpu.cc.o [ 40%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/common/cpuid_info.cc.o [ 40%] Building CXX object CMakeFiles/onnxruntime_test_utils.dir/code/onnxruntime/onnxruntime/test/util/compare_ortvalue.cc.o [ 40%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/allocation_planner.cc.o [ 40%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/common/cpuid_uarch.cc.o [ 40%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/common/denormal.cc.o [ 41%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/contrib_ops/bert_defs.cc.o [ 41%] Linking CXX static library libabsl_flags_parse.a [ 41%] Built target absl_flags_parse [ 41%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/allocator.cc.o [ 41%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/common/helper.cc.o [ 41%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/common/logging/capture.cc.o [ 41%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/common/logging/logging.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/common/logging/sinks/ostream_sink.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/contrib_ops/contrib_defs.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/common/path.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/common/profiler.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/common/profiler_common.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_test_utils.dir/code/onnxruntime/onnxruntime/test/util/default_providers.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/contrib_ops/internal_nhwc_onnx_opset.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/allocatormgr.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/common/status.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/common/threadpool.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/bfc_arena.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_test_utils.dir/code/onnxruntime/onnxruntime/test/util/file_util.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/contrib_ops/nchwc_schema_defs.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_test_utils.dir/code/onnxruntime/onnxruntime/test/util/scoped_env_vars.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/contrib_ops/nhwc_schema_defs.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_test_utils.dir/code/onnxruntime/onnxruntime/test/util/temp_dir.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/platform/env.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/callback.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_test_utils.dir/code/onnxruntime/onnxruntime/test/util/test_allocator.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/platform/env_time.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/platform/logging/make_platform_default_log_sink.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/config_options.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/contrib_ops/onnx_deprecated_operators.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/copy.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/platform/path_lib.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_test_utils.dir/code/onnxruntime/onnxruntime/test/util/test_environment.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/platform/posix/env.cc.o [ 42%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/checker.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_test_utils.dir/code/onnxruntime/onnxruntime/test/util/test_random_seed.cc.o [ 42%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/customregistry.cc.o [ 43%] Building CXX object CMakeFiles/onnxruntime_util.dir/code/onnxruntime/onnxruntime/core/util/thread_utils.cc.o [ 43%] Building CXX object CMakeFiles/onnxruntime_test_utils.dir/code/onnxruntime/onnxruntime/test/util/test_utils.cc.o [ 43%] Linking CXX static library libonnxruntime_util.a [ 43%] Built target onnxruntime_util [ 43%] Building CXX object CMakeFiles/onnxruntime_providers_vitisai.dir/code/onnxruntime/onnxruntime/core/providers/vitisai/vitisai_custom_op.cc.o [ 43%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/platform/posix/env_time.cc.o [ 43%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/platform/posix/ort_mutex.cc.o [ 43%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/contrib_ops/onnx_function_util.cc.o [ 43%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/platform/posix/stacktrace.cc.o [ 45%] Building CXX object CMakeFiles/onnxruntime_common.dir/code/onnxruntime/onnxruntime/core/platform/telemetry.cc.o [ 45%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/data_transfer.cc.o [ 45%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/contrib_ops/quantization_defs.cc.o [ 45%] Linking CXX static library libonnxruntime_common.a [ 45%] Built target onnxruntime_common [ 45%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/attention_fusion.cc.o [ 45%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/common/assertions.cc.o /code/onnxruntime/onnxruntime/core/providers/vitisai/vitisai_custom_op.cc: In function ‘onnx::ModelProto onnxruntime::vitisai_ep::GetModelProtoFromFusedNode(const onnxruntime::GraphViewer&, const onnxruntime::logging::Logger&)’: /code/onnxruntime/onnxruntime/core/providers/vitisai/vitisai_custom_op.cc:43:3: error: ‘graph_body_viewer’ was not declared in this scope; did you mean ‘graph_viewer’? 43 | graph_body_viewer.ToProto(model_proto->mutable_graph(), true, true); | ^
sys.exit(main())
File "/code/onnxruntime/tools/ci_build/build.py", line 2730, in main
build_targets(args, cmake_path, build_dir, configs, num_parallel_jobs, args.target)
File "/code/onnxruntime/tools/ci_build/build.py", line 1349, in build_targets
run_subprocess(cmd_args, env=env)
File "/code/onnxruntime/tools/ci_build/build.py", line 740, in run_subprocess
return run(*args, cwd=cwd, capture_stdout=capture_stdout, shell=shell, env=my_env)
File "/code/onnxruntime/tools/python/util/run.py", line 57, in run
shell=shell,
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow/lib/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/code/cmake-3.21.0-linux-x86_64/bin/cmake', '--build', '/code/onnxruntime/build/Linux/RelWithDebInfo', '--config', 'RelWithDebInfo', '--', '-j6']' returned non-zero exit status 2.
~~~~ | graph_viewer /code/onnxruntime/onnxruntime/core/providers/vitisai/vitisai_custom_op.cc:43:41: error: base operand of ‘->’ has non-pointer type ‘onnx::ModelProto’ 43 | graph_body_viewer.ToProto(model_proto->mutable_graph(), true, true); | ^~ [ 45%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/common/interned_strings.cc.o CMakeFiles/onnxruntime_providers_vitisai.dir/build.make:75: recipe for target 'CMakeFiles/onnxruntime_providers_vitisai.dir/code/onnxruntime/onnxruntime/core/providers/vitisai/vitisai_custom_op.cc.o' failed make[2]: [CMakeFiles/onnxruntime_providers_vitisai.dir/code/onnxruntime/onnxruntime/core/providers/vitisai/vitisai_custom_op.cc.o] Error 1 CMakeFiles/Makefile2:2337: recipe for target 'CMakeFiles/onnxruntime_providers_vitisai.dir/all' failed make[1]: [CMakeFiles/onnxruntime_providers_vitisai.dir/all] Error 2 make[1]: * Waiting for unfinished jobs.... [ 45%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/data_transfer_manager.cc.o [ 45%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/data_types.cc.o [ 45%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/common/ir_pb_converter.cc.o [ 45%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/contrib_ops/range_schema_defs.cc.o [ 46%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/debug_node_inputs_outputs_utils.cc.o [ 46%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/bias_dropout_fusion.cc.o [ 46%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/contrib_ops/shape_inference_functions.cc.o [ 46%] Linking CXX static library libonnxruntime_test_utils.a [ 46%] Built target onnxruntime_test_utils [ 46%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/bias_gelu_fusion.cc.o [ 46%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/empty.cc.o [ 46%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/endian_utils.cc.o [ 46%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/error_code.cc.o [ 46%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/function.cc.o [ 47%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/bias_softmax_fusion.cc.o [ 47%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/ex_lib_loader.cc.o [ 47%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/cast_elimination.cc.o [ 47%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/common/model_helpers.cc.o [ 47%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/execution_frame.cc.o [ 47%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/common_subexpression_elimination.cc.o [ 48%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/common/path.cc.o [ 48%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/common/status.cc.o [ 48%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/attr_proto_util.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/computation_reduction.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/function_utils.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/concat_slice_elimination.cc.o [ 48%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/controlflow/defs.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/constant_folding.cc.o [ 48%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/controlflow/old.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/constant_sharing.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/conv_activation_fusion.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/execution_provider.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/graph.cc.o [ 48%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/data_type_utils.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/conv_add_act_fusion.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/conv_add_fusion.cc.o [ 48%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/function.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/conv_bn_fusion.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/fallback_cpu_capability.cc.o [ 48%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/generator/defs.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/conv_mul_fusion.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/div_mul_fusion.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/dropout_elimination.cc.o [ 48%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/feeds_fetches_manager.cc.o [ 48%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/generator/old.cc.o [ 49%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/dynamic_quantize_matmul_fusion.cc.o [ 49%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/embed_layer_norm_fusion.cc.o [ 49%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/graph_flatbuffers_utils.cc.o [ 49%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/logical/defs.cc.o [ 49%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/expand_elimination.cc.o [ 49%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/func_kernel.cc.o [ 49%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/logical/old.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/graph_proto_serializer.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/fast_gelu_fusion.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/free_dim_override_transformer.cc.o [ 50%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/math/defs.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/graph_utils.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/fuse_nodes_funcs.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/gather_to_split_fusion.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/gelu_approximation.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/graph_partitioner.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/gelu_fusion.cc.o [ 50%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/math/old.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/graph_viewer.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/model.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/gemm_activation_fusion.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/gemm_sum_fusion.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/node_attr_utils.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/op.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/kernel_def_builder.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/gemm_transpose_fusion.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/op_identifier_utils.cc.o [ 50%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/nn/defs.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/runtime_optimization_record_container.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/kernel_registry.cc.o [ 50%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/nn/old.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/graph_transformer.cc.o [ 50%] Building CXX object CMakeFiles/onnxruntime_graph.dir/code/onnxruntime/onnxruntime/core/graph/schema_registry.cc.o [ 51%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/object_detection/defs.cc.o [ 51%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/graph_transformer_mgr.cc.o [ 51%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/graph_transformer_utils.cc.o [ 52%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/kernel_registry_manager.cc.o [ 52%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/kernel_type_str_resolver.cc.o [ 52%] Linking CXX static library libonnxruntime_graph.a [ 52%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/object_detection/old.cc.o [ 52%] Built target onnxruntime_graph [ 52%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/optional/defs.cc.o [ 52%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/identity_elimination.cc.o [ 52%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/parser.cc.o [ 52%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/printer.cc.o In file included from /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/implicit_weak_message.h:39, from /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/parse_context.h:42, from /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/map_type_handler.h:34, from /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/map.h:56, from /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/generated_message_table_driven.h:34, from /code/onnxruntime/build/Linux/RelWithDebInfo/external/onnx/onnx/onnx-ml.pb.h:26, from /code/onnxruntime/cmake/external/onnx/onnx/onnx_pb.h:51, from /code/onnxruntime/cmake/external/onnx/onnx/defs/parser.cc:12: /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/repeated_field.h: In member function ‘onnx::Common::Status onnx::OnnxParser::Parse(onnx::TensorProto&, const onnx::TypeProto&)’: /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/repeated_field.h:1379:5: warning: ‘dblval’ may be used uninitialized in this function [-Wmaybe-uninitialized] 1379 | elements()[size] = std::move(tmp); | ^~~~ /code/onnxruntime/cmake/external/onnx/onnx/defs/parser.cc:260:10: note: ‘dblval’ was declared here 260 | double dblval; | ^~In file included from /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/implicit_weak_message.h:39, from /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/parse_context.h:42, from /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/map_type_handler.h:34, from /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/map.h:56, from /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/generated_message_table_driven.h:34, from /code/onnxruntime/build/Linux/RelWithDebInfo/external/onnx/onnx/onnx-ml.pb.h:26, from /code/onnxruntime/cmake/external/onnx/onnx/onnx_pb.h:51, from /code/onnxruntime/cmake/external/onnx/onnx/defs/parser.cc:12: /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/repeated_field.h:1379:5: warning: ‘floatval’ may be used uninitialized in this function [-Wmaybe-uninitialized] 1379 | elements()[size] = std::move(tmp); | ^~~~ /code/onnxruntime/cmake/external/onnx/onnx/defs/parser.cc:259:9: note: ‘floatval’ was declared here 259 | float floatval; | ^~~~ In file included from /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/implicit_weak_message.h:39, from /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/parse_context.h:42, from /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/map_type_handler.h:34, from /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/map.h:56, from /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/generated_message_table_driven.h:34, from /code/onnxruntime/build/Linux/RelWithDebInfo/external/onnx/onnx/onnx-ml.pb.h:26, from /code/onnxruntime/cmake/external/onnx/onnx/onnx_pb.h:51, from /code/onnxruntime/cmake/external/onnx/onnx/defs/parser.cc:12: /code/onnxruntime/cmake/external/protobuf/src/google/protobuf/repeated_field.h:1379:5: warning: ‘uintval’ may be used uninitialized in this function [-Wmaybe-uninitialized] 1379 | elements()[size] = std::move(tmp); | ^~~~ /code/onnxruntime/cmake/external/onnx/onnx/defs/parser.cc:258:12: note: ‘uintval’ was declared here 258 | uint64_t uintval; | ^~~ [ 52%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/kernel_type_str_resolver_utils.cc.o [ 53%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/initializer.cc.o [ 53%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/quantization/defs.cc.o [ 53%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/insert_cast_transformer.cc.o [ 53%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/memcpy.cc.o [ 53%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/quantization/old.cc.o [ 53%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/isinf_reducesum_fusion.cc.o [ 53%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/memory_info.cc.o [ 53%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/reduction/defs.cc.o [ 53%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/reduction/old.cc.o [ 53%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/layer_norm_fusion.cc.o [ 53%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/mldata_type_utils.cc.o [ 53%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/matmul_add_fusion.cc.o [ 53%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/rnn/defs.cc.o [ 53%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/matmul_integer_to_float.cc.o [ 53%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/murmurhash3.cc.o [ 53%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/node_index_info.cc.o [ 53%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/rnn/old.cc.o [ 53%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/schema.cc.o [ 53%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/onnxruntime_map_type_info.cc.o [ 53%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/matmul_scale_fusion.cc.o [ 53%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/matmul_transpose_fusion.cc.o [ 53%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/sequence/defs.cc.o [ 53%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/shape_inference.cc.o [ 53%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/onnxruntime_sequence_type_info.cc.o [ 54%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/tensor/defs.cc.o [ 54%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/onnxruntime_typeinfo.cc.o [ 54%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/op_kernel.cc.o [ 54%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/op_kernel_info.cc.o [ 54%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/tensor/old.cc.o [ 54%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/nchwc_transformer.cc.o [ 54%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/op_node_proto_helper.cc.o [ 54%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/ort_value_pattern_planner.cc.o [ 54%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/tensor/utils.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/ort_value_tensor_slicer.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/orttraining_partial_executor.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/parallel_executor.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/nhwc_transformer.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/prepacked_weights.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/noop_elimination.cc.o [ 56%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/tensor_proto_util.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/prepacked_weights_container.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/random_generator.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/random_seed.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/not_where_fusion.cc.o [ 56%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/tensor_util.cc.o [ 56%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/traditionalml/defs.cc.o [ 56%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/traditionalml/old.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/optimizer_execution_frame.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/run_options.cc.o [ 56%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/defs/training/defs.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/sequential_executor.cc.o [ 56%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/onnxifi_utils.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/propagate_cast_ops.cc.o [ 56%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/shape_inference/implementation.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/session_options.cc.o [ 56%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/session_state.cc.o [ 57%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/qdq_transformer/avx2_weight_s8_to_u8.cc.o [ 57%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/version_converter/convert.cc.o [ 57%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/session_state_utils.cc.o [ 57%] Building CXX object external/onnx/CMakeFiles/onnx.dir/onnx/version_converter/helper.cc.o [ 57%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/simple_tensor_allocator.cc.o [ 57%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/qdq_transformer/clip_quantizelinear.cc.o [ 57%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/qdq_transformer/qdq_final_cleanup.cc.o [ 57%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/qdq_transformer/qdq_propagation.cc.o [ 57%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/qdq_transformer/qdq_s8_to_u8.cc.o [ 57%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/sparse_tensor.cc.o [ 57%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/qdq_transformer/qdq_util.cc.o [ 58%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/sparse_utils.cc.o [ 58%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/qdq_transformer/relu_quantizelinear.cc.o [ 58%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/qdq_transformer/s8_to_u8.cc.o [ 58%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/qdq_transformer/selectors_actions/qdq_actions.cc.o [ 58%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/qdq_transformer/selectors_actions/qdq_selector_action_transformer.cc.o [ 58%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/qdq_transformer/selectors_actions/qdq_selectors.cc.o [ 58%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/tensor.cc.o [ 58%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/tensor_allocator.cc.o [ 58%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/qdq_transformer/selectors_actions/shared/utils.cc.o [ 58%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/relu_clip_fusion.cc.o [ 58%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/reshape_fusion.cc.o [ 58%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/tensor_external_data_info.cc.o [ 58%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/rule_based_graph_transformer.cc.o [ 58%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/tensor_shape.cc.o [ 58%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/tensor_type_and_shape.cc.o In file included from /code/onnxruntime/cmake/external/onnx/onnx/version_converter/convert.cc:5: /code/onnxruntime/cmake/external/onnx/onnx/version_converter/convert.h: In constructor ‘onnx::version_conversion::DefaultVersionConverter::DefaultVersionConverter()’: /code/onnxruntime/cmake/external/onnx/onnx/version_converter/convert.h:90:3: note: variable tracking size limit exceeded with ‘-fvar-tracking-assignments’, retrying without 90 | DefaultVersionConverter() { | ^~~~~~~ [ 59%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/selectors_actions/actions.cc.o [ 59%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/tensorprotoutils.cc.o [ 59%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/selectors_actions/helpers.cc.o [ 59%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/transpose_helper.cc.o [ 59%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/selectors_actions/selector_action_transformer.cc.o [ 59%] Linking CXX static library libonnx.a [ 59%] Building CXX object CMakeFiles/onnxruntime_framework.dir/code/onnxruntime/onnxruntime/core/framework/utils.cc.o [ 59%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/skip_layer_norm_fusion.cc.o [ 59%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/slice_elimination.cc.o [ 59%] Built target onnx [ 59%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/transformer_memcpy.cc.o [ 59%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/transpose_optimizer/optimizer_api_impl.cc.o [ 59%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/transpose_optimizer/ort_transpose_optimizer.cc.o [ 59%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/transpose_optimizer/transpose_optimizer.cc.o [ 59%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/unsqueeze_elimination.cc.o [ 59%] Linking CXX static library libonnxruntime_framework.a [ 59%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/code/onnxruntime/onnxruntime/core/optimizer/utils.cc.o [ 59%] Built target onnxruntime_framework [ 59%] Linking CXX static library libonnxruntime_optimizer.a [ 59%] Built target onnxruntime_optimizer Makefile:165: recipe for target 'all' failed make: * [all] Error 2 Traceback (most recent call last): File "/code/onnxruntime/tools/ci_build/build.py", line 2816, inVisual Studio Version
No response
GCC / Compiler Version
No response