99% tests passed, 2 tests failed out of 4385 Total Test time (real) = 71.80 sec The following tests FAILED: 61 - cmd.cc-gnu-tgt-i386-opt-E (Failed) 85 - cmd.cc-gnu-c-tgt-i386-opt-E (Failed) Errors while running CTest ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 23.0_hardened_test-20240920-092003 UNMASKED: Please re-assign to toolchain@ if you get a test failure in C, C++, or Fortran code which makes no sense. /etc/portage/package.unmask/60gcc:<sys-devel/gcc-15.0.9999:15 Requested by sam /etc/portage/package.unmask/50unstable:>=sys-libs/ncurses-6.5 The attached etc.portage.tar.xz has all details. ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-15 * clang/llvm (if any): clang version 19.1.0 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/19/bin Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg /usr/lib/llvm/19 19.1.0 Python 3.12.6 Available Ruby profiles: [1] ruby31 (with Rubygems) [2] ruby32 (with Rubygems) [3] ruby33 (with Rubygems) * Available Rust versions: [1] rust-bin-1.81.0 * The Glorious Glasgow Haskell Compilation System, version 9.2.8 php cli (if any): go version go1.23.1 linux/amd64 HEAD of ::gentoo commit df23d80252b9d0e9c7c5fb639d2612cc80f66b5a Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Sat Sep 21 01:19:02 2024 +0000 2024-09-21 01:19:01 UTC emerge -qpvO =dev-libs/castxml-0.6.8 [ebuild N ] dev-libs/castxml-0.6.8 USE="man test" LLVM_SLOT="18 -17 -19"
Created attachment 903500 [details] emerge-info.txt
Created attachment 903501 [details] LastTest.log.xz
Created attachment 903502 [details] dev-libs:castxml-0.6.8:20240921-115243.log.xz
Created attachment 903503 [details] emerge-history.txt
Created attachment 903504 [details] environment
Created attachment 903505 [details] etc.clang.tar.xz
Created attachment 903506 [details] etc.portage.tar.xz
Created attachment 903507 [details] logs.tar.xz
Created attachment 903508 [details] qlist-info.txt
Created attachment 903509 [details] temp.tar.xz
Created attachment 903510 [details] tests.tar.xz
Cannot reproduce the bug with clang-19.1.1. Can you please retest with clang-19.1.1? The errors in LastTest.log corresponds to the settings in /etc/clang/gentoo-hardened.cfg in 19.1.0: -Xarch_host -D_GLIBCXX_ASSERTIONS -Xarch_host -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE As they are gone in 19.1.1 I assume that the test failures are gone away.
(In reply to Thomas Beierlein from comment #12) > Cannot reproduce the bug with clang-19.1.1. > > Can you please retest with clang-19.1.1? > > The errors in LastTest.log corresponds to the settings in > /etc/clang/gentoo-hardened.cfg in 19.1.0: > > -Xarch_host -D_GLIBCXX_ASSERTIONS > -Xarch_host -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE > > As they are gone in 19.1.1 I assume that the test failures are gone away. Hhm, then the ebuild should either force clang -or- an llvm profile is needed. But the bug occurred at a gcc profile.
(In reply to Toralf Förster from comment #13) > > As they are gone in 19.1.1 I assume that the test failures are gone away. > > Hhm, then the ebuild should either force clang -or- an llvm profile is > needed. But the bug occurred at a gcc profile. From the man page of castxml: "Source files are parsed as complete translation units using an internal Clang compile" So tests for castxml are calling clang each time. The resulting output gets compared to expected test. If we insert some additional definitions into the clang input (e.g. by etc/clang/gentoo-hardened.cfg) the resulting output may be not as expected. And that shows in the provided LastLog.txt (around line 950).
Ok. It passed fine at this image (gcc 14.2.1): /home/tinderbox/img/23.0_test-20240815-161302/var/log/emerge.log 2024-08-16T17:02:49 >>> dev-libs/castxml-0.6.7: 1 minute, 53 seconds 2024-08-19T17:11:45 >>> dev-libs/castxml-0.6.8: 1 minute, 51 seconds which let me wonder what happened at 23.0_hardened_test-20240920-092003 Maybe the issue is related to the hardened feature or to gcc 15?
Here' more data of the older image: tinderbox@23-0-test-20240815-161302 ~ $ clang --version clang version 18.1.8 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/18/bin Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg tinderbox@23-0-test-20240815-161302 ~ $ gcc --version gcc (Gentoo 14.2.1_p20240817 p4) 14.2.1 20240817 Copyright (C) 2024 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Did some testing again and sorting all weird data out. First let me state that my comment #12 was wrong, sorry for that. I had just switched to hardened profile but not recompiled system and especially clang-commom. That done now I have to confirm the reported test failure even with actual clang versions. Turns out the failures are of same nature as for other tests we already skip (see bug #891813). Will add them to the list of skipped tests.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a396852e60f510e568b5866bfc3fb3ef38c9c643 commit a396852e60f510e568b5866bfc3fb3ef38c9c643 Author: Thomas Beierlein <tomjbe@gentoo.org> AuthorDate: 2024-10-14 17:41:34 +0000 Commit: Thomas Beierlein <tomjbe@gentoo.org> CommitDate: 2024-10-14 17:41:34 +0000 dev-libs/castxml: Skip some more test sensible for hardening defaults Closes: https://bugs.gentoo.org/939999 Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org> dev-libs/castxml/castxml-0.6.8.ebuild | 2 ++ 1 file changed, 2 insertions(+)
Thank you!