11 Star 0 Fork 19

src-openEuler/dtc

[OBS] dtc build problem in openEuler:23.09

已验收
缺陷
创建于  
2023-08-25 16:09

评论 (5)

small_leek 创建了缺陷 2年前
openeuler-ci-bot 添加了
 
sig/Base-service
标签
2年前
small_leek 负责人设置为zhaotianyang 2年前

当前8.26 openEule 门禁和构建工程中gcc存在问题,并非dtc自身源码导致的编译报错
unresolvable: have choice for libstdc++.so.6()(64bit) needed by gcc: gcc-toolset-12-libstdc++ libstdc++

输入图片说明

gcc -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -D_GNU_SOURCE -fPIC -fwrapv -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -g -Os -fPIC -Werror -Wall -Wpointer-arith -Wcast-qual -Wnested-externs -Wsign-compare -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fPIE -DNO_YAML -g -Os -fPIC -Werror -Wall -Wpointer-arith -Wcast-qual -Wnested-externs -Wsign-compare -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fPIE -DNO_YAML -fPIC -DPY_SSIZE_T_CLEAN -I/home/abuild/rpmbuild/BUILD/dtc-1.7.0/./libfdt -I/usr/include/python3.11 -c /home/abuild/rpmbuild/BUILD/dtc-1.7.0/./pylibfdt/libfdt_wrap.c -o build/temp.linux-x86_64-cpython-311/home/abuild/rpmbuild/BUILD/dtc-1.7.0/./pylibfdt/libfdt_wrap.o

8.25日 https://build.openeuler.openatom.cn/build/openEuler:23.09/standard_x86_64/x86_64/dtc/_log中上述gcc语句突然中断。但本地可以构建成功,建议等待构建环境gcc正常后再进行构建。

输入图片说明

8.28 构建环境gcc正常后,dtc构建依然失败,正在定位失败原因,gcc升级到gcc12 新增编译选项导致告警出现,-werror将报警转换为error导致编译构建失败。如下为统一文件编译选项差异。

新版gcc:gcc -I libfdt -I . -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -g -Os -fPIC -Werror -Wall -Wpointer-arith -Wcast-qual -Wnested-externs -Wsign-compare -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fPIE -DNO_YAML -o libfdt/fdt_rw.o -c libfdt/fdt_rw.c

旧版cc:cc -I libfdt -I . -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -g -Os -fPIC -Werror -Wall -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wl,-z,now -fPIE -DNO_YAML -o libfdt/fdt_rw.o -c libfdt/fdt_rw.c

输入图片说明
最新版本已构建成功

zhaotianyang 任务状态待办的 修改为已完成 2年前
small_leek 任务状态已完成 修改为已验收 2年前

登录 后才可以发表评论

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

搜索帮助