On Tue, 2021-11-09 at 23:52 +0800, Xi Ruoyao via Gcc-patches wrote: > > gcc trunk does not build with glibc-2.34+ and --enable-werror-always > > :( > > > > I've sent the fix as > > https://gcc.gnu.org/pipermail/gcc-patches/2021-November/583820.html. > > I applied the 7 patches and my fix onto c71cb26a9e. A native bootstrap > with --enable-werror-always has succeeded.
A test summary is attached. -- Xi Ruoyao <xry...@mengyan1223.wang> School of Aerospace Science and Technology, Xidian University
Native configuration is loongarch64-unknown-linux-gnu === gcc tests === Running target unix FAIL: gcc.dg/analyzer/analyzer-verbosity-2a.c (test for excess errors) FAIL: gcc.dg/analyzer/analyzer-verbosity-3a.c (test for excess errors) FAIL: gcc.dg/analyzer/edges-1.c (test for excess errors) FAIL: gcc.dg/analyzer/file-1.c (test for excess errors) FAIL: gcc.dg/analyzer/file-2.c (test for excess errors) FAIL: gcc.dg/analyzer/file-paths-1.c (test for excess errors) FAIL: gcc.dg/analyzer/file-pr58237.c (test for excess errors) FAIL: gcc.dg/analyzer/pr99716-1.c (test for excess errors) FAIL: gcc.dg/compat/scalar-by-value-3 c_compat_x_tst.o-c_compat_y_tst.o execute FAIL: c-c++-common/auto-init-6.c -Wc++-compat (internal compiler error) FAIL: c-c++-common/auto-init-6.c -Wc++-compat (test for excess errors) FAIL: c-c++-common/spec-barrier-1.c -Wc++-compat (test for excess errors) FAIL: gcc.dg/Warray-bounds-48.c pr102706 (test for warnings, line 33) FAIL: gcc.dg/Warray-bounds-48.c pr102706 (test for warnings, line 133) FAIL: gcc.dg/Wzero-length-array-bounds-2.c (test for excess errors) XPASS: gcc.dg/attr-alloc_size-11.c missing range info for signed char (test for warnings, line 50) XPASS: gcc.dg/attr-alloc_size-11.c missing range info for short (test for warnings, line 51) FAIL: gcc.dg/builtin-apply2.c execution test FAIL: gcc.dg/pr44194-1.c scan-rtl-dump dse1 "global deletions = (2|3)" FAIL: gcc.dg/pr44194-1.c scan-rtl-dump-not final "insn[: ][^\\n]*set \\\\(mem(?![^\\n]*scratch)" FAIL: gcc.dg/signbit-2.c scan-tree-dump-times optimized "\\\\s+>\\\\s+{ 0, 0, 0, 0 }" 1 FAIL: gcc.dg/stack-usage-1.c scan-stack-usage foo\\t(256|264)\\tstatic XPASS: gcc.dg/uninit-pred-7_a.c bogus warning (test for bogus messages, line 26) FAIL: gcc.dg/uninit-pred-9_b.c bogus warning (test for bogus messages, line 20) FAIL: gcc.dg/fixed-point/composite-type.c (test for excess errors) FAIL: gcc.dg/torture/fp-uint64-convert-double-1.c -O3 -g (internal compiler error) FAIL: gcc.dg/torture/fp-uint64-convert-double-1.c -O3 -g (test for excess errors) UNRESOLVED: gcc.dg/torture/fp-uint64-convert-double-1.c -O3 -g compilation failed to produce executable FAIL: gcc.dg/torture/fp-uint64-convert-double-2.c -O3 -g (internal compiler error) FAIL: gcc.dg/torture/fp-uint64-convert-double-2.c -O3 -g (test for excess errors) UNRESOLVED: gcc.dg/torture/fp-uint64-convert-double-2.c -O3 -g compilation failed to produce executable XPASS: gcc.dg/tree-ssa/20040204-1.c scan-tree-dump-times optimized "link_error" 0 FAIL: gcc.dg/tree-ssa/builtin-sprintf-warn-16.c (test for warnings, line 142) FAIL: gcc.dg/tree-ssa/builtin-sprintf-warn-16.c (test for warnings, line 243) FAIL: gcc.dg/tree-ssa/builtin-sprintf-warn-16.c (test for excess errors) FAIL: gcc.dg/tree-ssa/ssa-dom-cse-2.c scan-tree-dump optimized "return 28;" FAIL: gcc.dg/tree-ssa/ssa-sink-18.c scan-tree-dump-times sink2 "Sunk statements: 4" 1 === gcc Summary === # of expected passes 129806 # of unexpected failures 31 # of unexpected successes 4 # of expected failures 831 # of unresolved testcases 2 # of unsupported tests 2234 /home/xry111/gcc-test/gcc-12-larch-v1/build/gcc/xgcc version 12.0.0 20211109 (experimental) (GCC) === gfortran tests === Running target unix FAIL: gfortran.dg/bind_c_array_params_2.f90 -O scan-assembler-times [ \\t][\$,_0-9]*myBindC 1 FAIL: gfortran.dg/pr95690.f90 -O (test for errors, line 6) FAIL: gfortran.dg/pr95690.f90 -O (test for excess errors) FAIL: gfortran.dg/reshape_shape_2.f90 -O (internal compiler error) FAIL: gfortran.dg/reshape_shape_2.f90 -O (test for errors, line 6) FAIL: gfortran.dg/reshape_shape_2.f90 -O (test for excess errors) FAIL: gfortran.dg/vector_subscript_1.f90 -O1 execution test FAIL: gfortran.dg/vector_subscript_1.f90 -O2 execution test FAIL: gfortran.dg/vector_subscript_1.f90 -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions execution test FAIL: gfortran.dg/vector_subscript_1.f90 -O3 -g execution test === gfortran Summary === # of expected passes 63806 # of unexpected failures 10 # of expected failures 241 # of unsupported tests 174 /home/xry111/gcc-test/gcc-12-larch-v1/build/gcc/gfortran version 12.0.0 20211109 (experimental) (GCC) === g++ tests === Running target unix FAIL: tmpdir-g++.dg-struct-layout-1/t033 cp_compat_x_tst.o-cp_compat_y_tst.o execute FAIL: g++.dg/tree-ssa/pr90883.C scan-tree-dump dse1 "Deleted redundant store: .*.a = {}" FAIL: g++.dg/warn/Waddress-5.C -std=gnu++98 (test for excess errors) FAIL: g++.dg/warn/Waddress-5.C -std=gnu++14 (test for excess errors) FAIL: g++.dg/warn/Waddress-5.C -std=gnu++17 (test for excess errors) FAIL: g++.dg/warn/Waddress-5.C -std=gnu++2a (test for excess errors) FAIL: g++.dg/warn/Warray-bounds-16.C -std=gnu++98 (test for excess errors) FAIL: g++.dg/warn/Warray-bounds-16.C -std=gnu++98 scan-tree-dump-not optimized "goto" FAIL: g++.dg/warn/Warray-bounds-16.C -std=gnu++14 (test for excess errors) FAIL: g++.dg/warn/Warray-bounds-16.C -std=gnu++14 scan-tree-dump-not optimized "goto" FAIL: g++.dg/warn/Warray-bounds-16.C -std=gnu++17 (test for excess errors) FAIL: g++.dg/warn/Warray-bounds-16.C -std=gnu++17 scan-tree-dump-not optimized "goto" FAIL: g++.dg/warn/Warray-bounds-16.C -std=gnu++2a (test for excess errors) FAIL: g++.dg/warn/Warray-bounds-16.C -std=gnu++2a scan-tree-dump-not optimized "goto" FAIL: c-c++-common/auto-init-6.c -std=gnu++98 (internal compiler error) FAIL: c-c++-common/auto-init-6.c -std=gnu++98 (test for excess errors) FAIL: c-c++-common/auto-init-6.c -std=gnu++14 (internal compiler error) FAIL: c-c++-common/auto-init-6.c -std=gnu++14 (test for excess errors) FAIL: c-c++-common/auto-init-6.c -std=gnu++17 (internal compiler error) FAIL: c-c++-common/auto-init-6.c -std=gnu++17 (test for excess errors) FAIL: c-c++-common/auto-init-6.c -std=gnu++2a (internal compiler error) FAIL: c-c++-common/auto-init-6.c -std=gnu++2a (test for excess errors) FAIL: c-c++-common/spec-barrier-1.c -std=gnu++98 (test for excess errors) FAIL: c-c++-common/spec-barrier-1.c -std=gnu++14 (test for excess errors) FAIL: c-c++-common/spec-barrier-1.c -std=gnu++17 (test for excess errors) FAIL: c-c++-common/spec-barrier-1.c -std=gnu++2a (test for excess errors) FAIL: g++.dg/lto/pr64076 cp_lto_pr64076_0.o-cp_lto_pr64076_1.o link, -O0 -flto -shared -fPIC FAIL: g++.dg/modules/bad-mapper-3.C -std=c++17 (test for errors, line ) FAIL: g++.dg/modules/bad-mapper-3.C -std=c++17 (test for excess errors) FAIL: g++.dg/modules/bad-mapper-3.C -std=c++2a (test for errors, line ) FAIL: g++.dg/modules/bad-mapper-3.C -std=c++2a (test for excess errors) FAIL: g++.dg/modules/bad-mapper-3.C -std=c++2b (test for errors, line ) FAIL: g++.dg/modules/bad-mapper-3.C -std=c++2b (test for excess errors) FAIL: g++.dg/modules/xtreme-header-3_a.H -std=c++17 (internal compiler error) FAIL: g++.dg/modules/xtreme-header-3_a.H -std=c++17 (test for excess errors) FAIL: g++.dg/modules/xtreme-header-3_a.H module-cmi (gcm.cache/\$srcdir/g++.dg/modules/xtreme-header-3_a.H.gcm) FAIL: g++.dg/modules/xtreme-header-3_b.C -std=c++17 (test for excess errors) FAIL: g++.dg/modules/xtreme-header-3_c.C -std=c++17 (test for excess errors) FAIL: g++.dg/modules/xtreme-header-3_a.H -std=c++2a (internal compiler error) FAIL: g++.dg/modules/xtreme-header-3_a.H -std=c++2a (test for excess errors) FAIL: g++.dg/modules/xtreme-header-3_a.H module-cmi (gcm.cache/\$srcdir/g++.dg/modules/xtreme-header-3_a.H.gcm) FAIL: g++.dg/modules/xtreme-header-3_b.C -std=c++2a (test for excess errors) FAIL: g++.dg/modules/xtreme-header-3_c.C -std=c++2a (test for excess errors) FAIL: g++.dg/modules/xtreme-header-3_a.H -std=c++2b (internal compiler error) FAIL: g++.dg/modules/xtreme-header-3_a.H -std=c++2b (test for excess errors) FAIL: g++.dg/modules/xtreme-header-3_a.H module-cmi (gcm.cache/\$srcdir/g++.dg/modules/xtreme-header-3_a.H.gcm) FAIL: g++.dg/modules/xtreme-header-3_b.C -std=c++2b (test for excess errors) FAIL: g++.dg/modules/xtreme-header-3_c.C -std=c++2b (test for excess errors) FAIL: g++.dg/modules/xtreme-header-5_a.H -std=c++2a (internal compiler error) FAIL: g++.dg/modules/xtreme-header-5_a.H -std=c++2a (test for excess errors) FAIL: g++.dg/modules/xtreme-header-5_a.H module-cmi (gcm.cache/\$srcdir/g++.dg/modules/xtreme-header-5_a.H.gcm) FAIL: g++.dg/modules/xtreme-header-5_b.C -std=c++2a (test for excess errors) FAIL: g++.dg/modules/xtreme-header-5_c.C -std=c++2a (test for excess errors) FAIL: g++.dg/modules/xtreme-header-5_a.H -std=c++2b (internal compiler error) FAIL: g++.dg/modules/xtreme-header-5_a.H -std=c++2b (test for excess errors) FAIL: g++.dg/modules/xtreme-header-5_a.H module-cmi (gcm.cache/\$srcdir/g++.dg/modules/xtreme-header-5_a.H.gcm) FAIL: g++.dg/modules/xtreme-header-5_b.C -std=c++2b (test for excess errors) FAIL: g++.dg/modules/xtreme-header-5_c.C -std=c++2b (test for excess errors) FAIL: g++.dg/modules/xtreme-header_a.H -std=c++17 (internal compiler error) FAIL: g++.dg/modules/xtreme-header_a.H -std=c++17 (test for excess errors) FAIL: g++.dg/modules/xtreme-header_a.H module-cmi (gcm.cache/\$srcdir/g++.dg/modules/xtreme-header_a.H.gcm) FAIL: g++.dg/modules/xtreme-header_b.C -std=c++17 (test for excess errors) FAIL: g++.dg/modules/xtreme-header_a.H -std=c++2a (internal compiler error) FAIL: g++.dg/modules/xtreme-header_a.H -std=c++2a (test for excess errors) FAIL: g++.dg/modules/xtreme-header_a.H module-cmi (gcm.cache/\$srcdir/g++.dg/modules/xtreme-header_a.H.gcm) FAIL: g++.dg/modules/xtreme-header_b.C -std=c++2a (test for excess errors) FAIL: g++.dg/modules/xtreme-header_a.H -std=c++2b (internal compiler error) FAIL: g++.dg/modules/xtreme-header_a.H -std=c++2b (test for excess errors) FAIL: g++.dg/modules/xtreme-header_a.H module-cmi (gcm.cache/\$srcdir/g++.dg/modules/xtreme-header_a.H.gcm) FAIL: g++.dg/modules/xtreme-header_b.C -std=c++2b (test for excess errors) === g++ Summary === # of expected passes 210924 # of unexpected failures 70 # of expected failures 1403 # of unsupported tests 9657 /home/xry111/gcc-test/gcc-12-larch-v1/build/gcc/xg++ version 12.0.0 20211109 (experimental) (GCC) === objc tests === Running target unix === objc Summary === # of expected passes 2844 # of unsupported tests 71 /home/xry111/gcc-test/gcc-12-larch-v1/build/gcc/xgcc version 12.0.0 20211109 (experimental) (GCC) === libatomic tests === Running target unix === libatomic Summary === # of expected passes 54 === libgomp tests === Running target unix === libgomp Summary === # of expected passes 11673 # of expected failures 103 # of unsupported tests 620 === libstdc++ tests === Running target unix FAIL: 17_intro/headers/c++1998/49745.cc (test for excess errors) FAIL: 22_locale/numpunct/members/char/3.cc execution test FAIL: 22_locale/time_get/get_time/char/2.cc execution test FAIL: 22_locale/time_get/get_time/char/wrapped_env.cc execution test FAIL: 22_locale/time_get/get_time/char/wrapped_locale.cc execution test FAIL: 22_locale/time_get/get_time/wchar_t/2.cc execution test FAIL: 22_locale/time_get/get_time/wchar_t/wrapped_env.cc execution test FAIL: 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc execution test FAIL: 30_threads/jthread/95989.cc execution test === libstdc++ Summary === # of expected passes 14768 # of unexpected failures 9 # of expected failures 95 # of unsupported tests 383 Compiler version: 12.0.0 20211109 (experimental) (GCC) Platform: loongarch64-unknown-linux-gnu configure flags: --prefix=/home/xry111/gcc-12-larch-v1 --disable-multilib --with-system-zlib --enable-werror-always true