Created attachment 903490 [details] /var/tmp/portage/sys-devel/mold-2.32.1/work/mold-2.32.1_build/Testing/Temporary/LastTest.log from /var/tmp/portage/sys-devel/mold-2.32.1/work/mold-2.32.1_build/Testing/Temporary/LastTest.log: ``` 198/363 Testing: x86_64-pack-dyn-relocs-relr 198/363 Test: x86_64-pack-dyn-relocs-relr Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.32.1/work/mold-2.32.1/test/elf/pack-dyn-relocs-relr.sh" Directory: /var/tmp/portage/sys-devel/mold-2.32.1/work/mold-2.32.1_build "x86_64-pack-dyn-relocs-relr" start time: Sep 21 04:07 UTC Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.32.1/work/mold-2.32.1/test/elf/pack-dyn-relocs-relr.sh + . /var/tmp/portage/sys-devel/mold-2.32.1/work/mold-2.32.1/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ TESTDIR=out/test/elf/x86_64 ++ CC=x86_64-pc-linux-gnu-gcc ++ CXX=x86_64-pc-linux-gnu-g++ ++ GCC=x86_64-pc-linux-gnu-gcc ++ GXX=x86_64-pc-linux-gnu-g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.32.1/work/mold-2.32.1/test/elf/pack-dyn-relocs-relr.sh .sh ++ testname=pack-dyn-relocs-relr ++ echo -n 'Testing pack-dyn-relocs-relr ... ' Testing pack-dyn-relocs-relr ... ++ t=out/test/elf/x86_64/pack-dyn-relocs-relr ++ mkdir -p out/test/elf/x86_64/pack-dyn-relocs-relr + '[' x86_64 = m68k ']' + '[' x86_64 = ppc ']' + command -v llvm-readelf + cat + x86_64-pc-linux-gnu-gcc -o out/test/elf/x86_64/pack-dyn-relocs-relr/a.o -fPIC -c -xc - + x86_64-pc-linux-gnu-gcc -B. -o out/test/elf/x86_64/pack-dyn-relocs-relr/exe1 out/test/elf/x86_64/pack-dyn-relocs-relr/a.o -pie + grep RELATIVE + wc -l + llvm-readelf -r out/test/elf/x86_64/pack-dyn-relocs-relr/exe1 + x86_64-pc-linux-gnu-gcc -B. -o out/test/elf/x86_64/pack-dyn-relocs-relr/exe2 out/test/elf/x86_64/pack-dyn-relocs-relr/a.o -pie -Wl,-pack-dyn-relocs=relr + llvm-readelf -r out/test/elf/x86_64/pack-dyn-relocs-relr/exe2 + grep RELATIVE + wc -l + diff out/test/elf/x86_64/pack-dyn-relocs-relr/log1 out/test/elf/x86_64/pack-dyn-relocs-relr/log2 1c1 < 4 --- > 0 ++ on_error 22 ++ code=1 ++ echo 'command failed: 22: diff $t/log1 $t/log2' command failed: 22: diff $t/log1 $t/log2 ++ trap - EXIT ++ exit 1 <end of output> Test time = 0.13 sec ---------------------------------------------------------- Test Failed. "x86_64-pack-dyn-relocs-relr" end time: Sep 21 04:07 UTC "x86_64-pack-dyn-relocs-relr" time elapsed: 00:00:00 ---------------------------------------------------------- ```
Created attachment 903491 [details] emerge --info
Created attachment 903492 [details] how it was called + build.log
I started seeing this recently too (last few days) but not investigated it yet. It might be caused by new LLVM (llvm-readelf).
Created attachment 903493 [details] bunch of files in a lzip tarball with 1 test failed. inside of the lzip tarball: how_it_was_called.txt emerge_--info.txt /var/tmp/portage/sys-devel/mold-2.32.1/{build-info/,files/,temp/,work/**{.log}} /var/lib/portage/ /etc/portage/ /var/log/portage/elog/sys-devel/mold-2.32.1:20240921-040746.log
reproducible with sys-devel/mold-2.33.0-r1
right, I think something external to mold changed.