122 Star 0 Fork 11

src-openEuler/protobuf-c

 / 详情

protobuf-c build problem in openEuler:22.09

已完成
缺陷
创建于  
2022-08-22 17:14

评论 (3)

zhouxiaxiang 创建了缺陷

Hi zhouxiaxiang, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Runtime, and any of the maintainers: @small_leek , @Charlie_Li , @zhenyu , @mdche

openeuler-ci-bot 添加了
 
sig/Runtime
标签

编译失败现象如下

+ /usr/bin/make -O -j64 V=1 VERBOSE=1
[   42s] /usr/bin/protoc -I. --cpp_out=. ./protobuf-c/protobuf-c.proto
[   42s] /usr/bin/protoc -I. --cpp_out=. ./protobuf-c/protobuf-c.proto
[   42s] /usr/bin/protoc -I. --cpp_out=. ./t/test-full.proto
[   42s] [libprotobuf WARNING google/protobuf/compiler/parser.cc:648] No syntax specified for the proto file: t/test-full.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[   42s] /usr/bin/protoc -I. --cpp_out=. ./t/test-full.proto
[   42s] [libprotobuf WARNING google/protobuf/compiler/parser.cc:648] No syntax specified for the proto file: t/test-full.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[   43s] g++ -std=c++11 -DHAVE_CONFIG_H -I.  -include ./config.h -I./protobuf-c -I. -I.    -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection  -fexceptions -c -o protoc-c/protoc_gen_c-main.o `test -f 'protoc-c/main.cc' || echo './'`protoc-c/main.cc
[   43s] g++ -std=c++11 -DHAVE_CONFIG_H -I.  -include ./config.h -I./protobuf-c -I. -I.    -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection  -fexceptions -c -o protoc-c/protoc_gen_c-c_extension.o `test -f 'protoc-c/c_extension.cc' || echo './'`protoc-c/c_extension.cc
[   44s] g++ -std=c++11 -DHAVE_CONFIG_H -I.  -include ./config.h -I./protobuf-c -I. -I.    -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection  -fexceptions -c -o t/generated-code2/cxx_generate_packed_data-cxx-generate-packed-data.o `test -f 't/generated-code2/cxx-generate-packed-data.cc' || echo './'`t/generated-code2/cxx-generate-packed-data.cc
[   44s] t/generated-code2/cxx-generate-packed-data.cc:5:10: warning: ./t/test-full.pb.h is shorter than expected
[   44s]     5 | #include "t/test-full.pb.h"
[   44s]       |          ^~~~~~~~~~~~~~~~~~
[   44s] In file included from t/generated-code2/cxx-generate-packed-data.cc:5:
[   44s] ./t/test-full.pb.h:4: error: unterminated #ifndef
[   44s]     4 | #ifndef GOOGLE_PROTOBUF_INCLUDED_t_2ftest_2dfull_2eproto
[   44s]       | 
[   44s] In file included from t/generated-code2/cxx-generate-packed-data.cc:5:
[   44s] ./t/test-full.pb.h: In member function 'void foo::TestRequiredFieldsBitmap::set_field92(const char*)':
[   44s] ./t/test-full.pb.h:24620:105: error: 'G' was not declared in this scope
[   44s] 24620 |   field92_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());

为x86偶现失败,失败原因为并行编译时加载test-full.pb.h报错
在个人工程改为make -j 1,用单线程编译100次,arm和x86都未失败,
个人工程:http://117.78.1.88/package/show/home:caodongxia:branches:openEuler:22.09/protobuf-c

多线程编译平均耗时1min,

Revision	Time	Reason	Status Code	Build Time	Worker	
7	August 25, 2022 09:10	meta change	succeeded	1m 7s	obs-worker1639015616-x86-0009:5	
7	August 25, 2022 06:51	meta change	succeeded	1m 8s	obs-worker1639015616-x86-0007:3	
7	August 25, 2022 03:31	meta change	succeeded	1m 11s	obs-worker1639015616-x86-0007:6	
7	August 24, 2022 18:35	meta change	succeeded	1m 20s	obs-worker1639015616-x86-0011:5	
7	August 24, 2022 08:37	meta change	succeeded	1m 13s	obs-worker1638948070-x86:5	
7	August 24, 2022 06:20	meta change	succeeded	1m 7s	obs-worker1639015616-x86-0020:3	
7	August 24, 2022 03:54	meta change	succeeded	1m 5s	obs-worker1639015616-x86-0007:2	
7	August 23, 2022 19:02	meta change	succeeded	1m 20s	obs-worker1639015616-x86-0011:4	
7	August 23, 2022 11:46	meta change	succeeded	1m 2s	ecs-obsworker-203:1	
7	August 23, 2022 06:24	meta change	succeeded	1m 0s	ecs-obsworker-205:5

个人工程改为单线程编译耗时,平均耗时2min

4	August 24, 2022 13:12	meta change	succeeded	1m 34s	ecs-obsworker-202:4	
4	August 24, 2022 02:59	new build	succeeded	1m 33s	obs-worker1639015616-x86-0001:6	
4	August 24, 2022 02:56	new build	succeeded	2m 42s	ecs-obsworker-204:3	
4	August 24, 2022 02:54	new build	succeeded	1m 32s	obs-worker1639015616-x86-0001:3	
4	August 24, 2022 02:51	new build	succeeded	1m 34s	obs-worker1639015616-x86-0001:3	
4	August 24, 2022 02:48	new build	succeeded	1m 37s	obs-worker1639015616-x86-0001:4	
4	August 24, 2022 02:45	new build	succeeded	2m 37s	ecs-obsworker-204:1	
4	August 24, 2022 02:43	new build	succeeded	1m 32s	obs-worker1639015616-x86-0001:2	
4	August 24, 2022 02:38	new build	succeeded	1m 43s	ecs-obsworker-202:2	
4	August 24, 2022 02:35	new build	succeeded	1m 33s	obs-worker1639015616-x86-0001:4

由于偶现失败概率并不大,所以建议保留多线程编译

small_leek 任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
5329419 openeuler ci bot 1632792936
1
https://gitee.com/src-openeuler/protobuf-c.git
git@gitee.com:src-openeuler/protobuf-c.git
src-openeuler
protobuf-c
protobuf-c

搜索帮助

A270a887 8829481 3d7a4017 8829481