PaddlePaddle / Paddle-Lite

PaddlePaddle High Performance Deep Learning Inference Engine for Mobile and Edge (飞桨高性能深度学习端侧推理引擎)
https://www.paddlepaddle.org.cn/lite
Apache License 2.0
6.95k stars 1.61k forks source link

sigmastar平台交叉编译项目 #6066

Closed pguanhai closed 8 months ago

pguanhai commented 3 years ago

编译日志信息如下

[ 0%] Generating kernels.h [ 0%] Built target stream [ 1%] Built target cpp_program_desc [ 2%] Built target target_wrapper_host [ 2%] Built target any [ 2%] Built target cpp_block_desc [ 2%] Built target cpp_var_desc [ 2%] Built target logging [ 2%] Generating ops.h [ 2%] Built target types Scanning dependencies of target utils [ 2%] Built target cpp_op_desc [ 2%] Built target naive_buffer [ 2%] Building CXX object lite/utils/CMakeFiles/utils.dir/string.cc.o [ 2%] Built target framework_nb [ 3%] Built target place [ 3%] Built target nb_program_desc [ 4%] Built target nb_param_desc [ 4%] Built target nb_var_desc [ 4%] Built target nb_op_desc [ 5%] Built target nb_combined_params_desc [ 5%] Built target nb_block_desc [ 5%] Built target op_list_h [ 5%] Built target target_wrapper [ 5%] Built target kernel_list_h [ 6%] Built target compatible_pb [ 6%] Built target memory [ 6%] Built target tensor [ 6%] Built target scope [ 7%] Built target variable Scanning dependencies of target paddle_light_api_shared [ 7%] Built target type_system [ 7%] Built target device_info [ 7%] Built target op_params [ 8%] Built target paddle_api [ 9%] Built target context [ 9%] Built target model_parser [ 10%] Built target kernel [ 11%] Built target op_registry [ 12%] Built target op [ 12%] Built target pool_op [ 13%] Built target fake_channel_wise_dequantize_max_abs_op [ 13%] Building CXX object lite/api/CMakeFiles/paddle_light_api_shared.dir/light_api.cc.o [ 13%] Built target elementwise_ops [ 14%] Built target fill_constant_batch_size_like_op [ 15%] Built target sequence_topk_avg_pooling_op [ 15%] Built target slice_op_lite [ 16%] Built target fill_constant_op [ 29%] Built target math_arm [ 29%] Built target expand_op_lite [ 29%] Built target argmax_op [ 29%] Built target fake_quantize_range_abs_max_op [ 30%] Built target fake_quantize_dequantize_moving_avg_abs_max_op [ 30%] Built target flatten_op [ 30%] Built target shuffle_channel_op [ 31%] Built target scale_op [ 31%] Built target search_fc_op [ 31%] Built target feed_op [ 32%] Built target yolo_box_op [ 32%] Built target io_copy_op [ 32%] Built target activation_basic_ops [ 33%] Built target softmax_op [ 33%] Built target mul_op [ 33%] Built target batch_norm_op [ 33%] Built target fetch_op [ 33%] Built target conv_op [ 34%] Built target interpolate_op [ 34%] Built target range_op [ 34%] Built target reshape_op [ 34%] Built target prior_box_op [ 36%] Built target subgraph_op [ 36%] Built target split_op [ 36%] Built target fake_quant [ 37%] Built target matmul_op [ 37%] Built target conv_transpose_op [ 40%] Built target fc_op [ 38%] Built target calib_op [ 39%] Built target box_coder_op_lite [ 39%] Built target pad2d_op [ 39%] Built target squeeze_op_lite [ 39%] Built target concat_op [ 40%] Built target unsqueeze_op_lite [ 41%] Built target density_prior_box_op [ 41%] Built target fake_dequant [ 41%] Built target grid_sampler_op [ 41%] Built target affine_channel_op [ 42%] Built target layout_op [ 42%] Built target instance_norm_op [ 42%] Built target cast_op_lite [ 43%] Built target transpose_op [ 43%] Built target feed_compute_host [ 44%] Built target reduce_mean_op [ 44%] Built target stack_op [ 47%] Built target dropout_op [ 45%] Built target instance_norm_compute_arm [ 45%] Built target fill_constant_batch_size_like_compute_arm [ 49%] Built target reduce_mean_compute_arm [ 45%] Built target multiclass_nms_compute_host [ 46%] Built target multiclass_nms_op_lite [ 46%] Built target relu_op [ 46%] Built target density_prior_box_compute_arm [ 47%] Linking CXX static library libutils.a [ 47%] Built target dropout_compute_arm [ 48%] Built target fetch_compute_host [ 49%] Built target reshape_compute_host [ 49%] Built target box_coder_compute_arm [ 50%] Built target unsqueeze_compute_arm [ 51%] Built target range_compute_arm [ 52%] Built target conv_transpose_compute_arm [ 53%] Built target conv_direct [ 53%] Built target cast_compute_arm [ 53%] Built target interpolate_compute_arm /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ar: CMakeFiles/utils.dir/string.cc.o: plugin needed to handle lto object [ 54%] Built target conv_gemmlike [ 54%] Built target fill_constant_compute_arm [ 55%] Built target expand_compute_arm [ 55%] Built target scale_compute_arm [ 53%] Built target matmul_compute_arm [ 53%] Built target softmax_compute_arm [ 54%] Built target argmax_compute_arm [ 56%] Built target mul_compute_arm Scanning dependencies of target layout_compute_arm Scanning dependencies of target elementwise_compute_arm [ 57%] Built target affine_channel_compute_arm Scanning dependencies of target pool_compute_arm Scanning dependencies of target grid_sampler_compute_arm [ 57%] Built target calib_compute_arm Scanning dependencies of target split_compute_arm [ 57%] Built target activation_compute_arm [ 57%] Built target conv_depthwise Scanning dependencies of target batch_norm_compute_arm [ 58%] Built target conv_winograd Scanning dependencies of target squeeze_compute_arm /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ranlib: libutils.a(string.cc.o): plugin needed to handle lto object Scanning dependencies of target shuffle_channel_compute_arm Scanning dependencies of target slice_compute_arm Scanning dependencies of target prior_box_compute_arm Scanning dependencies of target fc_compute_arm Scanning dependencies of target concat_compute_arm Scanning dependencies of target pad2d_compute_arm [ 59%] Building CXX object lite/kernels/arm/CMakeFiles/slice_compute_arm.dir/slice_compute.cc.o Scanning dependencies of target stack_compute_arm [ 59%] Built target utils [ 59%] Building CXX object lite/kernels/arm/CMakeFiles/elementwise_compute_arm.dir/elementwise_compute.cc.o Scanning dependencies of target transpose_compute_arm [ 59%] Building CXX object lite/kernels/arm/CMakeFiles/squeeze_compute_arm.dir/squeeze_compute.cc.o [ 59%] Building CXX object lite/kernels/arm/CMakeFiles/split_compute_arm.dir/split_compute.cc.o [ 59%] Building CXX object lite/kernels/arm/CMakeFiles/layout_compute_arm.dir/layout_compute.cc.o [ 59%] Building CXX object lite/kernels/arm/CMakeFiles/shuffle_channel_compute_arm.dir/shuffle_channel_compute.cc.o [ 59%] Building CXX object lite/kernels/arm/CMakeFiles/concat_compute_arm.dir/concat_compute.cc.o [ 59%] Building CXX object lite/kernels/arm/CMakeFiles/pool_compute_arm.dir/pool_compute.cc.o [ 59%] Building CXX object lite/kernels/arm/CMakeFiles/batch_norm_compute_arm.dir/batch_norm_compute.cc.o [ 59%] Building CXX object lite/kernels/arm/CMakeFiles/grid_sampler_compute_arm.dir/grid_sampler_compute.cc.o [ 59%] Building CXX object lite/kernels/arm/CMakeFiles/stack_compute_arm.dir/stack_compute.cc.o [ 59%] Building CXX object lite/kernels/arm/CMakeFiles/fc_compute_arm.dir/fc_compute.cc.o [ 59%] Building CXX object lite/kernels/arm/CMakeFiles/prior_box_compute_arm.dir/prior_box_compute.cc.o [ 59%] Building CXX object lite/kernels/arm/CMakeFiles/pad2d_compute_arm.dir/pad2d_compute.cc.o [ 59%] Building CXX object lite/kernels/arm/CMakeFiles/transpose_compute_arm.dir/transpose_compute.cc.o [ 59%] Linking CXX static library libsqueeze_compute_arm.a [ 60%] Linking CXX static library libbatch_norm_compute_arm.a /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ar: CMakeFiles/squeeze_compute_arm.dir/squeeze_compute.cc.o: plugin needed to handle lto object /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ranlib: libsqueeze_compute_arm.a(squeeze_compute.cc.o): plugin needed to handle lto object /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ar: CMakeFiles/batch_norm_compute_arm.dir/batch_norm_compute.cc.o: plugin needed to handle lto object [ 60%] Built target squeeze_compute_arm /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ranlib: libbatch_norm_compute_arm.a(batch_norm_compute.cc.o): plugin needed to handle lto objectScanning dependencies of target yolo_box_compute_arm

[ 60%] Built target batch_norm_compute_arm [ 61%] Built target fusion_elementwise_activation_ops Scanning dependencies of target io_copy_once_op [ 61%] Linking CXX static library libpad2d_compute_arm.a [ 61%] Building CXX object lite/operators/CMakeFiles/io_copy_once_op.dir/io_copy_once_op.cc.o [ 61%] Building CXX object lite/kernels/arm/CMakeFiles/yolo_box_compute_arm.dir/yolo_box_compute.cc.o [ 61%] Linking CXX static library libshuffle_channel_compute_arm.a /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ar: CMakeFiles/pad2d_compute_arm.dir/pad2d_compute.cc.o: plugin needed to handle lto object /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ranlib: libpad2d_compute_arm.a(pad2d_compute.cc.o): plugin needed to handle lto object [ 61%] Built target pad2d_compute_arm /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ar: CMakeFiles/shuffle_channel_compute_arm.dir/shuffle_channel_compute.cc.o: plugin needed to handle lto object /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ranlib: libshuffle_channel_compute_arm.a(shuffle_channel_compute.cc.o): plugin needed to handle lto object [ 61%] Built target shuffle_channel_compute_arm Scanning dependencies of target conv_compute_arm [ 61%] Building CXX object lite/kernels/arm/CMakeFiles/conv_compute_arm.dir/conv_compute.cc.o [ 61%] Linking CXX static library libgrid_sampler_compute_arm.a [ 61%] Linking CXX static library libsplit_compute_arm.a /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ar: CMakeFiles/grid_sampler_compute_arm.dir/grid_sampler_compute.cc.o: plugin needed to handle lto object /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ranlib: libgrid_sampler_compute_arm.a(grid_sampler_compute.cc.o): plugin needed to handle lto object /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ar: CMakeFiles/split_compute_arm.dir/split_compute.cc.o: plugin needed to handle lto object [ 61%] Built target grid_sampler_compute_arm /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ranlib: libsplit_compute_arm.a(split_compute.cc.o): plugin needed to handle lto object [ 61%] Built target split_compute_arm [ 61%] Linking CXX static library libtranspose_compute_arm.a /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ar: CMakeFiles/transpose_compute_arm.dir/transpose_compute.cc.o: plugin needed to handle lto object /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ranlib: libtranspose_compute_arm.a(transpose_compute.cc.o): plugin needed to handle lto object [ 61%] Built target transpose_compute_arm [ 62%] Linking CXX static library libprior_box_compute_arm.a [ 63%] Linking CXX static library libstack_compute_arm.a [ 63%] Linking CXX static library libpool_compute_arm.a /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ar: CMakeFiles/stack_compute_arm.dir/stack_compute.cc.o: plugin needed to handle lto object /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ar: CMakeFiles/pool_compute_arm.dir/pool_compute.cc.o: plugin needed to handle lto object /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ranlib: libstack_compute_arm.a(stack_compute.cc.o): plugin needed to handle lto object /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ar: CMakeFiles/prior_box_compute_arm.dir/prior_box_compute.cc.o: plugin needed to handle lto object /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ranlib: libprior_box_compute_arm.a(prior_box_compute.cc.o): plugin needed to handle lto object /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ranlib: libpool_compute_arm.a(pool_compute.cc.o): plugin needed to handle lto object [ 63%] Linking CXX static library libconcat_compute_arm.a [ 63%] Built target stack_compute_arm [ 63%] Built target prior_box_compute_arm [ 63%] Built target pool_compute_arm /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ar: CMakeFiles/concat_compute_arm.dir/concat_compute.cc.o: plugin needed to handle lto object /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ranlib: libconcat_compute_arm.a(concat_compute.cc.o): plugin needed to handle lto object [ 63%] Built target concat_compute_arm [ 63%] Linking CXX static library libslice_compute_arm.a [ 63%] Linking CXX static library liblayout_compute_arm.a /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ar: CMakeFiles/layout_compute_arm.dir/layout_compute.cc.o: plugin needed to handle lto object /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ar: CMakeFiles/slice_compute_arm.dir/slice_compute.cc.o: plugin needed to handle lto object /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ranlib: libslice_compute_arm.a(slice_compute.cc.o): plugin needed to handle lto object /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ranlib: liblayout_compute_arm.a(layout_compute.cc.o): plugin needed to handle lto object [ 63%] Built target layout_compute_arm [ 63%] Built target slice_compute_arm [ 63%] Linking CXX static library libfc_compute_arm.a /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ar: CMakeFiles/fc_compute_arm.dir/fc_compute.cc.o: plugin needed to handle lto object /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ranlib: libfc_compute_arm.a(fc_compute.cc.o): plugin needed to handle lto object [ 63%] Built target fc_compute_arm [ 63%] Linking CXX shared library libpaddle_light_api_shared.so [ 63%] Linking CXX static library libelementwise_compute_arm.a /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ar: CMakeFiles/elementwise_compute_arm.dir/elementwise_compute.cc.o: plugin needed to handle lto object /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ranlib: libelementwise_compute_arm.a(elementwise_compute.cc.o): plugin needed to handle lto object [ 63%] Built target elementwise_compute_arm [ 63%] Linking CXX static library libyolo_box_compute_arm.a /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ar: CMakeFiles/yolo_box_compute_arm.dir/yolo_box_compute.cc.o: plugin needed to handle lto object /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ranlib: libyolo_box_compute_arm.a(yolo_box_compute.cc.o): plugin needed to handle lto object [ 63%] Built target yolo_box_compute_arm [ 63%] Linking CXX static library libio_copy_once_op.a /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ar: CMakeFiles/io_copy_once_op.dir/io_copy_once_op.cc.o: plugin needed to handle lto object /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ranlib: libio_copy_once_op.a(io_copy_once_op.cc.o): plugin needed to handle lto object [ 63%] Built target io_copy_once_op Scanning dependencies of target program [ 63%] Building CXX object lite/core/CMakeFiles/program.dir/program.cc.o [ 63%] Linking CXX static library libconv_compute_arm.a /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ar: CMakeFiles/conv_compute_arm.dir/conv_compute.cc.o: plugin needed to handle lto object /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ranlib: libconv_compute_arm.a(conv_compute.cc.o): plugin needed to handle lto object [ 63%] Built target conv_compute_arm [ 63%] Linking CXX static library libprogram.a /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ar: CMakeFiles/program.dir/program.cc.o: plugin needed to handle lto object /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ranlib: libprogram.a(program.cc.o): plugin needed to handle lto object [ 63%] Built target program Scanning dependencies of target light_api [ 63%] Building CXX object lite/api/CMakeFiles/light_api.dir/light_api.cc.o during RTL pass: reload /home/pengguanhai/workspace/other/Paddle-Lite/lite/backends/arm/math/conv3x3_winograd_fp32_c4.cc: In function ‘output_trans_c4_6x8.constprop’: /home/pengguanhai/workspace/other/Paddle-Lite/lite/backends/arm/math/conv3x3_winograd_fp32_c4.cc:919:1: internal compiler error: in decompose_automod_address, at rtlanal.c:6311 919 | } | ^ 0xa9f1f7 decompose_automod_address /home/meng/toolchain/build/snapshots/gcc.git~gcc-9_1_0-release/gcc/rtlanal.c:6311 0xa9f1f7 decompose_address(address_info*, rtx_def, machine_mode, unsigned char, rtx_code) /home/meng/toolchain/build/snapshots/gcc.git~gcc-9_1_0-release/gcc/rtlanal.c:6476 0x979c81 process_address_1 /home/meng/toolchain/build/snapshots/gcc.git~gcc-9_1_0-release/gcc/lra-constraints.c:3322 0x97ba4a process_address /home/meng/toolchain/build/snapshots/gcc.git~gcc-9_1_0-release/gcc/lra-constraints.c:3593 0x97ba4a curr_insn_transform /home/meng/toolchain/build/snapshots/gcc.git~gcc-9_1_0-release/gcc/lra-constraints.c:3908 0x97f04e lra_constraints(bool) /home/meng/toolchain/build/snapshots/gcc.git~gcc-9_1_0-release/gcc/lra-constraints.c:4978 0x96690c lra(_IO_FILE) /home/meng/toolchain/build/snapshots/gcc.git~gcc-9_1_0-release/gcc/lra.c:2472 0x918c09 do_reload /home/meng/toolchain/build/snapshots/gcc.git~gcc-9_1_0-release/gcc/ira.c:5516 0x918c09 execute /home/meng/toolchain/build/snapshots/gcc.git~gcc-9_1_0-release/gcc/ira.c:5700 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See https://gcc.gnu.org/bugs/ for instructions. lto-wrapper: fatal error: /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-g++ returned 1 exit status compilation terminated. /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/9.1.0/../../../../arm-linux-gnueabihf/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status lite/api/CMakeFiles/paddle_light_api_shared.dir/build.make:3173: recipe for target 'lite/api/libpaddle_light_api_shared.so' failed make[2]: [lite/api/libpaddle_light_api_shared.so] Error 1 CMakeFiles/Makefile2:8508: recipe for target 'lite/api/CMakeFiles/paddle_light_api_shared.dir/all' failed make[1]: [lite/api/CMakeFiles/paddle_light_api_shared.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... [ 63%] Linking CXX static library liblight_api.a /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ar: CMakeFiles/light_api.dir/light_api.cc.o: plugin needed to handle lto object /home/pengguanhai/workspace/SOC/sigmastar-ssd222/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-sigmastar-9.1.0-ranlib: liblight_api.a(light_api.cc.o): plugin needed to handle lto object [ 63%] Built target light_api Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

可以看到2个问题: 1.编译过程中提示 plugin needed to handle lto object 2.internal compiler error: in decompose_automod_address, at rtlanal.c:6311 请帮忙排查下问题,如有编译链需要,请及时联系我

paddle-bot-old[bot] commented 3 years ago

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网文档常见问题历史Issue来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the APIFAQ and Github Issue to get the answer.Have a nice day!

Leonardo-Ding commented 3 years ago

同学您好,出现这个lto编译问题说明您使用的交叉编译工具gcc不支持lto,建议您在使用build.sh编译时把LITE_WITH_LTO这个链接优化选项关掉,谢谢。

201901 commented 3 years ago

同学您好,出现这个lto编译问题说明您使用的交叉编译工具gcc不支持lto,建议您在使用build.sh编译时把LITE_WITH_LTO这个链接优化选项关掉,谢谢。

您好!在build.sh中并没有找到LITE_WITH_LTO选项

201901 commented 3 years ago

[ 98%] Building CXX object lite/api/CMakeFiles/paddle_light_api_shared.dir/light_api.cc.o [ 98%] Building CXX object lite/api/CMakeFiles/paddle_light_api_shared.dir/light_api_impl.cc.o [100%] Linking CXX shared library libpaddle_light_api_shared.so during RTL pass: reload /home/testos/users/dkm/lac0524/20210525/Paddle-Lite/lite/backends/arm/math/conv3x3_winograd_fp32_c4.cc: In function ‘output_trans_c4_6x8.constprop’: /home/testos/users/dkm/lac0524/20210525/Paddle-Lite/lite/backends/arm/math/conv3x3_winograd_fp32_c4.cc:919:1: internal compiler error: in decompose_automod_address, at rtlanal.c:6311 919 | } | ^ 0xa9f1f7 decompose_automod_address /home/meng/toolchain/build/snapshots/gcc.git~gcc-9_1_0-release/gcc/rtlanal.c:6311 0xa9f1f7 decompose_address(address_info*, rtx_def, machine_mode, unsigned char, rtx_code) /home/meng/toolchain/build/snapshots/gcc.git~gcc-9_1_0-release/gcc/rtlanal.c:6476 0x979c81 process_address_1 /home/meng/toolchain/build/snapshots/gcc.git~gcc-9_1_0-release/gcc/lra-constraints.c:3322 0x97ba4a process_address /home/meng/toolchain/build/snapshots/gcc.git~gcc-9_1_0-release/gcc/lra-constraints.c:3593 0x97ba4a curr_insn_transform /home/meng/toolchain/build/snapshots/gcc.git~gcc-9_1_0-release/gcc/lra-constraints.c:3908 0x97f04e lra_constraints(bool) /home/meng/toolchain/build/snapshots/gcc.git~gcc-9_1_0-release/gcc/lra-constraints.c:4978 0x96690c lra(_IO_FILE) /home/meng/toolchain/build/snapshots/gcc.git~gcc-9_1_0-release/gcc/lra.c:2472 0x918c09 do_reload /home/meng/toolchain/build/snapshots/gcc.git~gcc-9_1_0-release/gcc/ira.c:5516 0x918c09 execute /home/meng/toolchain/build/snapshots/gcc.git~gcc-9_1_0-release/gcc/ira.c:5700 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/&gt; for instructions. lto-wrapper: fatal error: /usr/local/arm/bin/arm-linux-gnueabihf-g++ returned 1 exit status compilation terminated. /usr/local/arm/bin/../lib/gcc/arm-linux-gnueabihf/9.1.0/../../../../arm-linux-gnueabihf/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status lite/api/CMakeFiles/paddle_light_api_shared.dir/build.make:3403: recipe for target 'lite/api/libpaddle_light_api_shared.so' failed make[3]: [lite/api/libpaddle_light_api_shared.so] Error 1 CMakeFiles/Makefile2:7724: recipe for target 'lite/api/CMakeFiles/paddle_light_api_shared.dir/all' failed make[2]: [lite/api/CMakeFiles/paddle_light_api_shared.dir/all] Error 2 CMakeFiles/Makefile2:1573: recipe for target 'lite/CMakeFiles/publish_inference.dir/rule' failed make[1]: [lite/CMakeFiles/publish_inference.dir/rule] Error 2 Makefile:203: recipe for target 'publish_inference' failed make: *** [publish_inference] Error 2

目标是交叉编译到armLinux上 使用的交叉编译工具是arm-linux--gnueabihf-9.1.0,Paddle-Lite是v2.7版本,CMAKE的版本是3.17.3 在linux平台编译出现如上错误,望解答?