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.94k stars 1.61k forks source link

opt.run()及编译opt时报错 #10393

Open dicklim opened 1 year ago

dicklim commented 1 year ago
model_root = 'Round-5_Epo058_acc0.9788.mdl'
model = torchvision.models.mobilenet_v3_large(weights=torchvision.models.MobileNet_V3_Large_Weights.DEFAULT)
model.classifier = nn.Sequential(
    nn.Linear(960, 1280),
    nn.Hardswish(),
    nn.Dropout(0.2),
    nn.Linear(1280, 256),
    nn.Hardswish(),
    nn.Dropout(0.2),
    nn.Linear(256, 2)
)
checkpoint = torch.load(model_root)
model.load_state_dict({k.replace('module.', ''): v for k, v in checkpoint.items()})
model.eval()

image = Image.open('./demo.jpg')
image = np.array(image)
image = np.transpose(image)
image = np.expand_dims(image, 0)
# print(image.size())
image = torch.from_numpy(image.astype(np.float32))

pytorch2paddle(module=model,
               save_dir="./pd_model",
               jit_type="trace",
               input_examples=[image])

跑出的文件为:

pd_model
├── inference_model
│   ├── model.pdiparams
│   ├── model.pdiparams.info
│   └── model.pdmodel
├── model.pdparams
├── __pycache__
│   └── x2paddle_code.cpython-38.pyc
└── x2paddle_code.py

但是我后来想跑opt的时候就会报错,代码如下:

opt=Opt()
opt.set_model_dir("/home/dd/Code/Demo4/Paddle/pd_model_trace/inference_model")
opt.set_valid_places("arm")
opt.set_model_type("naive_buffer")
opt.set_optimize_out("./test_opt")
opt.run()

跑了报错139 Process finished with exit code 139 换用命令行跑结果一样

dd@dd-Super-Server:~/Code/Demo4/Paddle$ paddle_lite_opt --model_dir=/home/dd/Code/Demo4/Paddle/pd_model/inference_model --valid_targets=arm --optimize_out=./mobilenetv3_opt
Loading topology data from /home/dd/Code/Demo4/Paddle/pd_model/inference_model/model.pdmodel
Loading params data from /home/dd/Code/Demo4/Paddle/pd_model/inference_model/model.pdiparams
1. Model is successfully loaded!
Segmentation fault (core dumped)

然后我怀疑会不会是没编译好,就去编译了一下 ./lite/tools/build.sh build_optimize_tool

结果还是不行,报错如下

(NewDL) dd@dd-Super-Server:/home/ssd/Software/Paddle-Lite$ vim ./lite/tools/build.sh
(NewDL) dd@dd-Super-Server:/home/ssd/Software/Paddle-Lite$ ./lite/tools/build.sh build_optimize_tool
-- Found Paddle host system: ubuntu, version: 22.04.1
-- Found Paddle host system's CPU: 128 cores
-- CXX compiler: /usr/bin/c++, version: GNU 11.4.0
-- C compiler: /usr/bin/cc, version: GNU 11.4.0
-- AR tools: /usr/bin/ar
-- CMAKE_BUILD_TYPE: RelWithDebInfo
-- Do not have AVX2 intrinsics and disabled MKL-DNN
-- Protobuf protoc executable: /home/ssd/Software/Paddle-Lite/build.opt/third_party/install/protobuf/bin/protoc
-- Protobuf-lite library: /home/ssd/Software/Paddle-Lite/build.opt/third_party/install/protobuf/lib/libprotobuf-lite.a
-- Protobuf library: /home/ssd/Software/Paddle-Lite/build.opt/third_party/install/protobuf/lib/libprotobuf.a
-- Protoc library: /home/ssd/Software/Paddle-Lite/build.opt/third_party/install/protobuf/lib/libprotoc.a
-- Protobuf version: 3.3.0
-- BLAS library: /home/ssd/Software/Paddle-Lite/build.opt/third_party/install/openblas/lib/libopenblas.a
-- BLAS Include: /home/ssd/Software/Paddle-Lite/build.opt/third_party/install/openblas/include
-- Paddle version is 0.0.0
-- LIGHT_FRAMEWORK:     OFF
-- LITE_WITH_CUDA:      OFF
-- LITE_WITH_X86:       ON
-- LITE_WITH_ARM:       OFF
-- LITE_WITH_SW:        OFF
-- LITE_WITH_OPENCL:    OFF
-- LITE_WITH_METAL:     OFF
-- LITE_WITH_NPU:       OFF
-- LITE_WITH_RKNPU:     OFF
-- LITE_WITH_XPU:       OFF
-- LITE_WITH_APU:       OFF
-- LITE_WITH_XTCL:      
-- LITE_WITH_FPGA:      OFF
-- LITE_WITH_INTEL_FPGA:        OFF
-- LITE_WITH_MLU:       OFF
-- LITE_WITH_HUAWEI_ASCEND_NPU: OFF
-- LITE_WITH_BM:        OFF
-- LITE_WITH_IMAGINATION_NNA:   OFF
-- LITE_WITH_NNADAPTER: OFF
-- LITE_WITH_PROFILE:   OFF
-- LITE_WITH_CV:        OFF
-- add lite kernels
-- compile with lite host kernels
-- compile with lite ARM kernels
-- compile with lite CUDA kernels
-- compile with lite Metal kernels
fatal: no tag exactly matches '30fe065bcc6cbd0d9cfd4f0497cf4b4f59913749'
-- tag: 
-- branch: release/v2.10
-- commit: 30fe065bc
-- bundled_tgt_full_name:  /home/ssd/Software/Paddle-Lite/build.opt/libpaddle_api_full_bundled.a
-- bundled_tgt_full_name:  /home/ssd/Software/Paddle-Lite/build.opt/libpaddle_api_light_bundled.a
-- Compiling opt
-- publish inference lib to /home/ssd/Software/Paddle-Lite/build.opt/inference_lite_lib
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ssd/Software/Paddle-Lite/build.opt
make[1]: Entering directory '/home/ssd/Software/Paddle-Lite/build.opt'
make[2]: Entering directory '/home/ssd/Software/Paddle-Lite/build.opt'
make[3]: Entering directory '/home/ssd/Software/Paddle-Lite/build.opt'
make[3]: Entering directory '/home/ssd/Software/Paddle-Lite/build.opt'
make[3]: Entering directory '/home/ssd/Software/Paddle-Lite/build.opt'
make[3]: Entering directory '/home/ssd/Software/Paddle-Lite/build.opt'
make[3]: Leaving directory '/home/ssd/Software/Paddle-Lite/build.opt'
make[3]: Leaving directory '/home/ssd/Software/Paddle-Lite/build.opt'
make[3]: Leaving directory '/home/ssd/Software/Paddle-Lite/build.opt'
make[3]: Leaving directory '/home/ssd/Software/Paddle-Lite/build.opt'
make[3]: Entering directory '/home/ssd/Software/Paddle-Lite/build.opt'
make[3]: Entering directory '/home/ssd/Software/Paddle-Lite/build.opt'
[  0%] Creating directories for 'extern_protobuf'
[  1%] Built target extern_gflags
[  1%] Built target extern_eigen3
make[3]: Entering directory '/home/ssd/Software/Paddle-Lite/build.opt'
make[3]: Leaving directory '/home/ssd/Software/Paddle-Lite/build.opt'
make[3]: Entering directory '/home/ssd/Software/Paddle-Lite/build.opt'
make[3]: Leaving directory '/home/ssd/Software/Paddle-Lite/build.opt'
[  1%] Performing configure step for 'extern_glog'
[  1%] Built target fbs_headers
[  1%] No download step for 'extern_protobuf'
[  1%] No patch step for 'extern_protobuf'
[  1%] No update step for 'extern_protobuf'
[  1%] Performing configure step for 'extern_protobuf'
-- extern_protobuf configure command succeeded.  See also /home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/extern_protobuf-stamp/extern_protobuf-configure-*.log
[  1%] Performing build step for 'extern_protobuf'
make[4]: Entering directory '/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/extern_protobuf-build'
make[5]: Entering directory '/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/extern_protobuf-build'
make[6]: Entering directory '/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/extern_protobuf-build'
make[6]: Entering directory '/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/extern_protobuf-build'
Scanning dependencies of target libprotobuf-lite
Scanning dependencies of target libprotobuf
make[6]: Leaving directory '/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/extern_protobuf-build'
make[6]: Entering directory '/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/extern_protobuf-build'
[  0%] Building CXX object CMakeFiles/libprotobuf-lite.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/arena.cc.o
[  1%] Building CXX object CMakeFiles/libprotobuf-lite.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/generated_message_util.cc.o
[  2%] Building CXX object CMakeFiles/libprotobuf-lite.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/arenastring.cc.o
[  2%] Building CXX object CMakeFiles/libprotobuf-lite.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/extension_set.cc.o
[  2%] Building CXX object CMakeFiles/libprotobuf-lite.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/io/coded_stream.cc.o
[  3%] Building CXX object CMakeFiles/libprotobuf-lite.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/io/zero_copy_stream.cc.o
[  4%] Building CXX object CMakeFiles/libprotobuf-lite.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/message_lite.cc.o
[  4%] Building CXX object CMakeFiles/libprotobuf-lite.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/io/zero_copy_stream_impl_lite.cc.o
[  5%] Building CXX object CMakeFiles/libprotobuf-lite.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc.o
[  5%] Building CXX object CMakeFiles/libprotobuf-lite.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/repeated_field.cc.o
[  5%] Building CXX object CMakeFiles/libprotobuf-lite.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc.o
[  6%] Building CXX object CMakeFiles/libprotobuf-lite.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/stubs/bytestream.cc.o
[  6%] Building CXX object CMakeFiles/libprotobuf-lite.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/stubs/common.cc.o
[  7%] Building CXX object CMakeFiles/libprotobuf-lite.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/stubs/int128.cc.o
[  8%] Building CXX object CMakeFiles/libprotobuf-lite.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/stubs/once.cc.o
[  8%] Building CXX object CMakeFiles/libprotobuf-lite.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/stubs/stringpiece.cc.o
[  9%] Building CXX object CMakeFiles/libprotobuf-lite.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/stubs/status.cc.o
[  9%] Building CXX object CMakeFiles/libprotobuf-lite.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/stubs/statusor.cc.o
[  9%] Building CXX object CMakeFiles/libprotobuf-lite.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/stubs/stringprintf.cc.o
[ 11%] Building CXX object CMakeFiles/libprotobuf-lite.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/stubs/strutil.cc.o
[ 11%] Building CXX object CMakeFiles/libprotobuf-lite.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/stubs/structurally_valid.cc.o
[ 11%] Building CXX object CMakeFiles/libprotobuf-lite.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/stubs/time.cc.o
[ 12%] Building CXX object CMakeFiles/libprotobuf-lite.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/wire_format_lite.cc.o
make[6]: Leaving directory '/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/extern_protobuf-build'
make[6]: Entering directory '/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/extern_protobuf-build'
[ 12%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/arena.cc.o
[ 13%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/arenastring.cc.o
[ 13%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/extension_set.cc.o
[ 14%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/generated_message_util.cc.o
[ 14%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/io/coded_stream.cc.o
[ 15%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/io/zero_copy_stream.cc.o
[ 15%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/io/zero_copy_stream_impl_lite.cc.o
[ 16%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/message_lite.cc.o
[ 16%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/repeated_field.cc.o
[ 17%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc.o
[ 17%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc.o
[ 18%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/stubs/bytestream.cc.o
[ 18%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/stubs/common.cc.o
[ 19%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/stubs/int128.cc.o
[ 19%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/stubs/once.cc.o
[ 20%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/stubs/status.cc.o
[ 20%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/stubs/statusor.cc.o
[ 21%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/stubs/stringpiece.cc.o
[ 21%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/stubs/stringprintf.cc.o
[ 22%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/stubs/structurally_valid.cc.o
[ 22%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/stubs/strutil.cc.o
[ 23%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/stubs/time.cc.o
[ 23%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/wire_format_lite.cc.o
[ 23%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/any.pb.cc.o
[ 24%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/any.cc.o
[ 25%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/api.pb.cc.o
[ 25%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/importer.cc.o
[ 26%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/parser.cc.o
[ 26%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/descriptor.cc.o
[ 27%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/descriptor.pb.cc.o
[ 27%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/descriptor_database.cc.o
[ 28%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/duration.pb.cc.o
[ 28%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/dynamic_message.cc.o
[ 29%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/empty.pb.cc.o
[ 29%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/extension_set_heavy.cc.o
[ 30%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/field_mask.pb.cc.o
[ 31%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/io/gzip_stream.cc.o
[ 31%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/generated_message_reflection.cc.o
[ 31%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/io/printer.cc.o
[ 32%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/io/strtod.cc.o
[ 32%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/io/tokenizer.cc.o
[ 33%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/io/zero_copy_stream_impl.cc.o
[ 33%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/map_field.cc.o
[ 34%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/message.cc.o
[ 34%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/reflection_ops.cc.o
[ 35%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/service.cc.o
[ 35%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/source_context.pb.cc.o
[ 36%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/struct.pb.cc.o
[ 37%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/stubs/mathlimits.cc.o
[ 37%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/stubs/substitute.cc.o
[ 38%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/text_format.cc.o
[ 38%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/timestamp.pb.cc.o
[ 39%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/type.pb.cc.o
[ 39%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/unknown_field_set.cc.o
[ 40%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/util/field_comparator.cc.o
[ 40%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/util/field_mask_util.cc.o
[ 41%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/util/internal/datapiece.cc.o
[ 41%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/util/internal/default_value_objectwriter.cc.o
[ 42%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/util/internal/error_listener.cc.o
[ 42%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/util/internal/field_mask_utility.cc.o
[ 43%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/util/internal/json_escaping.cc.o
[ 43%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/util/internal/json_objectwriter.cc.o
[ 44%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/util/internal/json_stream_parser.cc.o
[ 44%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/util/internal/object_writer.cc.o
[ 45%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/util/internal/proto_writer.cc.o
[ 45%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/util/internal/protostream_objectsource.cc.o
[ 46%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/util/internal/protostream_objectwriter.cc.o
[ 46%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/util/internal/type_info.cc.o
[ 46%] Linking CXX static library libprotobuf-lite.a
[ 47%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/util/internal/type_info_test_helper.cc.o
make[6]: Leaving directory '/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/extern_protobuf-build'
[ 47%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/util/internal/utility.cc.o
[ 47%] Built target libprotobuf-lite
[ 48%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/util/json_util.cc.o
[ 48%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/util/message_differencer.cc.o
[ 49%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/util/time_util.cc.o
[ 49%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/util/type_resolver_util.cc.o
[ 50%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/wire_format.cc.o
[ 50%] Building CXX object CMakeFiles/libprotobuf.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/wrappers.pb.cc.o
[ 51%] Linking CXX static library libprotobuf.a
make[6]: Leaving directory '/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/extern_protobuf-build'
[ 51%] Built target libprotobuf
make[6]: Entering directory '/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/extern_protobuf-build'
Scanning dependencies of target libprotoc
make[6]: Leaving directory '/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/extern_protobuf-build'
make[6]: Entering directory '/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/extern_protobuf-build'
[ 52%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/command_line_interface.cc.o
[ 52%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/code_generator.cc.o
[ 53%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/cpp/cpp_extension.cc.o
[ 54%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/cpp/cpp_enum_field.cc.o
[ 54%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/cpp/cpp_enum.cc.o
[ 55%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/cpp/cpp_helpers.cc.o
[ 55%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/cpp/cpp_field.cc.o
[ 56%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/cpp/cpp_file.cc.o
[ 56%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/cpp/cpp_generator.cc.o
[ 56%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/cpp/cpp_map_field.cc.o
[ 57%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/cpp/cpp_message_field.cc.o
[ 57%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/cpp/cpp_message.cc.o
[ 58%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/cpp/cpp_primitive_field.cc.o
[ 58%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/cpp/cpp_service.cc.o
[ 59%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/cpp/cpp_string_field.cc.o
[ 59%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/csharp/csharp_doc_comment.cc.o
[ 60%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/csharp/csharp_enum.cc.o
[ 60%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/csharp/csharp_enum_field.cc.o
[ 62%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/csharp/csharp_helpers.cc.o
[ 62%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/csharp/csharp_generator.cc.o
[ 62%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/csharp/csharp_field_base.cc.o
[ 62%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/csharp/csharp_map_field.cc.o
[ 63%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/csharp/csharp_message.cc.o
[ 63%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/csharp/csharp_message_field.cc.o
[ 64%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/csharp/csharp_primitive_field.cc.o
[ 64%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/csharp/csharp_reflection_class.cc.o
[ 65%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/csharp/csharp_repeated_enum_field.cc.o
[ 65%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/csharp/csharp_repeated_message_field.cc.o
[ 66%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/csharp/csharp_repeated_primitive_field.cc.o
[ 67%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/csharp/csharp_source_generator_base.cc.o
[ 67%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/csharp/csharp_wrapper_field.cc.o
[ 67%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_context.cc.o
[ 68%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_doc_comment.cc.o
[ 68%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_enum.cc.o
[ 69%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_enum_field.cc.o
[ 69%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_enum_field_lite.cc.o
[ 70%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_enum_lite.cc.o
[ 70%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_extension.cc.o
[ 71%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_extension_lite.cc.o
[ 71%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_field.cc.o
[ 72%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_file.cc.o
[ 72%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_generator.cc.o
[ 73%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_generator_factory.cc.o
[ 73%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_helpers.cc.o
[ 74%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_lazy_message_field.cc.o
[ 75%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_lazy_message_field_lite.cc.o
[ 75%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_map_field.cc.o
[ 76%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_map_field_lite.cc.o
[ 76%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_message.cc.o
[ 77%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_message_builder.cc.o
[ 77%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_message_builder_lite.cc.o
[ 78%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_message_field.cc.o
[ 78%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_message_field_lite.cc.o
[ 79%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_message_lite.cc.o
[ 79%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_name_resolver.cc.o
[ 80%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_primitive_field.cc.o
[ 80%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_primitive_field_lite.cc.o
[ 81%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_service.cc.o
[ 81%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_shared_code_generator.cc.o
[ 82%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_string_field.cc.o
[ 82%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_string_field_lite.cc.o
[ 83%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/javanano/javanano_enum.cc.o
[ 83%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/javanano/javanano_enum_field.cc.o
In file included from /usr/include/c++/11/set:60,
                 from /home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_file.cc:41:
/usr/include/c++/11/bits/stl_tree.h: In instantiation of ‘static const _Key& std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_S_key(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Const_Link_type) [with _Key = const google::protobuf::FieldDescriptor*; _Val = const google::protobuf::FieldDescriptor*; _KeyOfValue = std::_Identity<const google::protobuf::FieldDescriptor*>; _Compare = google::protobuf::compiler::java::{anonymous}::FieldDescriptorCompare; _Alloc = std::allocator<const google::protobuf::FieldDescriptor*>; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Const_Link_type = const std::_Rb_tree_node<const google::protobuf::FieldDescriptor*>*]’:
/usr/include/c++/11/bits/stl_tree.h:2071:47:   required from ‘std::pair<std::_Rb_tree_node_base*, std::_Rb_tree_node_base*> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_get_insert_unique_pos(const key_type&) [with _Key = const google::protobuf::FieldDescriptor*; _Val = const google::protobuf::FieldDescriptor*; _KeyOfValue = std::_Identity<const google::protobuf::FieldDescriptor*>; _Compare = google::protobuf::compiler::java::{anonymous}::FieldDescriptorCompare; _Alloc = std::allocator<const google::protobuf::FieldDescriptor*>; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::key_type = const google::protobuf::FieldDescriptor*]’
/usr/include/c++/11/bits/stl_tree.h:2124:4:   required from ‘std::pair<std::_Rb_tree_iterator<_Val>, bool> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_unique(_Arg&&) [with _Arg = const google::protobuf::FieldDescriptor* const&; _Key = const google::protobuf::FieldDescriptor*; _Val = const google::protobuf::FieldDescriptor*; _KeyOfValue = std::_Identity<const google::protobuf::FieldDescriptor*>; _Compare = google::protobuf::compiler::java::{anonymous}::FieldDescriptorCompare; _Alloc = std::allocator<const google::protobuf::FieldDescriptor*>]’
/usr/include/c++/11/bits/stl_set.h:512:25:   required from ‘std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key = const google::protobuf::FieldDescriptor*; _Compare = google::protobuf::compiler::java::{anonymous}::FieldDescriptorCompare; _Alloc = std::allocator<const google::protobuf::FieldDescriptor*>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator = std::_Rb_tree<const google::protobuf::FieldDescriptor*, const google::protobuf::FieldDescriptor*, std::_Identity<const google::protobuf::FieldDescriptor*>, google::protobuf::compiler::java::{anonymous}::FieldDescriptorCompare, std::allocator<const google::protobuf::FieldDescriptor*> >::const_iterator; typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other = std::allocator<const google::protobuf::FieldDescriptor*>; typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key> = __gnu_cxx::__alloc_traits<std::allocator<const google::protobuf::FieldDescriptor*>, const google::protobuf::FieldDescriptor*>::rebind<const google::protobuf::FieldDescriptor*>; typename _Allocator::value_type = const google::protobuf::FieldDescriptor*; std::set<_Key, _Compare, _Alloc>::value_type = const google::protobuf::FieldDescriptor*]’
/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_file.cc:97:54:   required from here
/usr/include/c++/11/bits/stl_tree.h:770:15: error: static assertion failed: comparison object must be invocable as const
  770 |               is_invocable_v<const _Compare&, const _Key&, const _Key&>,
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/stl_tree.h:770:15: note: ‘std::is_invocable_v<const google::protobuf::compiler::java::{anonymous}::FieldDescriptorCompare&, const google::protobuf::FieldDescriptor* const&, const google::protobuf::FieldDescriptor* const&>’ evaluates to false
[ 84%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/javanano/javanano_extension.cc.o
[ 84%] Building CXX object CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/javanano/javanano_field.cc.o
make[6]: *** [CMakeFiles/libprotoc.dir/build.make:1023: CMakeFiles/libprotoc.dir/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_file.cc.o] Error 1
make[6]: *** Waiting for unfinished jobs....
-- extern_glog configure command succeeded.  See also /home/ssd/Software/Paddle-Lite/build.opt/third_party/install/glog/glog-stamp/extern_glog-configure-*.log
[  2%] Performing build step for 'extern_glog'
make[4]: Entering directory '/home/ssd/Software/Paddle-Lite/third-party/glog/src/extern_glog-build'
make[5]: Entering directory '/home/ssd/Software/Paddle-Lite/third-party/glog/src/extern_glog-build'
make[6]: Entering directory '/home/ssd/Software/Paddle-Lite/third-party/glog/src/extern_glog-build'
Scanning dependencies of target glog
make[6]: Leaving directory '/home/ssd/Software/Paddle-Lite/third-party/glog/src/extern_glog-build'
make[6]: Entering directory '/home/ssd/Software/Paddle-Lite/third-party/glog/src/extern_glog-build'
[ 12%] Building CXX object CMakeFiles/glog.dir/src/logging.cc.o
[ 37%] Building CXX object CMakeFiles/glog.dir/src/symbolize.cc.o
[ 37%] Building CXX object CMakeFiles/glog.dir/src/demangle.cc.o
[ 50%] Building CXX object CMakeFiles/glog.dir/src/raw_logging.cc.o
[ 62%] Building CXX object CMakeFiles/glog.dir/src/utilities.cc.o
[ 75%] Building CXX object CMakeFiles/glog.dir/src/vlog_is_on.cc.o
[ 87%] Building CXX object CMakeFiles/glog.dir/src/signalhandler.cc.o
make[6]: Leaving directory '/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/extern_protobuf-build'
make[5]: *** [CMakeFiles/Makefile2:105: CMakeFiles/libprotoc.dir/all] Error 2
make[5]: Leaving directory '/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/extern_protobuf-build'
make[4]: *** [Makefile:130: all] Error 2
make[4]: Leaving directory '/home/ssd/Software/Paddle-Lite/third-party/protobuf-host/src/extern_protobuf-build'
make[3]: *** [CMakeFiles/extern_protobuf.dir/build.make:111: ../third-party/protobuf-host/src/extern_protobuf-stamp/extern_protobuf-build] Error 2
make[3]: Leaving directory '/home/ssd/Software/Paddle-Lite/build.opt'
make[2]: *** [CMakeFiles/Makefile2:285: CMakeFiles/extern_protobuf.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[100%] Linking CXX static library libglog.a
make[6]: Leaving directory '/home/ssd/Software/Paddle-Lite/third-party/glog/src/extern_glog-build'
[100%] Built target glog
make[5]: Leaving directory '/home/ssd/Software/Paddle-Lite/third-party/glog/src/extern_glog-build'
make[4]: Leaving directory '/home/ssd/Software/Paddle-Lite/third-party/glog/src/extern_glog-build'
[  2%] Performing install step for 'extern_glog'
make[4]: Entering directory '/home/ssd/Software/Paddle-Lite/third-party/glog/src/extern_glog-build'
make[5]: Entering directory '/home/ssd/Software/Paddle-Lite/third-party/glog/src/extern_glog-build'
make[6]: Entering directory '/home/ssd/Software/Paddle-Lite/third-party/glog/src/extern_glog-build'
make[6]: Leaving directory '/home/ssd/Software/Paddle-Lite/third-party/glog/src/extern_glog-build'
[100%] Built target glog
make[5]: Leaving directory '/home/ssd/Software/Paddle-Lite/third-party/glog/src/extern_glog-build'
Install the project...
-- Install configuration: ""
-- Installing: /home/ssd/Software/Paddle-Lite/build.opt/third_party/install/glog/lib/libglog.a
-- Installing: /home/ssd/Software/Paddle-Lite/build.opt/third_party/install/glog/include/glog/config.h
-- Installing: /home/ssd/Software/Paddle-Lite/build.opt/third_party/install/glog/include/glog/logging.h
-- Installing: /home/ssd/Software/Paddle-Lite/build.opt/third_party/install/glog/include/glog/raw_logging.h
-- Installing: /home/ssd/Software/Paddle-Lite/build.opt/third_party/install/glog/include/glog/stl_logging.h
-- Installing: /home/ssd/Software/Paddle-Lite/build.opt/third_party/install/glog/include/glog/vlog_is_on.h
-- Up-to-date: /home/ssd/Software/Paddle-Lite/build.opt/third_party/install/glog/include/glog/log_severity.h
-- Installing: /home/ssd/Software/Paddle-Lite/build.opt/third_party/install/glog/lib/cmake/glog/glog-config.cmake
-- Installing: /home/ssd/Software/Paddle-Lite/build.opt/third_party/install/glog/lib/cmake/glog/glog-config-version.cmake
-- Installing: /home/ssd/Software/Paddle-Lite/build.opt/third_party/install/glog/lib/cmake/glog/glog-targets.cmake
-- Installing: /home/ssd/Software/Paddle-Lite/build.opt/third_party/install/glog/lib/cmake/glog/glog-targets-noconfig.cmake
make[4]: Leaving directory '/home/ssd/Software/Paddle-Lite/third-party/glog/src/extern_glog-build'
[  2%] Completed 'extern_glog'
make[3]: Leaving directory '/home/ssd/Software/Paddle-Lite/build.opt'
[  2%] Built target extern_glog
make[2]: Leaving directory '/home/ssd/Software/Paddle-Lite/build.opt'
make[1]: *** [CMakeFiles/Makefile2:2440: lite/api/CMakeFiles/opt.dir/rule] Error 2
make[1]: Leaving directory '/home/ssd/Software/Paddle-Lite/build.opt'
make: *** [Makefile:521: opt] Error 2

想问一下这个原因是什么?要如何解决?我的内存内存肯定是够的,所以不知道为啥会这样?extern_glog-configure-err.log也没有任何结果

是否是我编译有什么问题?我是按照文档的protocol做的,换了pytorch的官方模型也出不来结果?求解

FLamefiREz commented 10 months ago

@zhupengyang 我也遇到了同样的问题 系统Ubuntu 22.04 LTS gdb debug: Program received signal SIGSEGV, Segmentation fault. 0x00000000011924df in paddle::lite::operators::FlattenContiguousRangeOp::InferType() ()

模型为:PP-OCRv4-mobile-rec

Qengineering commented 9 months ago

In file build/third_party/protobuf/src/extern_protobuf/src/google/protobuf/compiler/java/java_file.cc:68 add const behind the operator like bool operator ()(const FieldDescriptor* f1, const FieldDescriptor* f2){ bool operator ()(const FieldDescriptor* f1, const FieldDescriptor* f2)const { it seems like a feature in cpp17

hong19860320 commented 7 months ago

可以尝试使用最新版 Paddle Lite opt 工具 https://github.com/PaddlePaddle/Paddle-Lite/releases https://github.com/PaddlePaddle/Paddle-Lite/releases/download/v2.13-rc/opt_linux_x86 进行模型转换。 如果仍然报错,运行前请 export GLOG_v=5 打开详细 log,然后把详细 log 上传一下。