此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
当前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.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
最新版本已构建成功
登录 后才可以发表评论