Public bug reported:
* These regression tests fail for llvm versions for series where the
gold package has been deprecated.
473s FAIL: LLVM regression suite :: gold.c (15 of 52)
473s ******************** TEST 'LLVM regression suite :: gold.c' FAILED
********************
473s Exit Code: 1
473s
473s Command Output (stderr):
473s --
473s RUN: at line 3: /usr/bin/clang-20 -fuse-ld=gold
/tmp/autopkgtest.qgNszS/autopkgtest_tmp/tests/gold.c -o
/tmp/autopkgtest.qgNszS/autopkgtest_tmp/build/tests/Output/gold.c.tmp
473s + /usr/bin/clang-20 -fuse-ld=gold
/tmp/autopkgtest.qgNszS/autopkgtest_tmp/tests/gold.c -o
/tmp/autopkgtest.qgNszS/autopkgtest_tmp/build/tests/Output/gold.c.tmp
473s clang-20: error: invalid linker name in argument '-fuse-ld=gold'
473s
473s --
473s
473s ********************
476s FAIL: LLVM regression suite :: lto_and_gold.c (25 of 52)
476s ******************** TEST 'LLVM regression suite :: lto_and_gold.c' FAILED
********************
476s Exit Code: 1
476s
476s Command Output (stderr):
476s --
476s RUN: at line 3: /usr/bin/clang-20 -c -flto
/tmp/autopkgtest.qgNszS/autopkgtest_tmp/tests/lto_and_gold.c -DLIB -o
/tmp/autopkgtest.qgNszS/autopkgtest_tmp/build/tests/Output/lto_and_gold.c.tmp-obj.o
476s + /usr/bin/clang-20 -c -flto
/tmp/autopkgtest.qgNszS/autopkgtest_tmp/tests/lto_and_gold.c -DLIB -o
/tmp/autopkgtest.qgNszS/autopkgtest_tmp/build/tests/Output/lto_and_gold.c.tmp-obj.o
476s RUN: at line 4: /usr/bin/clang-20 -c -flto
/tmp/autopkgtest.qgNszS/autopkgtest_tmp/tests/lto_and_gold.c -ULIB -o
/tmp/autopkgtest.qgNszS/autopkgtest_tmp/build/tests/Output/lto_and_gold.c.tmp-main.o
476s + /usr/bin/clang-20 -c -flto
/tmp/autopkgtest.qgNszS/autopkgtest_tmp/tests/lto_and_gold.c -ULIB -o
/tmp/autopkgtest.qgNszS/autopkgtest_tmp/build/tests/Output/lto_and_gold.c.tmp-main.o
476s RUN: at line 5: /usr/bin/clang-20 -fuse-ld=gold -flto
/tmp/autopkgtest.qgNszS/autopkgtest_tmp/build/tests/Output/lto_and_gold.c.tmp-obj.o
/tmp/autopkgtest.qgNszS/autopkgtest_tmp/build/tests/Output/lto_and_gold.c.tmp-main.o
-o
/tmp/autopkgtest.qgNszS/autopkgtest_tmp/build/tests/Output/lto_and_gold.c.tmp
476s + /usr/bin/clang-20 -fuse-ld=gold -flto
/tmp/autopkgtest.qgNszS/autopkgtest_tmp/build/tests/Output/lto_and_gold.c.tmp-obj.o
/tmp/autopkgtest.qgNszS/autopkgtest_tmp/build/tests/Output/lto_and_gold.c.tmp-main.o
-o
/tmp/autopkgtest.qgNszS/autopkgtest_tmp/build/tests/Output/lto_and_gold.c.tmp
476s clang-20: error: invalid linker name in argument '-fuse-ld=gold'
476s clang-20: error: invalid linker name in argument '-fuse-ld=gold'
476s
476s --
476s
476s ********************
* The fix already exists in llvm-toolchain-22 for stonking and can be
backported to affected versions. This must be patched by
- adding gold as a requirement to integration-test-suite/tests/gold.c and
integration-test-suite/tests/lto_and_gold.c
- Adding this line to integration-test-suite/tests/lit.site.cfg.in:
+enable_feature("gold", "@ENABLE_GOLD_TESTS@")
- Marking the test as optional in integration-test-suite/CMakeLists.txt:
option(ENABLE_GOLD_TESTS "enable tests that require gold linker" ON)
** Affects: llvm-toolchain-17 (Ubuntu)
Importance: Undecided
Status: New
** Affects: llvm-toolchain-18 (Ubuntu)
Importance: Undecided
Status: New
** Affects: llvm-toolchain-19 (Ubuntu)
Importance: Undecided
Status: New
** Affects: llvm-toolchain-20 (Ubuntu)
Importance: Undecided
Assignee: Karl Smeltzer (karljs)
Status: In Progress
** Affects: llvm-toolchain-17 (Ubuntu Stonking)
Importance: Undecided
Status: New
** Affects: llvm-toolchain-18 (Ubuntu Stonking)
Importance: Undecided
Status: New
** Affects: llvm-toolchain-19 (Ubuntu Stonking)
Importance: Undecided
Status: New
** Affects: llvm-toolchain-20 (Ubuntu Stonking)
Importance: Undecided
Assignee: Karl Smeltzer (karljs)
Status: In Progress
** Affects: llvm-toolchain-17 (Ubuntu Tenacious)
Importance: Undecided
Status: New
** Affects: llvm-toolchain-18 (Ubuntu Tenacious)
Importance: Undecided
Status: New
** Affects: llvm-toolchain-19 (Ubuntu Tenacious)
Importance: Undecided
Status: New
** Affects: llvm-toolchain-20 (Ubuntu Tenacious)
Importance: Undecided
Assignee: Karl Smeltzer (karljs)
Status: In Progress
** Tags: foundations-todo
** Patch added: "integration-test-suite-gold-option.diff"
https://bugs.launchpad.net/bugs/2171013/+attachment/6009536/+files/integration-test-suite-gold-option.diff
** Also affects: llvm-toolchain-17 (Ubuntu)
Importance: Undecided
Status: New
** Also affects: llvm-toolchain-18 (Ubuntu)
Importance: Undecided
Status: New
** Also affects: llvm-toolchain-19 (Ubuntu)
Importance: Undecided
Status: New
** Also affects: llvm-toolchain-17 (Ubuntu Stonking)
Importance: Undecided
Status: New
** Also affects: llvm-toolchain-18 (Ubuntu Stonking)
Importance: Undecided
Status: New
** Also affects: llvm-toolchain-19 (Ubuntu Stonking)
Importance: Undecided
Status: New
** Also affects: llvm-toolchain-20 (Ubuntu Stonking)
Importance: Undecided
Status: New
** Also affects: llvm-toolchain-17 (Ubuntu Tenacious)
Importance: Undecided
Status: New
** Also affects: llvm-toolchain-18 (Ubuntu Tenacious)
Importance: Undecided
Status: New
** Also affects: llvm-toolchain-19 (Ubuntu Tenacious)
Importance: Undecided
Status: New
** Also affects: llvm-toolchain-20 (Ubuntu Tenacious)
Importance: Undecided
Assignee: Karl Smeltzer (karljs)
Status: In Progress
** Changed in: llvm-toolchain-20 (Ubuntu Stonking)
Assignee: (unassigned) => Karl Smeltzer (karljs)
** Changed in: llvm-toolchain-20 (Ubuntu Stonking)
Status: New => In Progress
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2171013
Title:
gold.c and lto_and_gold.c regression test failures
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-17/+bug/2171013/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs