mold
mold copied to clipboard
1.4.2: test suite is failing
cmake settings (cmake -L output):
-- Cache values
BUILD_TESTING:BOOL=ON
CMAKE_BUILD_TYPE:STRING=RelWithDebInfo
CMAKE_INSTALL_PREFIX:PATH=/usr
MOLD_ENABLE_QEMU_TESTS:BOOL=OFF
MOLD_ENABLE_QEMU_TESTS_RV32:BOOL=OFF
MOLD_LTO:BOOL=OFF
MOLD_MOSTLY_STATIC:BOOL=OFF
MOLD_USE_ASAN:BOOL=OFF
MOLD_USE_MIMALLOC:BOOL=ON
MOLD_USE_MOLD:BOOL=ON
MOLD_USE_SYSTEM_MIMALLOC:BOOL=ON
MOLD_USE_SYSTEM_TBB:BOOL=ON
MOLD_USE_TSAN:BOOL=OFF
MOLD_X86_64_ONLY:BOOL=OFF
TBB_DIR:PATH=/usr/lib64/cmake/TBB
mimalloc_DIR:PATH=/usr/lib64/cmake/mimalloc
and test suite is failing:
+ cd mold-1.4.2
+ /usr/bin/make -O -j48 V=1 VERBOSE=1 -C x86_64-redhat-linux-gnu test ARGS=--output-on-failure
make: Entering directory '/home/tkloczko/rpmbuild/BUILD/mold-1.4.2/x86_64-redhat-linux-gnu'
Running tests...
/usr/bin/ctest --force-new-ctest-process --output-on-failure
Test project /home/tkloczko/rpmbuild/BUILD/mold-1.4.2/x86_64-redhat-linux-gnu
Start 1: x86_64-abs-error.sh
1/266 Test #1: x86_64-abs-error.sh ..................... Passed 0.11 sec
Start 2: x86_64-absolute-symbols.sh
2/266 Test #2: x86_64-absolute-symbols.sh .............. Passed 0.14 sec
Start 3: x86_64-allow-multiple-definition.sh
3/266 Test #3: x86_64-allow-multiple-definition.sh ..... Passed 0.23 sec
Start 4: x86_64-ar-alignment.sh
4/266 Test #4: x86_64-ar-alignment.sh .................. Passed 0.23 sec
Start 5: x86_64-arm32-thumb-interwork.sh
5/266 Test #5: x86_64-arm32-thumb-interwork.sh ......... Passed 0.01 sec
Start 6: x86_64-as-needed-weak.sh
6/266 Test #6: x86_64-as-needed-weak.sh ................ Passed 0.35 sec
Start 7: x86_64-as-needed.sh
7/266 Test #7: x86_64-as-needed.sh ..................... Passed 0.34 sec
Start 8: x86_64-as-needed2.sh
8/266 Test #8: x86_64-as-needed2.sh .................... Passed 0.34 sec
Start 9: x86_64-auxiliary.sh
9/266 Test #9: x86_64-auxiliary.sh ..................... Passed 0.08 sec
Start 10: x86_64-basic.sh
10/266 Test #10: x86_64-basic.sh ......................... Passed 0.08 sec
Start 11: x86_64-bno-symbolic.sh
11/266 Test #11: x86_64-bno-symbolic.sh .................. Passed 0.19 sec
Start 12: x86_64-bsymbolic-functions.sh
12/266 Test #12: x86_64-bsymbolic-functions.sh ........... Passed 0.19 sec
Start 13: x86_64-bsymbolic.sh
13/266 Test #13: x86_64-bsymbolic.sh ..................... Passed 0.19 sec
Start 14: x86_64-bug178.sh
14/266 Test #14: x86_64-bug178.sh ........................ Passed 0.08 sec
Start 15: x86_64-build-id.sh
15/266 Test #15: x86_64-build-id.sh ...................... Passed 0.56 sec
Start 16: x86_64-canonical-plt.sh
16/266 Test #16: x86_64-canonical-plt.sh ................. Passed 0.23 sec
Start 17: x86_64-cmdline.sh
17/266 Test #17: x86_64-cmdline.sh ....................... Passed 0.06 sec
Start 18: x86_64-color-diagnostics.sh
18/266 Test #18: x86_64-color-diagnostics.sh ............. Passed 0.15 sec
Start 19: x86_64-comment.sh
19/266 Test #19: x86_64-comment.sh ....................... Passed 0.11 sec
Start 20: x86_64-common-archive.sh
20/266 Test #20: x86_64-common-archive.sh ................ Passed 0.35 sec
Start 21: x86_64-common-ref.sh
21/266 Test #21: x86_64-common-ref.sh .................... Passed 0.25 sec
Start 22: x86_64-common.sh
22/266 Test #22: x86_64-common.sh ........................ Passed 0.15 sec
Start 23: x86_64-compress-debug-sections.sh
23/266 Test #23: x86_64-compress-debug-sections.sh ....... Passed 0.18 sec
Start 24: x86_64-compressed-debug-info-gnu.sh
24/266 Test #24: x86_64-compressed-debug-info-gnu.sh ..... Passed 0.29 sec
Start 25: x86_64-compressed-debug-info.sh
25/266 Test #25: x86_64-compressed-debug-info.sh ......... Passed 0.17 sec
Start 26: x86_64-copyrel-protected.sh
26/266 Test #26: x86_64-copyrel-protected.sh ............. Passed 0.16 sec
Start 27: x86_64-copyrel-relro.sh
27/266 Test #27: x86_64-copyrel-relro.sh ................. Passed 0.18 sec
Start 28: x86_64-copyrel.sh
28/266 Test #28: x86_64-copyrel.sh ....................... Passed 0.22 sec
Start 29: x86_64-dead-debug-sections.sh
29/266 Test #29: x86_64-dead-debug-sections.sh ........... Passed 0.75 sec
Start 30: x86_64-debug-macro-section.sh
30/266 Test #30: x86_64-debug-macro-section.sh ........... Passed 0.17 sec
Start 31: x86_64-default-symver.sh
31/266 Test #31: x86_64-default-symver.sh ................ Passed 0.17 sec
Start 32: x86_64-defsym.sh
32/266 Test #32: x86_64-defsym.sh ........................ Passed 0.11 sec
Start 33: x86_64-defsym2.sh
33/266 Test #33: x86_64-defsym2.sh ....................... Passed 0.13 sec
Start 34: x86_64-demangle-rust.sh
34/266 Test #34: x86_64-demangle-rust.sh ................. Passed 0.08 sec
Start 35: x86_64-demangle.sh
35/266 Test #35: x86_64-demangle.sh ...................... Passed 0.28 sec
Start 36: x86_64-dependency-file.sh
36/266 Test #36: x86_64-dependency-file.sh ............... Passed 0.11 sec
Start 37: x86_64-disable-new-dtags.sh
37/266 Test #37: x86_64-disable-new-dtags.sh ............. Passed 0.23 sec
Start 38: x86_64-discard.sh
38/266 Test #38: x86_64-discard.sh ....................... Passed 0.24 sec
Start 39: x86_64-dso-undef.sh
39/266 Test #39: x86_64-dso-undef.sh ..................... Passed 0.26 sec
Start 40: x86_64-dt-init.sh
40/266 Test #40: x86_64-dt-init.sh ....................... Passed 0.27 sec
Start 41: x86_64-dt-needed.sh
41/266 Test #41: x86_64-dt-needed.sh ..................... Passed 0.42 sec
Start 42: x86_64-duplicate-error.sh
42/266 Test #42: x86_64-duplicate-error.sh ............... Passed 0.05 sec
Start 43: x86_64-dynamic-dt-debug.sh
43/266 Test #43: x86_64-dynamic-dt-debug.sh .............. Passed 0.22 sec
Start 44: x86_64-dynamic-linker.sh
44/266 Test #44: x86_64-dynamic-linker.sh ................ Passed 0.12 sec
Start 45: x86_64-dynamic-list.sh
45/266 Test #45: x86_64-dynamic-list.sh .................. Passed 0.31 sec
Start 46: x86_64-dynamic-list2.sh
46/266 Test #46: x86_64-dynamic-list2.sh ................. Passed 0.30 sec
Start 47: x86_64-dynamic-list3.sh
47/266 Test #47: x86_64-dynamic-list3.sh ................. Passed 0.21 sec
Start 48: x86_64-dynamic.sh
48/266 Test #48: x86_64-dynamic.sh ....................... Passed 0.14 sec
Start 49: x86_64-emit-relocs.sh
49/266 Test #49: x86_64-emit-relocs.sh ................... Passed 0.11 sec
Start 50: x86_64-empty-file.sh
50/266 Test #50: x86_64-empty-file.sh .................... Passed 0.11 sec
Start 51: x86_64-empty-input.sh
51/266 Test #51: x86_64-empty-input.sh ................... Passed 0.05 sec
Start 52: x86_64-empty-version.sh
52/266 Test #52: x86_64-empty-version.sh ................. Passed 0.12 sec
Start 53: x86_64-emulation-deduction.sh
53/266 Test #53: x86_64-emulation-deduction.sh ........... Passed 0.09 sec
Start 54: x86_64-entry.sh
54/266 Test #54: x86_64-entry.sh ......................... Passed 0.13 sec
Start 55: x86_64-exception-mcmodel-large.sh
55/266 Test #55: x86_64-exception-mcmodel-large.sh .......***Failed 0.14 sec
+ export LC_ALL=C
+ LC_ALL=C
+ set -e
+ CC=cc
+ CXX=c++
+ GCC=gcc
+ GXX=g++
+ OBJDUMP=objdump
++ uname -m
+ MACHINE=x86_64
++ basename /home/tkloczko/rpmbuild/BUILD/mold-1.4.2/test/elf/exception-mcmodel-large.sh .sh
+ testname=exception-mcmodel-large
+ echo -n 'Testing exception-mcmodel-large ... '
Testing exception-mcmodel-large ... + t=out/test/elf/x86_64/exception-mcmodel-large
+ mkdir -p out/test/elf/x86_64/exception-mcmodel-large
+ '[' x86_64 = x86_64 ']'
+ cat
+ c++ -c -o out/test/elf/x86_64/exception-mcmodel-large/a.o -xc++ -fPIC -
+ c++ -B. -o out/test/elf/x86_64/exception-mcmodel-large/exe out/test/elf/x86_64/exception-mcmodel-large/a.o -mcmodel=large
+ out/test/elf/x86_64/exception-mcmodel-large/exe
+ c++ -B. -o out/test/elf/x86_64/exception-mcmodel-large/exe out/test/elf/x86_64/exception-mcmodel-large/a.o -static -mcmodel=large
mold: fatal: library not found: stdc++
collect2: error: ld returned 1 exit status
Start 56: x86_64-exception.sh
56/266 Test #56: x86_64-exception.sh .....................***Failed 0.08 sec
+ export LC_ALL=C
+ LC_ALL=C
+ set -e
+ CC=cc
+ CXX=c++
+ GCC=gcc
+ GXX=g++
+ OBJDUMP=objdump
++ uname -m
+ MACHINE=x86_64
++ basename /home/tkloczko/rpmbuild/BUILD/mold-1.4.2/test/elf/exception.sh .sh
+ testname=exception
+ echo -n 'Testing exception ... '
Testing exception ... + t=out/test/elf/x86_64/exception
+ mkdir -p out/test/elf/x86_64/exception
+ cat
+ c++ -c -o out/test/elf/x86_64/exception/a.o -xc++ -fPIC -
+ c++ -B. -o out/test/elf/x86_64/exception/exe out/test/elf/x86_64/exception/a.o -static
mold: fatal: library not found: stdc++
collect2: error: ld returned 1 exit status
Start 57: x86_64-exclude-libs.sh
57/266 Test #57: x86_64-exclude-libs.sh .................. Passed 0.51 sec
Start 58: x86_64-exclude-libs2.sh
58/266 Test #58: x86_64-exclude-libs2.sh ................. Passed 0.17 sec
Start 59: x86_64-exclude-libs3.sh
59/266 Test #59: x86_64-exclude-libs3.sh ................. Passed 0.20 sec
Start 60: x86_64-execstack-if-needed.sh
60/266 Test #60: x86_64-execstack-if-needed.sh ........... Passed 0.14 sec
Start 61: x86_64-execstack.sh
61/266 Test #61: x86_64-execstack.sh ..................... Passed 0.23 sec
Start 62: x86_64-export-dynamic.sh
62/266 Test #62: x86_64-export-dynamic.sh ................ Passed 0.13 sec
Start 63: x86_64-export-from-exe.sh
63/266 Test #63: x86_64-export-from-exe.sh ............... Passed 0.20 sec
Start 64: x86_64-fatal-warnings.sh
64/266 Test #64: x86_64-fatal-warnings.sh ................ Passed 0.16 sec
Start 65: x86_64-filler.sh
65/266 Test #65: x86_64-filler.sh ........................***Failed 0.10 sec
+ export LC_ALL=C
+ LC_ALL=C
+ set -e
+ CC=cc
+ CXX=c++
+ GCC=gcc
+ GXX=g++
+ OBJDUMP=objdump
++ uname -m
+ MACHINE=x86_64
++ basename /home/tkloczko/rpmbuild/BUILD/mold-1.4.2/test/elf/filler.sh .sh
+ testname=filler
+ echo -n 'Testing filler ... '
Testing filler ... + t=out/test/elf/x86_64/filler
+ mkdir -p out/test/elf/x86_64/filler
+ cat
+ cc -o out/test/elf/x86_64/filler/a.o -c -xc -
+ cc -B. -static -Wl,--filler,0xfe -o out/test/elf/x86_64/filler/exe1 out/test/elf/x86_64/filler/a.o
mold: fatal: library not found: c
collect2: error: ld returned 1 exit status
Start 66: x86_64-filter.sh
66/266 Test #66: x86_64-filter.sh ........................ Passed 0.07 sec
Start 67: x86_64-func-addr.sh
67/266 Test #67: x86_64-func-addr.sh ..................... Passed 0.19 sec
Start 68: x86_64-gc-sections.sh
68/266 Test #68: x86_64-gc-sections.sh ................... Passed 0.28 sec
Start 69: x86_64-gdb-index-compress-output.sh
69/266 Test #69: x86_64-gdb-index-compress-output.sh ..... Passed 0.42 sec
Start 70: x86_64-gdb-index-dwarf2.sh
70/266 Test #70: x86_64-gdb-index-dwarf2.sh .............. Passed 0.53 sec
Start 71: x86_64-gdb-index-dwarf3.sh
71/266 Test #71: x86_64-gdb-index-dwarf3.sh .............. Passed 0.53 sec
Start 72: x86_64-gdb-index-dwarf4.sh
72/266 Test #72: x86_64-gdb-index-dwarf4.sh .............. Passed 0.53 sec
Start 73: x86_64-gdb-index-dwarf5.sh
73/266 Test #73: x86_64-gdb-index-dwarf5.sh .............. Passed 0.61 sec
Start 74: x86_64-gdb-index-empty.sh
74/266 Test #74: x86_64-gdb-index-empty.sh ............... Passed 0.09 sec
Start 75: x86_64-glibc-2.22-bug.sh
75/266 Test #75: x86_64-glibc-2.22-bug.sh ................ Passed 0.12 sec
Start 76: x86_64-global-offset-table.sh
76/266 Test #76: x86_64-global-offset-table.sh ........... Passed 0.24 sec
Start 77: x86_64-gnu-hash.sh
77/266 Test #77: x86_64-gnu-hash.sh ...................... Passed 0.09 sec
Start 78: x86_64-gnu-linkonce.sh
78/266 Test #78: x86_64-gnu-linkonce.sh .................. Passed 0.14 sec
Start 79: x86_64-gnu-retain.sh
79/266 Test #79: x86_64-gnu-retain.sh .................... Passed 0.26 sec
Start 80: x86_64-gnu-unique.sh
80/266 Test #80: x86_64-gnu-unique.sh .................... Passed 0.16 sec
Start 81: x86_64-gnu-warning.sh
81/266 Test #81: x86_64-gnu-warning.sh ................... Passed 0.15 sec
Start 82: x86_64-hash-style.sh
82/266 Test #82: x86_64-hash-style.sh .................... Passed 0.10 sec
Start 83: x86_64-hello-dynamic.sh
83/266 Test #83: x86_64-hello-dynamic.sh ................. Passed 0.10 sec
Start 84: x86_64-hello-static.sh
84/266 Test #84: x86_64-hello-static.sh ..................***Failed 0.09 sec
+ export LC_ALL=C
+ LC_ALL=C
+ set -e
+ CC=cc
+ CXX=c++
+ GCC=gcc
+ GXX=g++
+ OBJDUMP=objdump
++ uname -m
+ MACHINE=x86_64
++ basename /home/tkloczko/rpmbuild/BUILD/mold-1.4.2/test/elf/hello-static.sh .sh
+ testname=hello-static
+ echo -n 'Testing hello-static ... '
Testing hello-static ... + t=out/test/elf/x86_64/hello-static
+ mkdir -p out/test/elf/x86_64/hello-static
+ cat
+ cc -o out/test/elf/x86_64/hello-static/a.o -c -xc -
+ cc -B. -o out/test/elf/x86_64/hello-static/exe out/test/elf/x86_64/hello-static/a.o -static
mold: fatal: library not found: c
collect2: error: ld returned 1 exit status
Start 85: x86_64-help.sh
85/266 Test #85: x86_64-help.sh .......................... Passed 0.02 sec
Start 86: x86_64-hidden-undef.sh
86/266 Test #86: x86_64-hidden-undef.sh .................. Passed 0.18 sec
Start 87: x86_64-icf-small.sh
87/266 Test #87: x86_64-icf-small.sh ..................... Passed 0.08 sec
Start 88: x86_64-icf.sh
88/266 Test #88: x86_64-icf.sh ........................... Passed 0.11 sec
Start 89: x86_64-ifunc-dso.sh
89/266 Test #89: x86_64-ifunc-dso.sh ..................... Passed 0.18 sec
Start 90: x86_64-ifunc-dynamic.sh
90/266 Test #90: x86_64-ifunc-dynamic.sh ................. Passed 0.12 sec
Start 91: x86_64-ifunc-export.sh
91/266 Test #91: x86_64-ifunc-export.sh .................. Passed 0.12 sec
Start 92: x86_64-ifunc-static-pie.sh
92/266 Test #92: x86_64-ifunc-static-pie.sh .............. Passed 0.08 sec
Start 93: x86_64-ifunc-static.sh
93/266 Test #93: x86_64-ifunc-static.sh ..................***Failed 0.10 sec
+ export LC_ALL=C
+ LC_ALL=C
+ set -e
+ CC=cc
+ CXX=c++
+ GCC=gcc
+ GXX=g++
+ OBJDUMP=objdump
++ uname -m
+ MACHINE=x86_64
++ basename /home/tkloczko/rpmbuild/BUILD/mold-1.4.2/test/elf/ifunc-static.sh .sh
+ testname=ifunc-static
+ echo -n 'Testing ifunc-static ... '
Testing ifunc-static ... + t=out/test/elf/x86_64/ifunc-static
+ mkdir -p out/test/elf/x86_64/ifunc-static
+ '[' x86_64 = riscv64 -o x86_64 = riscv32 ']'
+ ldd --help
+ grep -q musl
+ cat
+ cc -o out/test/elf/x86_64/ifunc-static/a.o -c -xc -
+ cc -B. -o out/test/elf/x86_64/ifunc-static/exe out/test/elf/x86_64/ifunc-static/a.o -static
mold: fatal: library not found: c
collect2: error: ld returned 1 exit status
Start 94: x86_64-image-base.sh
94/266 Test #94: x86_64-image-base.sh .................... Passed 0.21 sec
Start 95: x86_64-incompatible-libs.sh
95/266 Test #95: x86_64-incompatible-libs.sh ............. Passed 0.07 sec
Start 96: x86_64-incompatible-libs2.sh
96/266 Test #96: x86_64-incompatible-libs2.sh ............ Passed 0.07 sec
Start 97: x86_64-incompatible-obj.sh
97/266 Test #97: x86_64-incompatible-obj.sh .............. Passed 0.06 sec
Start 98: x86_64-init-array-priorities.sh
98/266 Test #98: x86_64-init-array-priorities.sh ......... Passed 0.45 sec
Start 99: x86_64-init-array-readonly.sh
99/266 Test #99: x86_64-init-array-readonly.sh ........... Passed 0.14 sec
Start 100: x86_64-init-array.sh
100/266 Test #100: x86_64-init-array.sh .................... Passed 0.12 sec
Start 101: x86_64-init-in-dso.sh
101/266 Test #101: x86_64-init-in-dso.sh ................... Passed 0.18 sec
Start 102: x86_64-init.sh
102/266 Test #102: x86_64-init.sh .......................... Passed 0.18 sec
Start 103: x86_64-initfirst.sh
103/266 Test #103: x86_64-initfirst.sh ..................... Passed 0.11 sec
Start 104: x86_64-interpose.sh
104/266 Test #104: x86_64-interpose.sh ..................... Passed 0.12 sec
Start 105: x86_64-invalid-version-script.sh
105/266 Test #105: x86_64-invalid-version-script.sh ........ Passed 0.10 sec
Start 106: x86_64-issue646.sh
106/266 Test #106: x86_64-issue646.sh ...................... Passed 0.35 sec
Start 107: x86_64-large-alignment-dso.sh
107/266 Test #107: x86_64-large-alignment-dso.sh ........... Passed 0.19 sec
Start 108: x86_64-large-alignment.sh
108/266 Test #108: x86_64-large-alignment.sh ............... Passed 0.11 sec
Start 109: x86_64-link-order.sh
109/266 Test #109: x86_64-link-order.sh .................... Passed 0.26 sec
Start 110: x86_64-linker-script-defsym.sh
110/266 Test #110: x86_64-linker-script-defsym.sh .......... Passed 0.10 sec
Start 111: x86_64-linker-script.sh
111/266 Test #111: x86_64-linker-script.sh ................. Passed 0.21 sec
Start 112: x86_64-linker-script2.sh
112/266 Test #112: x86_64-linker-script2.sh ................ Passed 0.14 sec
Start 113: x86_64-linker-script3.sh
113/266 Test #113: x86_64-linker-script3.sh ................ Passed 0.10 sec
Start 114: x86_64-linker-script4.sh
114/266 Test #114: x86_64-linker-script4.sh ................ Passed 0.09 sec
Start 115: x86_64-lto-archive.sh
115/266 Test #115: x86_64-lto-archive.sh ................... Passed 0.50 sec
Start 116: x86_64-lto-dso.sh
116/266 Test #116: x86_64-lto-dso.sh ....................... Passed 0.36 sec
Start 117: x86_64-lto-gcc.sh
117/266 Test #117: x86_64-lto-gcc.sh ....................... Passed 0.33 sec
Start 118: x86_64-lto-llvm.sh
118/266 Test #118: x86_64-lto-llvm.sh ...................... Passed 0.34 sec
Start 119: x86_64-lto-version-script.sh
119/266 Test #119: x86_64-lto-version-script.sh ............ Passed 0.27 sec
Start 120: x86_64-many-sections.sh
120/266 Test #120: x86_64-many-sections.sh ................. Passed 0.75 sec
Start 121: x86_64-mergeable-records.sh
121/266 Test #121: x86_64-mergeable-records.sh .............***Failed 0.06 sec
+ export LC_ALL=C
+ LC_ALL=C
+ set -e
+ CC=cc
+ CXX=c++
+ GCC=gcc
+ GXX=g++
+ OBJDUMP=objdump
++ uname -m
+ MACHINE=x86_64
++ basename /home/tkloczko/rpmbuild/BUILD/mold-1.4.2/test/elf/mergeable-records.sh .sh
+ testname=mergeable-records
+ echo -n 'Testing mergeable-records ... '
Testing mergeable-records ... + t=out/test/elf/x86_64/mergeable-records
+ mkdir -p out/test/elf/x86_64/mergeable-records
+ '[' x86_64 = x86_64 ']'
+ cat
+ cc -o out/test/elf/x86_64/mergeable-records/a.o -c -x assembler -
+ cc -B. -static -o out/test/elf/x86_64/mergeable-records/exe out/test/elf/x86_64/mergeable-records/a.o
mold: fatal: library not found: c
collect2: error: ld returned 1 exit status
Start 122: x86_64-mergeable-strings.sh
122/266 Test #122: x86_64-mergeable-strings.sh .............***Failed 0.06 sec
+ export LC_ALL=C
+ LC_ALL=C
+ set -e
+ CC=cc
+ CXX=c++
+ GCC=gcc
+ GXX=g++
+ OBJDUMP=objdump
++ uname -m
+ MACHINE=x86_64
++ basename /home/tkloczko/rpmbuild/BUILD/mold-1.4.2/test/elf/mergeable-strings.sh .sh
+ testname=mergeable-strings
+ echo -n 'Testing mergeable-strings ... '
Testing mergeable-strings ... + t=out/test/elf/x86_64/mergeable-strings
+ mkdir -p out/test/elf/x86_64/mergeable-strings
+ '[' x86_64 = x86_64 ']'
+ cat
+ cc -o out/test/elf/x86_64/mergeable-strings/a.o -c -x assembler -
+ cc -B. -static -o out/test/elf/x86_64/mergeable-strings/exe out/test/elf/x86_64/mergeable-strings/a.o
mold: fatal: library not found: c
collect2: error: ld returned 1 exit status
Start 123: x86_64-missing-but-ok.sh
123/266 Test #123: x86_64-missing-but-ok.sh ................ Passed 0.05 sec
Start 124: x86_64-missing-error.sh
124/266 Test #124: x86_64-missing-error.sh ................. Passed 0.08 sec
Start 125: x86_64-mold-wrapper.sh
125/266 Test #125: x86_64-mold-wrapper.sh .................. Passed 0.28 sec
Start 126: x86_64-mold-wrapper2.sh
126/266 Test #126: x86_64-mold-wrapper2.sh ................. Passed 0.17 sec
Start 127: x86_64-no-quick-exit.sh
127/266 Test #127: x86_64-no-quick-exit.sh ................. Passed 0.11 sec
Start 128: x86_64-nocopyreloc.sh
128/266 Test #128: x86_64-nocopyreloc.sh ................... Passed 0.22 sec
Start 129: x86_64-noinhibit-exec.sh
129/266 Test #129: x86_64-noinhibit-exec.sh ................ Passed 0.19 sec
Start 130: x86_64-non-canonical-plt.sh
130/266 Test #130: x86_64-non-canonical-plt.sh ............. Passed 0.23 sec
Start 131: x86_64-nostdlib.sh
131/266 Test #131: x86_64-nostdlib.sh ...................... Passed 0.11 sec
Start 132: x86_64-note-property.sh
132/266 Test #132: x86_64-note-property.sh ................. Passed 0.16 sec
Start 133: x86_64-note.sh
133/266 Test #133: x86_64-note.sh .......................... Passed 0.10 sec
Start 134: x86_64-note2.sh
134/266 Test #134: x86_64-note2.sh ......................... Passed 0.14 sec
Start 135: x86_64-now.sh
135/266 Test #135: x86_64-now.sh ........................... Passed 0.17 sec
Start 136: x86_64-oformat-binary.sh
136/266 Test #136: x86_64-oformat-binary.sh ................ Passed 0.08 sec
Start 137: x86_64-omagic.sh
137/266 Test #137: x86_64-omagic.sh ........................***Failed 0.09 sec
+ export LC_ALL=C
+ LC_ALL=C
+ set -e
+ CC=cc
+ CXX=c++
+ GCC=gcc
+ GXX=g++
+ OBJDUMP=objdump
++ uname -m
+ MACHINE=x86_64
++ basename /home/tkloczko/rpmbuild/BUILD/mold-1.4.2/test/elf/omagic.sh .sh
+ testname=omagic
+ echo -n 'Testing omagic ... '
Testing omagic ... + t=out/test/elf/x86_64/omagic
+ mkdir -p out/test/elf/x86_64/omagic
+ cat
+ cc -c -o out/test/elf/x86_64/omagic/a.o -xc - -fno-PIC
+ cc -B. out/test/elf/x86_64/omagic/a.o -o out/test/elf/x86_64/omagic/exe -static -Wl,--omagic
mold: fatal: library not found: c
collect2: error: ld returned 1 exit status
Start 138: x86_64-pack-dyn-relocs-relr.sh
138/266 Test #138: x86_64-pack-dyn-relocs-relr.sh .......... Passed 0.26 sec
Start 139: x86_64-package-metadata.sh
139/266 Test #139: x86_64-package-metadata.sh .............. Passed 0.11 sec
Start 140: x86_64-pie.sh
140/266 Test #140: x86_64-pie.sh ........................... Passed 0.12 sec
Start 141: x86_64-plt-dso.sh
141/266 Test #141: x86_64-plt-dso.sh ....................... Passed 0.20 sec
Start 142: x86_64-plt.sh
142/266 Test #142: x86_64-plt.sh ........................... Passed 0.10 sec
Start 143: x86_64-pltgot.sh
143/266 Test #143: x86_64-pltgot.sh ........................ Passed 0.11 sec
Start 144: x86_64-preinit-array.sh
144/266 Test #144: x86_64-preinit-array.sh ................. Passed 0.13 sec
Start 145: x86_64-print-dependencies.sh
145/266 Test #145: x86_64-print-dependencies.sh ............ Passed 0.14 sec
Start 146: x86_64-protected-dynsym.sh
146/266 Test #146: x86_64-protected-dynsym.sh .............. Passed 0.22 sec
Start 147: x86_64-protected.sh
147/266 Test #147: x86_64-protected.sh ..................... Passed 0.19 sec
Start 148: x86_64-push-pop-state.sh
148/266 Test #148: x86_64-push-pop-state.sh ................ Passed 0.26 sec
Start 149: x86_64-range-extension-thunk-arm32.sh
149/266 Test #149: x86_64-range-extension-thunk-arm32.sh ... Passed 0.01 sec
Start 150: x86_64-range-extension-thunk-arm64.sh
150/266 Test #150: x86_64-range-extension-thunk-arm64.sh ... Passed 0.02 sec
Start 151: x86_64-relax.sh
151/266 Test #151: x86_64-relax.sh ......................... Passed 0.29 sec
Start 152: x86_64-reloc-overflow.sh
152/266 Test #152: x86_64-reloc-overflow.sh ................ Passed 0.06 sec
Start 153: x86_64-reloc-rodata.sh
153/266 Test #153: x86_64-reloc-rodata.sh .................. Passed 0.01 sec
Start 154: x86_64-reloc-zero.sh
154/266 Test #154: x86_64-reloc-zero.sh .................... Passed 0.11 sec
Start 155: x86_64-reloc.sh
155/266 Test #155: x86_64-reloc.sh ......................... Passed 1.10 sec
Start 156: x86_64-relocatable-archive.sh
156/266 Test #156: x86_64-relocatable-archive.sh ........... Passed 0.23 sec
Start 157: x86_64-relocatable.sh
157/266 Test #157: x86_64-relocatable.sh ................... Passed 0.45 sec
Start 158: x86_64-relro.sh
158/266 Test #158: x86_64-relro.sh ......................... Passed 0.25 sec
Start 159: x86_64-repro.sh
159/266 Test #159: x86_64-repro.sh ......................... Passed 0.30 sec
Start 160: x86_64-require-defined.sh
160/266 Test #160: x86_64-require-defined.sh ............... Passed 0.30 sec
Start 161: x86_64-response-file.sh
161/266 Test #161: x86_64-response-file.sh ................. Passed 0.08 sec
Start 162: x86_64-retain-symbols-file.sh
162/266 Test #162: x86_64-retain-symbols-file.sh ........... Passed 0.13 sec
Start 163: x86_64-reverse-sections.sh
163/266 Test #163: x86_64-reverse-sections.sh .............. Passed 0.99 sec
Start 164: x86_64-riscv-norvc.sh
164/266 Test #164: x86_64-riscv-norvc.sh ................... Passed 0.01 sec
Start 165: x86_64-rodata-name.sh
165/266 Test #165: x86_64-rodata-name.sh ................... Passed 0.15 sec
Start 166: x86_64-rosegment.sh
166/266 Test #166: x86_64-rosegment.sh ..................... Passed 0.24 sec
Start 167: x86_64-rpath.sh
167/266 Test #167: x86_64-rpath.sh ......................... Passed 0.09 sec
Start 168: x86_64-run-clang.sh
168/266 Test #168: x86_64-run-clang.sh .....................***Failed 0.18 sec
+ export LC_ALL=C
+ LC_ALL=C
+ set -e
+ CC=cc
+ CXX=c++
+ GCC=gcc
+ GXX=g++
+ OBJDUMP=objdump
++ uname -m
+ MACHINE=x86_64
++ basename /home/tkloczko/rpmbuild/BUILD/mold-1.4.2/test/elf/run-clang.sh .sh
+ testname=run-clang
+ echo -n 'Testing run-clang ... '
Testing run-clang ... + t=out/test/elf/x86_64/run-clang
+ mkdir -p out/test/elf/x86_64/run-clang
+ '[' cc = cc ']'
+ nm mold-wrapper.so
+ grep -q '__[at]san_init'
+ which clang
+ cat
+ cc -xc -c -o out/test/elf/x86_64/run-clang/a.o -
++ pwd
+ LD_PRELOAD=/home/tkloczko/rpmbuild/BUILD/mold-1.4.2/x86_64-redhat-linux-gnu/mold-wrapper.so
++ pwd
+ MOLD_PATH=/home/tkloczko/rpmbuild/BUILD/mold-1.4.2/x86_64-redhat-linux-gnu/mold
+ clang -o out/test/elf/x86_64/run-clang/exe out/test/elf/x86_64/run-clang/a.o -fuse-ld=/usr/bin/ld
mold: error: out/test/elf/x86_64/run-clang/a.o:(.text): R_X86_64_32 relocation at offset 0x5 against symbol `.rodata' can not be used; recompile with -fPIC
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
Start 169: x86_64-run.sh
169/266 Test #169: x86_64-run.sh ........................... Passed 0.41 sec
Start 170: x86_64-section-alignment.sh
170/266 Test #170: x86_64-section-alignment.sh ............. Passed 0.11 sec
Start 171: x86_64-section-name.sh
171/266 Test #171: x86_64-section-name.sh .................. Passed 0.23 sec
Start 172: x86_64-section-start.sh
172/266 Test #172: x86_64-section-start.sh ................. Passed 0.19 sec
Start 173: x86_64-shared-abs-sym.sh
173/266 Test #173: x86_64-shared-abs-sym.sh ................ Passed 0.32 sec
Start 174: x86_64-shared.sh
174/266 Test #174: x86_64-shared.sh ........................ Passed 0.22 sec
Start 175: x86_64-shuffle-sections-seed.sh
175/266 Test #175: x86_64-shuffle-sections-seed.sh ......... Passed 0.48 sec
Start 176: x86_64-shuffle-sections.sh
176/266 Test #176: x86_64-shuffle-sections.sh .............. Passed 0.39 sec
Start 177: x86_64-soname.sh
177/266 Test #177: x86_64-soname.sh ........................ Passed 0.17 sec
Start 178: x86_64-start-lib.sh
178/266 Test #178: x86_64-start-lib.sh ..................... Passed 0.22 sec
Start 179: x86_64-start-stop-symbol.sh
179/266 Test #179: x86_64-start-stop-symbol.sh ............. Passed 0.22 sec
Start 180: x86_64-static-archive.sh
180/266 Test #180: x86_64-static-archive.sh ................ Passed 0.24 sec
Start 181: x86_64-static-pie.sh
181/266 Test #181: x86_64-static-pie.sh .................... Passed 0.07 sec
Start 182: x86_64-stdout.sh
182/266 Test #182: x86_64-stdout.sh ........................ Passed 0.11 sec
Start 183: x86_64-strip.sh
183/266 Test #183: x86_64-strip.sh ......................... Passed 0.15 sec
Start 184: x86_64-symbol-rank.sh
184/266 Test #184: x86_64-symbol-rank.sh ................... Passed 0.24 sec
Start 185: x86_64-symbol-version.sh
185/266 Test #185: x86_64-symbol-version.sh ................ Passed 0.13 sec
Start 186: x86_64-symbol-version2.sh
186/266 Test #186: x86_64-symbol-version2.sh ............... Passed 0.13 sec
Start 187: x86_64-symbol-version3.sh
187/266 Test #187: x86_64-symbol-version3.sh ............... Passed 0.13 sec
Start 188: x86_64-symtab-dso.sh
188/266 Test #188: x86_64-symtab-dso.sh .................... Passed 0.14 sec
Start 189: x86_64-symtab-section-symbols.sh
189/266 Test #189: x86_64-symtab-section-symbols.sh ........ Passed 0.11 sec
Start 190: x86_64-symtab.sh
190/266 Test #190: x86_64-symtab.sh ........................ Passed 0.09 sec
Start 191: x86_64-synthetic-symbols.sh
191/266 Test #191: x86_64-synthetic-symbols.sh ............. Passed 0.24 sec
Start 192: x86_64-sysroot-linker-script.sh
192/266 Test #192: x86_64-sysroot-linker-script.sh ......... Passed 0.18 sec
Start 193: x86_64-sysroot.sh
193/266 Test #193: x86_64-sysroot.sh ....................... Passed 0.40 sec
Start 194: x86_64-sysroot2.sh
194/266 Test #194: x86_64-sysroot2.sh ...................... Passed 0.19 sec
Start 195: x86_64-tail-call.sh
195/266 Test #195: x86_64-tail-call.sh ..................... Passed 0.20 sec
Start 196: x86_64-thin-archive.sh
196/266 Test #196: x86_64-thin-archive.sh .................. Passed 0.28 sec
Start 197: x86_64-thread-count.sh
197/266 Test #197: x86_64-thread-count.sh .................. Passed 0.27 sec
Start 198: x86_64-tls-common.sh
198/266 Test #198: x86_64-tls-common.sh .................... Passed 0.12 sec
Start 199: x86_64-tls-dso.sh
199/266 Test #199: x86_64-tls-dso.sh ....................... Passed 0.17 sec
Start 200: x86_64-tls-gd-mcmodel-large.sh
200/266 Test #200: x86_64-tls-gd-mcmodel-large.sh .......... Passed 0.32 sec
Start 201: x86_64-tls-gd-noplt.sh
201/266 Test #201: x86_64-tls-gd-noplt.sh .................. Passed 0.33 sec
Start 202: x86_64-tls-gd.sh
202/266 Test #202: x86_64-tls-gd.sh ........................***Failed 0.36 sec
+ export LC_ALL=C
+ LC_ALL=C
+ set -e
+ CC=cc
+ CXX=c++
+ GCC=gcc
+ GXX=g++
+ OBJDUMP=objdump
++ uname -m
+ MACHINE=x86_64
++ basename /home/tkloczko/rpmbuild/BUILD/mold-1.4.2/test/elf/tls-gd.sh .sh
+ testname=tls-gd
+ echo -n 'Testing tls-gd ... '
Testing tls-gd ... + t=out/test/elf/x86_64/tls-gd
+ mkdir -p out/test/elf/x86_64/tls-gd
+ '[' x86_64 = x86_64 ']'
+ mtls=-mtls-dialect=gnu
+ cat
+ gcc -mtls-dialect=gnu -fPIC -c -o out/test/elf/x86_64/tls-gd/a.o -xc -
+ cat
+ gcc -mtls-dialect=gnu -fPIC -c -o out/test/elf/x86_64/tls-gd/b.o -xc -
+ cat
+ gcc -mtls-dialect=gnu -fPIC -c -o out/test/elf/x86_64/tls-gd/c.o -xc -
+ cc -B. -shared -o out/test/elf/x86_64/tls-gd/d.so out/test/elf/x86_64/tls-gd/b.o
+ cc -B. -shared -o out/test/elf/x86_64/tls-gd/e.so out/test/elf/x86_64/tls-gd/c.o -Wl,--no-relax
+ cc -B. -o out/test/elf/x86_64/tls-gd/exe out/test/elf/x86_64/tls-gd/a.o out/test/elf/x86_64/tls-gd/d.so out/test/elf/x86_64/tls-gd/e.so
+ out/test/elf/x86_64/tls-gd/exe
+ grep -q '1 2 3 4 5 6'
+ cc -B. -o out/test/elf/x86_64/tls-gd/exe out/test/elf/x86_64/tls-gd/a.o out/test/elf/x86_64/tls-gd/d.so out/test/elf/x86_64/tls-gd/e.so -Wl,-no-relax
+ out/test/elf/x86_64/tls-gd/exe
+ grep -q '1 2 3 4 5 6'
+ cc -B. -o out/test/elf/x86_64/tls-gd/exe out/test/elf/x86_64/tls-gd/a.o out/test/elf/x86_64/tls-gd/b.o out/test/elf/x86_64/tls-gd/c.o -static
mold: fatal: library not found: c
collect2: error: ld returned 1 exit status
Start 203: x86_64-tls-gd2.sh
203/266 Test #203: x86_64-tls-gd2.sh ....................... Passed 0.11 sec
Start 204: x86_64-tls-ie.sh
204/266 Test #204: x86_64-tls-ie.sh ........................ Passed 0.24 sec
Start 205: x86_64-tls-large-tbss.sh
205/266 Test #205: x86_64-tls-large-tbss.sh ................ Passed 0.12 sec
Start 206: x86_64-tls-ld-mcmodel-large.sh
206/266 Test #206: x86_64-tls-ld-mcmodel-large.sh .......... Passed 0.19 sec
Start 207: x86_64-tls-ld-noplt.sh
207/266 Test #207: x86_64-tls-ld-noplt.sh .................. Passed 0.18 sec
Start 208: x86_64-tls-ld.sh
208/266 Test #208: x86_64-tls-ld.sh ........................ Passed 0.19 sec
Start 209: x86_64-tls-le.sh
209/266 Test #209: x86_64-tls-le.sh ........................ Passed 0.19 sec
Start 210: x86_64-tls-module-base.sh
210/266 Test #210: x86_64-tls-module-base.sh ............... Passed 0.29 sec
Start 211: x86_64-tls-nopic.sh
211/266 Test #211: x86_64-tls-nopic.sh ..................... Passed 0.14 sec
Start 212: x86_64-tls-pic.sh
212/266 Test #212: x86_64-tls-pic.sh ....................... Passed 0.14 sec
Start 213: x86_64-tlsdesc-arm.sh
213/266 Test #213: x86_64-tlsdesc-arm.sh ................... Passed 0.01 sec
Start 214: x86_64-tlsdesc-import.sh
214/266 Test #214: x86_64-tlsdesc-import.sh ................ Passed 0.17 sec
Start 215: x86_64-tlsdesc-static.sh
215/266 Test #215: x86_64-tlsdesc-static.sh ................***Failed 0.12 sec
+ export LC_ALL=C
+ LC_ALL=C
+ set -e
+ CC=cc
+ CXX=c++
+ GCC=gcc
+ GXX=g++
+ OBJDUMP=objdump
++ uname -m
+ MACHINE=x86_64
++ basename /home/tkloczko/rpmbuild/BUILD/mold-1.4.2/test/elf/tlsdesc-static.sh .sh
+ testname=tlsdesc-static
+ echo -n 'Testing tlsdesc-static ... '
Testing tlsdesc-static ... + t=out/test/elf/x86_64/tlsdesc-static
+ mkdir -p out/test/elf/x86_64/tlsdesc-static
+ '[' x86_64 = x86_64 ']'
+ dialect=gnu2
+ cat
+ gcc -fPIC -mtls-dialect=gnu2 -c -o out/test/elf/x86_64/tlsdesc-static/a.o -xc -
+ cat
+ gcc -fPIC -mtls-dialect=gnu2 -c -o out/test/elf/x86_64/tlsdesc-static/b.o -xc -
+ cc -B. -o out/test/elf/x86_64/tlsdesc-static/exe out/test/elf/x86_64/tlsdesc-static/a.o out/test/elf/x86_64/tlsdesc-static/b.o -static
mold: fatal: library not found: c
collect2: error: ld returned 1 exit status
Start 216: x86_64-tlsdesc.sh
216/266 Test #216: x86_64-tlsdesc.sh ....................... Passed 0.37 sec
Start 217: x86_64-trace-symbol.sh
217/266 Test #217: x86_64-trace-symbol.sh .................. Passed 0.23 sec
Start 218: x86_64-trace.sh
218/266 Test #218: x86_64-trace.sh ......................... Passed 0.11 sec
Start 219: x86_64-undefined.sh
219/266 Test #219: x86_64-undefined.sh ..................... Passed 0.21 sec
Start 220: x86_64-unique.sh
220/266 Test #220: x86_64-unique.sh ........................ Passed 0.10 sec
Start 221: x86_64-unresolved-symbols.sh
221/266 Test #221: x86_64-unresolved-symbols.sh ............ Passed 0.34 sec
Start 222: x86_64-verbose.sh
222/266 Test #222: x86_64-verbose.sh ....................... Passed 0.11 sec
Start 223: x86_64-version-script.sh
223/266 Test #223: x86_64-version-script.sh ................ Passed 0.09 sec
Start 224: x86_64-version-script10.sh
224/266 Test #224: x86_64-version-script10.sh .............. Passed 0.09 sec
Start 225: x86_64-version-script11.sh
225/266 Test #225: x86_64-version-script11.sh .............. Passed 0.12 sec
Start 226: x86_64-version-script12.sh
226/266 Test #226: x86_64-version-script12.sh .............. Passed 0.13 sec
Start 227: x86_64-version-script13.sh
227/266 Test #227: x86_64-version-script13.sh .............. Passed 0.12 sec
Start 228: x86_64-version-script14.sh
228/266 Test #228: x86_64-version-script14.sh .............. Passed 0.13 sec
Start 229: x86_64-version-script15.sh
229/266 Test #229: x86_64-version-script15.sh .............. Passed 0.13 sec
Start 230: x86_64-version-script16.sh
230/266 Test #230: x86_64-version-script16.sh .............. Passed 0.12 sec
Start 231: x86_64-version-script17.sh
231/266 Test #231: x86_64-version-script17.sh .............. Passed 0.38 sec
Start 232: x86_64-version-script2.sh
232/266 Test #232: x86_64-version-script2.sh ............... Passed 0.20 sec
Start 233: x86_64-version-script3.sh
233/266 Test #233: x86_64-version-script3.sh ............... Passed 0.20 sec
Start 234: x86_64-version-script4.sh
234/266 Test #234: x86_64-version-script4.sh ............... Passed 0.13 sec
Start 235: x86_64-version-script5.sh
235/266 Test #235: x86_64-version-script5.sh ............... Passed 0.12 sec
Start 236: x86_64-version-script6.sh
236/266 Test #236: x86_64-version-script6.sh ............... Passed 0.21 sec
Start 237: x86_64-version-script7.sh
237/266 Test #237: x86_64-version-script7.sh ............... Passed 0.12 sec
Start 238: x86_64-version-script8.sh
238/266 Test #238: x86_64-version-script8.sh ............... Passed 0.21 sec
Start 239: x86_64-version-script9.sh
239/266 Test #239: x86_64-version-script9.sh ............... Passed 0.09 sec
Start 240: x86_64-version.sh
240/266 Test #240: x86_64-version.sh ....................... Passed 0.19 sec
Start 241: x86_64-versioned-undef.sh
241/266 Test #241: x86_64-versioned-undef.sh ............... Passed 0.20 sec
Start 242: x86_64-visibility.sh
242/266 Test #242: x86_64-visibility.sh .................... Passed 0.22 sec
Start 243: x86_64-warn-common.sh
243/266 Test #243: x86_64-warn-common.sh ................... Passed 0.18 sec
Start 244: x86_64-warn-execstack.sh
244/266 Test #244: x86_64-warn-execstack.sh ................ Passed 0.11 sec
Start 245: x86_64-warn-once.sh
245/266 Test #245: x86_64-warn-once.sh ..................... Passed 0.15 sec
Start 246: x86_64-warn-shared-textrel.sh
246/266 Test #246: x86_64-warn-shared-textrel.sh ........... Passed 0.13 sec
Start 247: x86_64-warn-textrel.sh
247/266 Test #247: x86_64-warn-textrel.sh .................. Passed 0.13 sec
Start 248: x86_64-warn-unresolved-symbols.sh
248/266 Test #248: x86_64-warn-unresolved-symbols.sh ....... Passed 0.18 sec
Start 249: x86_64-weak-export-dso.sh
249/266 Test #249: x86_64-weak-export-dso.sh ............... Passed 0.18 sec
Start 250: x86_64-weak-export-exe.sh
250/266 Test #250: x86_64-weak-export-exe.sh ............... Passed 0.12 sec
Start 251: x86_64-weak-undef.sh
251/266 Test #251: x86_64-weak-undef.sh .................... Passed 0.34 sec
Start 252: x86_64-whole-archive.sh
252/266 Test #252: x86_64-whole-archive.sh ................. Passed 0.29 sec
Start 253: x86_64-wrap.sh
253/266 Test #253: x86_64-wrap.sh .......................... Passed 0.29 sec
Start 254: x86_64-z-cet-report.sh
254/266 Test #254: x86_64-z-cet-report.sh .................. Passed 0.17 sec
Start 255: x86_64-z-defs.sh
255/266 Test #255: x86_64-z-defs.sh ........................ Passed 0.29 sec
Start 256: x86_64-z-ibt.sh
256/266 Test #256: x86_64-z-ibt.sh ......................... Passed 0.15 sec
Start 257: x86_64-z-ibtplt.sh
257/266 Test #257: x86_64-z-ibtplt.sh ...................... Passed 0.20 sec
Start 258: x86_64-z-max-page-size.sh
258/266 Test #258: x86_64-z-max-page-size.sh ............... Passed 0.21 sec
Start 259: x86_64-z-nodefaultlib.sh
259/266 Test #259: x86_64-z-nodefaultlib.sh ................ Passed 0.12 sec
Start 260: x86_64-z-nodump.sh
260/266 Test #260: x86_64-z-nodump.sh ...................... Passed 0.17 sec
Start 261: x86_64-z-now.sh
261/266 Test #261: x86_64-z-now.sh ......................... Passed 0.11 sec
Start 262: x86_64-z-origin.sh
262/266 Test #262: x86_64-z-origin.sh ...................... Passed 0.13 sec
Start 263: x86_64-z-separate-code.sh
263/266 Test #263: x86_64-z-separate-code.sh ............... Passed 0.23 sec
Start 264: x86_64-z-shstk.sh
264/266 Test #264: x86_64-z-shstk.sh ....................... Passed 0.15 sec
Start 265: x86_64-z-text.sh
265/266 Test #265: x86_64-z-text.sh ........................ Passed 0.15 sec
Start 266: x86_64-z-unknown.sh
266/266 Test #266: x86_64-z-unknown.sh ..................... Passed 0.04 sec
96% tests passed, 11 tests failed out of 266
Total Test time (real) = 52.47 sec
The following tests FAILED:
55 - x86_64-exception-mcmodel-large.sh (Failed)
56 - x86_64-exception.sh (Failed)
65 - x86_64-filler.sh (Failed)
84 - x86_64-hello-static.sh (Failed)
93 - x86_64-ifunc-static.sh (Failed)
121 - x86_64-mergeable-records.sh (Failed)
122 - x86_64-mergeable-strings.sh (Failed)
137 - x86_64-omagic.sh (Failed)
168 - x86_64-run-clang.sh (Failed)
202 - x86_64-tls-gd.sh (Failed)
215 - x86_64-tlsdesc-static.sh (Failed)
Errors while running CTest
It looks like mold couldn't find some basic libraries such as libc or libstdc++. Here is an except:
+ cc -o out/test/elf/x86_64/filler/a.o -c -xc -
+ cc -B. -static -Wl,--filler,0xfe -o out/test/elf/x86_64/filler/exe1 out/test/elf/x86_64/filler/a.o
mold: fatal: library not found: c
collect2: error: ld returned 1 exit status
If you run cc -B. -static -Wl,--filler,0xfe -o out/test/elf/x86_64/filler/exe1 out/test/elf/x86_64/filler/a.o in the mold build directory, does it still fail?
How about cc -static -o out/test/elf/x86_64/filler/exe1 out/test/elf/x86_64/filler/a.o?
It couldn't find static libc because I have no such library at all. There are some distros which are trying to avoid to provide any static libraries.
In other words if it is some need to test mond with -static it should be build some test static library as part of the test unit.
It is yet another issue here.
Looks like test unit uses hardcoded cc instead $CC
Our tests assume the basic build environment and some basic tools such as hexdump. You can build mold without static libc, but in order to run tests, you need static libc and libstdc++.
For Red Hat, I believe you need to install glibc-static file libstdc++-static diffutils to run tests.
It is yet another issue here. Looks like test unit uses hardcoded cc instead $CC
Which test file?
FYI Solaris has no static libraries IIRC +17 years. Similar is with all *BSD.. This why that kind of tests have been removed (or are sipped) from gcc and binutils code long time ago.
Which test file?
In those failing units it is possiblet osee use cc. I'm passing in env variabled CC=/usr/bin/gcc.
But I guess you are using Red Hat, so the argument for Solaris and BSDs aren't applicable, no?
If you want to use a different compiler for tests, specify TEST_CC and TEST_CPP. Note that that's an implementation details of our make test and subject to change, though. Essentially, unless you are a developer, you are not supposed to run individual test from the command line.
No, I'm using my own distribution (which will be in a few months publically available) in which I've spent a lot of time to get rid of building and packaging all static libraries as long-term sources of (only) troubles). Especially glibc static libraries are the most significant source of the problem in breaking kernel space<>user space ABI. Remove glibc static libraries for changing kernel versions API compatibility about which glibs knows altering ABI changes underneath. This was the main reason why Solaris long time ago, provided static libc.a have to be removed (I'm building my own glibc by cutting off the oldest supported kernel version from time to time, which allows keeping API compliance with minimising glibc DSO size). Furthermore, this is why all elf binaries should only be provided by glibc ABI layer, which allows hiding and minimising the layer on which glibc interacts with the kernel.
If you look closer on gcc and binutis you can find that -static options tests are provided with use of some test libraries. This is way as well there is no in gcc test suite -all-static units.
So, in your distro, does the following command fail?
echo 'int main() {}' | cc -o /dev/null -xc - -static
Yes, on most OSes (Windows, macOS, every BSD I'm aware of), the kernel ABI is unstable, and only libc is supposed to issue syscalls.
Most. The exception is Linux; the Linux kernel ABI is documented, stable and append-only, and statically linked libc/libstdc++/etc is perfectly safe.
If we're trying to do anything with static libc on (for example) FreeBSD, we're asking for trouble. (Not much trouble - tests are usually compiled, executed, and then immediately discarded, with little or no risk of running on a mismatched kernel - but it sets a dangerous precedent.)
But on Linux, it's a perfectly valid usecase, and deleting the static libc builds for kernel ABI reasons accomplishes nothing. (Though there may be other valid reasons to delete static libc, for example maintenance effort, disk space, or simplifying libc upgrades.)
Test failures should be fixed in the above commit.
So, in your distro, does the following command fail?
echo 'int main() {}' | cc -o /dev/null -xc - -static
Yep ..
[tkloczko@devel-g2v SPECS]$ echo 'int main() {}' | cc -o /dev/null -xc - -static
/usr/bin/ld: cannot find -lc: No such file or directory
collect2: error: ld returned 1 exit status
Test failures should be fixed in the above commit.
Thank you. As now is +130 commits since last release it is a bit ghard to integrate bnecessary commits as they dependsa partially oin prev commits. Will retest that on next mold release (hopefully soon 😋 )
99% tests passed, 1 tests failed out of 270
Total Test time (real) = 31.80 sec
The following tests did not run:
161 - x86_64-pack-dyn-relocs-relr (Skipped)
The following tests FAILED:
226 - x86_64-tlsdesc-static (Failed)
Errors while running CTest