Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 894260 - sys-devel/mold-1.10.1 - fails x86_64-version test whereas this test passes when testsuite is run from git
Summary: sys-devel/mold-1.10.1 - fails x86_64-version test whereas this test passes wh...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sam James
URL: https://github.com/rui314/mold/issues...
Whiteboard:
Keywords:
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2023-02-14 00:44 UTC by ernsteiswuerfel
Modified: 2023-11-13 19:11 UTC (History)
1 user (show)

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


Attachments
emerge --info (file_894260.txt,7.49 KB, text/plain)
2023-02-14 00:45 UTC, ernsteiswuerfel
Details
build.log (mold-1.10.1:20230211-181856.log,249.83 KB, text/plain)
2023-02-14 00:46 UTC, ernsteiswuerfel
Details
LastTest.log (LastTest.log,679.03 KB, text/plain)
2023-02-14 00:47 UTC, ernsteiswuerfel
Details
build.log (amd64, 2.3.2-r1) (mold-2.3.2-r1-20231113-185917.log,291.04 KB, text/plain)
2023-11-13 19:09 UTC, ernsteiswuerfel
Details
LastTest.log (amd64, 2.3.2-r1) (LastTest.log,767.76 KB, text/plain)
2023-11-13 19:11 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2023-02-14 00:44:52 UTC
[...]
        Start 268: x86_64-version
268/293 Test #268: x86_64-version ..........................***Failed    0.58 sec
[...]

99% tests passed, 1 tests failed out of 293

Total Test time (real) =  76.35 sec

The following tests did not run:
	  6 - x86_64-x86_64_ifunc-alias (Skipped)
	  7 - x86_64-x86_64_incompatible-libs (Skipped)
	  8 - x86_64-x86_64_incompatible-libs2 (Skipped)
	  9 - x86_64-x86_64_incompatible-obj (Skipped)
	 21 - x86_64-x86_64_preinit-array (Skipped)
	 35 - x86_64-x86_64_warn-shared-textrel (Skipped)
	 36 - x86_64-x86_64_warn-textrel (Skipped)
	 40 - x86_64-x86_64_z-text (Skipped)
	107 - x86_64-gdb-index-split-dwarf (Skipped)
	121 - x86_64-ifunc-alias (Skipped)
	122 - x86_64-ifunc-dso (Skipped)
	123 - x86_64-ifunc-dynamic (Skipped)
	124 - x86_64-ifunc-export (Skipped)
	125 - x86_64-ifunc-funcptr (Skipped)
	126 - x86_64-ifunc-noplt (Skipped)
	127 - x86_64-ifunc-static (Skipped)
	129 - x86_64-init-array-priorities (Skipped)
	269 - x86_64-versioned-undef (Skipped)
	291 - x86_64-z-separate-code (Skipped)

The following tests FAILED:
	268 - x86_64-version (Failed)
Errors while running CTest
Output from these tests are in: /var/tmp/portage/sys-devel/mold-1.10.1/work/mold-1.10.1_build/Testing/Temporary/LastTest.log


Interestingly this test passes when run from a git build via:
git clone https://github.com/rui314/mold.git
mkdir mold/build
cd mold/build
git checkout v1.10.1
../install-build-deps.sh
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=c++ ..
cmake --build . -j3
ctest -j 3 --test-load 3
[...]
100% tests passed, 0 tests failed out of 309

Total Test time (real) =  68.94 sec

The following tests did not run:
	  6 - x86_64-x86_64_ifunc-alias (Skipped)
	  7 - x86_64-x86_64_incompatible-libs (Skipped)
	  8 - x86_64-x86_64_incompatible-libs2 (Skipped)
	  9 - x86_64-x86_64_incompatible-obj (Skipped)
	 21 - x86_64-x86_64_preinit-array (Skipped)
	 35 - x86_64-x86_64_warn-shared-textrel (Skipped)
	 36 - x86_64-x86_64_warn-textrel (Skipped)
	 40 - x86_64-x86_64_z-text (Skipped)
	 62 - x86_64-compress-debug-sections (Skipped)
	 63 - x86_64-compressed-debug-info (Skipped)
	 68 - x86_64-dead-debug-sections (Skipped)
	109 - x86_64-gdb-index-compress-output (Skipped)
	110 - x86_64-gdb-index-dwarf2 (Skipped)
	111 - x86_64-gdb-index-dwarf3 (Skipped)
	112 - x86_64-gdb-index-dwarf4 (Skipped)
	113 - x86_64-gdb-index-dwarf5 (Skipped)
	115 - x86_64-gdb-index-split-dwarf (Skipped)
	129 - x86_64-ifunc-alias (Skipped)
	130 - x86_64-ifunc-dso (Skipped)
	131 - x86_64-ifunc-dynamic (Skipped)
	132 - x86_64-ifunc-export (Skipped)
	133 - x86_64-ifunc-funcptr (Skipped)
	134 - x86_64-ifunc-noplt (Skipped)
	135 - x86_64-ifunc-static-pie (Skipped)
	136 - x86_64-ifunc-static (Skipped)
	138 - x86_64-init-array-priorities (Skipped)
	285 - x86_64-versioned-undef (Skipped)
	307 - x86_64-z-separate-code (Skipped)


It seems to be a path issue. The ctest command is run from the build directory created in line 2. mold binary is in this build dir where the tests are run from.

On the Gentoo side however you get 2 directories: work/mold-1.10.1_build/ where the mold binary is and work/mold-1.10.1/ where the tests reside and where there are run from.

The test passes when given the correct path:
/var/tmp/portage/sys-devel/mold-1.10.1/work/mold-1.10.1_build # bash -x ../mold-1.10.1/test/elf/version.sh

Maybe also interesting is that native testsuite runs (and skips) more tests.
Comment 1 ernsteiswuerfel archtester 2023-02-14 00:45:35 UTC
Created attachment 850958 [details]
emerge --info
Comment 2 ernsteiswuerfel archtester 2023-02-14 00:46:27 UTC
Created attachment 850960 [details]
build.log
Comment 3 ernsteiswuerfel archtester 2023-02-14 00:47:10 UTC
Created attachment 850962 [details]
LastTest.log
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-13 02:20:11 UTC
Can you still hit this? I can't.
Comment 5 ernsteiswuerfel archtester 2023-11-13 19:08:45 UTC
(In reply to Sam James from comment #4)
> Can you still hit this? I can't.
Yes I can. But only on musl(-1.24-r1). On my glibc(-2.38-r7) partition tests pass.
Comment 6 ernsteiswuerfel archtester 2023-11-13 19:09:50 UTC
Created attachment 874708 [details]
build.log (amd64, 2.3.2-r1)
Comment 7 ernsteiswuerfel archtester 2023-11-13 19:11:14 UTC
Created attachment 874709 [details]
LastTest.log (amd64, 2.3.2-r1)