Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939954 - sys-devel/mold-2.32.1 one test fails : x86_64-pack-dyn-relocs-relr
Summary: sys-devel/mold-2.32.1 one test fails : x86_64-pack-dyn-relocs-relr
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sam James
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2024-09-21 07:50 UTC by Arniii
Modified: 2024-09-21 08:11 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/var/tmp/portage/sys-devel/mold-2.32.1/work/mold-2.32.1_build/Testing/Temporary/LastTest.log (file_939954.txt,928.42 KB, text/plain)
2024-09-21 07:50 UTC, Arniii
Details
emerge --info (file_939954.txt,14.68 KB, text/plain)
2024-09-21 07:51 UTC, Arniii
Details
how it was called + build.log (file_939954.txt,424.86 KB, text/plain)
2024-09-21 07:52 UTC, Arniii
Details
bunch of files in a lzip tarball with 1 test failed. (sys-devel_mold-2.32.1_one_test_fails.tar.lz,177.65 KB, application/x-lzip)
2024-09-21 07:53 UTC, Arniii
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arniii 2024-09-21 07:50:35 UTC
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
----------------------------------------------------------
```
Comment 1 Arniii 2024-09-21 07:51:06 UTC
Created attachment 903491 [details]
emerge --info
Comment 2 Arniii 2024-09-21 07:52:37 UTC
Created attachment 903492 [details]
how it was called + build.log
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-21 07:53:13 UTC
I started seeing this recently too (last few days) but not investigated it yet.

It might be caused by new LLVM (llvm-readelf).
Comment 4 Arniii 2024-09-21 07:53:29 UTC
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
Comment 5 Arniii 2024-09-21 08:04:14 UTC
reproducible with sys-devel/mold-2.33.0-r1
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-21 08:11:24 UTC
right, I think something external to mold changed.