Created attachment 876248 [details] build.log Truncated output: 73% tests passed, 92 tests failed out of 335 Total Test time (real) = 20.02 sec The following tests FAILED: 1 - x86_64-x86_64_empty-mergeable-section (Failed) 3 - x86_64-x86_64_endbr (Failed) 4 - x86_64-x86_64_endbr2 (Failed) 6 - x86_64-x86_64_execstack-if-needed (Failed) 7 - x86_64-x86_64_gnu-linkonce (Failed) 9 - x86_64-x86_64_gotpcrelx (Failed) 11 - x86_64-x86_64_incompatible-libs (Failed) 12 - x86_64-x86_64_incompatible-libs2 (Failed) 13 - x86_64-x86_64_incompatible-obj (Failed) 14 - x86_64-x86_64_init-array-readonly (Failed) 31 - x86_64-x86_64_tls-gd-mcmodel-large (Failed) 32 - x86_64-x86_64_tls-gd-to-ie (Failed) 34 - x86_64-x86_64_tls-ld-mcmodel-large (Failed) 35 - x86_64-x86_64_tls-module-base (Failed) 36 - x86_64-x86_64_tlsdesc (Failed) 37 - x86_64-x86_64_unique (Failed) 39 - x86_64-x86_64_warn-shared-textrel (Failed) 40 - x86_64-x86_64_warn-textrel (Failed) 41 - x86_64-x86_64_z-ibt (Failed) 44 - x86_64-x86_64_z-text (Failed) 58 - x86_64-build-id (Failed) 62 - x86_64-comment (Failed) 63 - x86_64-common-archive (Failed) 64 - x86_64-common-ref (Failed) 65 - x86_64-common (Failed) 67 - x86_64-copyrel-alignment (Failed) 68 - x86_64-copyrel-protected (Failed) 72 - x86_64-ctors-in-init-array (Failed) 74 - x86_64-default-symver (Failed) 76 - x86_64-defsym-missing-symbol (Failed) 81 - x86_64-dependency-file (Failed) 99 - x86_64-empty-file (Failed) 100 - x86_64-empty-input (Failed) 101 - x86_64-empty-version (Failed) 109 - x86_64-execute-only (Failed) 113 - x86_64-filler (Failed) 117 - x86_64-gdb-index-dwarf64 (Failed) 129 - x86_64-hidden-undef (Failed) 151 - x86_64-invalid-version-script (Failed) 174 - x86_64-nmagic (Failed) 175 - x86_64-no-eh-frame-header (Failed) 176 - x86_64-no-quick-exit (Failed) 177 - x86_64-no-undefined-version (Failed) 179 - x86_64-noinhibit-exec (Failed) 185 - x86_64-pack-dyn-relocs-relr (Failed) 186 - x86_64-package-metadata (Failed) 187 - x86_64-physical-image-base (Failed) 192 - x86_64-print-dependencies (Failed) 202 - x86_64-relocatable-debug-info (Failed) 210 - x86_64-repro (Failed) 211 - x86_64-require-defined (Failed) 214 - x86_64-retain-symbols-file (Failed) 216 - x86_64-rodata-name (Failed) 218 - x86_64-rpath (Failed) 220 - x86_64-section-align (Failed) 221 - x86_64-section-order (Failed) 223 - x86_64-shared-abs-sym (Failed) 225 - x86_64-shuffle-sections-seed (Failed) 226 - x86_64-shuffle-sections (Failed) 228 - x86_64-spare-program-headers (Failed) 231 - x86_64-start-stop (Failed) 233 - x86_64-static-pie (Failed) 243 - x86_64-symtab-section-symbols (Failed) 245 - x86_64-synthetic-symbols (Failed) 247 - x86_64-sysroot (Failed) 251 - x86_64-thin-archive (Failed) 252 - x86_64-thread-count (Failed) 254 - x86_64-tls-common (Failed) 258 - x86_64-tls-gd-noplt (Failed) 259 - x86_64-tls-gd-to-ie (Failed) 260 - x86_64-tls-gd (Failed) 261 - x86_64-tls-ie (Failed) 262 - x86_64-tls-irregular-start-addr (Failed) 265 - x86_64-tls-ld-noplt (Failed) 266 - x86_64-tls-ld (Failed) 267 - x86_64-tls-le-error (Failed) 268 - x86_64-tls-le (Failed) 274 - x86_64-tlsdesc-initial-exec (Failed) 276 - x86_64-tlsdesc-static (Failed) 277 - x86_64-tlsdesc (Failed) 278 - x86_64-trace-symbol (Failed) 282 - x86_64-unresolved-symbols (Failed) 291 - x86_64-version-script15 (Failed) 306 - x86_64-version (Failed) 307 - x86_64-versioned-undef (Failed) 309 - x86_64-warn-common (Failed) 311 - x86_64-warn-symbol-type (Failed) 314 - x86_64-weak-export-exe (Failed) 322 - x86_64-z-cet-report (Failed) 324 - x86_64-z-dynamic-undefined-weak (Failed) 327 - x86_64-z-nodump (Failed) 331 - x86_64-z-sectionheader (Failed) Errors while running CTest Output from these tests are in: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build/Testing/Temporary/LastTest.log Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
Created attachment 876249 [details] emerge --info
Thanks for the report but I can't reproduce the test failures here. Please could you attach the file '/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build/Testing/Temporary/LastTest.log' and re-open the bug? It should include the output from the tests.
Created attachment 877241 [details] LastTest.log After reviewing the log, seems like it calls `cc` directly, I remember deleting /usr/bin/cc to test something, but I forgot to add it again. I'm compiling llvm in my prefix rn, I'll try again tomorrow.
It looks like the tests don't use the compiler used to configure, and instead look at a TEST_CC environment variable, defaulting to cc if it's unset. Will fix, thanks :)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29cae3c5271e8d00a524258fa7226b6694def2dd commit 29cae3c5271e8d00a524258fa7226b6694def2dd Author: Matthew Smith <matthew@gentoo.org> AuthorDate: 2023-12-05 13:35:44 +0000 Commit: Matthew Smith <matthew@gentoo.org> CommitDate: 2023-12-05 13:37:53 +0000 sys-devel/mold: set TEST_$TOOL env for tests Use the configured compiler instead of invoking cc directly when running tests. Closes: https://bugs.gentoo.org/918967 Signed-off-by: Matthew Smith <matthew@gentoo.org> sys-devel/mold/mold-2.4.0.ebuild | 8 ++++++++ sys-devel/mold/mold-9999.ebuild | 8 ++++++++ 2 files changed, 16 insertions(+)